|
MoleQueue 0.9.0
|
#include <actionfactorymanager.h>
Public Member Functions | |
| void | readSettings (QSettings &settings) |
| void | writeSettings (QSettings &settings) const |
| void | setServer (Server *s) |
| Server * | server () const |
| void | addFactory (JobActionFactory *) |
| QList< JobActionFactory * > | factories () const |
| QList< JobActionFactory * > | factories (JobActionFactory::Flags flags) const |
| template<class FactoryType> | |
| QList< FactoryType * > | factoriesOfType () const |
| void | removeFactory (JobActionFactory *factory) |
Static Public Member Functions | |
| static ActionFactoryManager * | instance () |
Protected Attributes | |
| Server * | m_server |
| QList< JobActionFactory * > | m_factories |
Static Protected Attributes | |
| static ActionFactoryManager * | m_instance |
Singleton container for JobActionFactory objects.
<molequeue/actionfactorymanager.h>
|
static |
| void readSettings | ( | QSettings & | settings | ) |
Read programmatically constructed factories from settings.
| void writeSettings | ( | QSettings & | settings | ) | const |
Write programmatically constructed factories to settings.
| void addFactory | ( | JobActionFactory * | ) |
Add a factory to the manager. The Manager takes ownership of the factory and sets the server ivar of the factor to the ActionFactoryManager::server() instance.
| QList< JobActionFactory * > factories | ( | ) | const |
| QList< JobActionFactory * > factories | ( | JobActionFactory::Flags | flags | ) | const |
Obtain a subset of owned factories. Factories whose JobActionFactory::flags() method returns a superset of flags will be returned.
| flags | A combination of JobActionFactory::Flags used to filter the returned list. |
| QList< FactoryType * > factoriesOfType | ( | ) | const |
Get all factories of a specific type.
| FactoryType | A subclass of JobActionFactory. |
| void removeFactory | ( | JobActionFactory * | factory | ) |
Remove the factory pointed to by factory from the manager.