ParaView
Public Types | Signals | Public Member Functions | List of all members
pqRecentlyUsedResourcesList Class Reference

pqRecentlyUsedResourcesList encapsulates a persistent collection of recently-used resources (data files or state files). More...

#include <pqRecentlyUsedResourcesList.h>

Inherits QObject.

Public Types

typedef QList< pqServerResourceListT
 convenience typedef. More...
 

Signals

void changed ()
 Signal emitted whenever the collection is changed. More...
 

Public Member Functions

 pqRecentlyUsedResourcesList (QObject *parent=0)
 
virtual ~pqRecentlyUsedResourcesList ()
 
void add (const pqServerResource &resource)
 Add a resource to the collection. More...
 
const QList< pqServerResource > & list () const
 Returns the contents of the collection ordered from most-recently-used to least-recently-used. More...
 
void load (pqSettings &)
 Load the collection (from local user preferences) More...
 
void save (pqSettings &) const
 Save the collection (to local user preferences) More...
 

Detailed Description

pqRecentlyUsedResourcesList encapsulates a persistent collection of recently-used resources (data files or state files).

See also
pqServerResource

Definition at line 46 of file pqRecentlyUsedResourcesList.h.

Member Typedef Documentation

◆ ListT

convenience typedef.

Definition at line 58 of file pqRecentlyUsedResourcesList.h.

Constructor & Destructor Documentation

◆ pqRecentlyUsedResourcesList()

pqRecentlyUsedResourcesList::pqRecentlyUsedResourcesList ( QObject *  parent = 0)

◆ ~pqRecentlyUsedResourcesList()

virtual pqRecentlyUsedResourcesList::~pqRecentlyUsedResourcesList ( )
virtual

Member Function Documentation

◆ add()

void pqRecentlyUsedResourcesList::add ( const pqServerResource resource)

Add a resource to the collection.

Moves the resource to the beginning of the list.

◆ list()

const QList<pqServerResource>& pqRecentlyUsedResourcesList::list ( ) const
inline

Returns the contents of the collection ordered from most-recently-used to least-recently-used.

Definition at line 70 of file pqRecentlyUsedResourcesList.h.

◆ load()

void pqRecentlyUsedResourcesList::load ( pqSettings )

Load the collection (from local user preferences)

◆ save()

void pqRecentlyUsedResourcesList::save ( pqSettings ) const

Save the collection (to local user preferences)

◆ changed

void pqRecentlyUsedResourcesList::changed ( )
signal

Signal emitted whenever the collection is changed.


The documentation for this class was generated from the following file: