Quick Links
Documentation
API Reference
|
qic::DefaultApplicationContext Class Reference#include <DefaultApplicationContext.h>
Inheritance diagram for qic::DefaultApplicationContext:
[legend]Collaboration diagram for qic::DefaultApplicationContext:
[legend]List of all members.
|
Public Member Functions |
| DefaultApplicationContext () |
virtual | ~DefaultApplicationContext () |
virtual QObject * | getObject (QString id) |
virtual bool | containsObject (QString id) |
virtual QStringList | getObjectDefinitionIds () |
virtual ObjectDefinition * | getObjectDefinition (QString id) |
virtual QList< WireDefinition * > | getWireDefinitions () |
virtual void | registerObjectDefinition (QString id, ObjectDefinition *objectDefinition) |
virtual void | registerWireDefinition (WireDefinition *wireDefinition) |
virtual QObject * | resolveReferenceObject (ReferenceDefinition refDef) |
virtual void | registerReferenceInjector (QString type, QString path) |
Protected Member Functions |
virtual void | unloadInjectorPlugins () |
virtual QVariant | resolveReferenceInPropertyValue (QVariant val) |
virtual void | setProperty (QString id, QString name, QVariant val) |
virtual void | initObject (QString id) |
virtual void | destroyObject (QString id) |
virtual void | loadObject (QString id) |
virtual void | createObject (QString id) |
virtual void | injectDependencies (QString id) |
virtual bool | objectLoaded (QString id) |
virtual bool | objectStartLoading (QString id) |
virtual void | deleteFactoryCreatedObjects () |
virtual void | unloadPlugins () |
virtual void | deleteObjectDefinitions () |
virtual void | deleteWireDefinitions () |
virtual void | destroyObjects () |
virtual void | wireObject (WireDefinition *def) |
virtual void | loadObjects () |
virtual void | wireObjects () |
Protected Attributes |
QStringList | _object_id_list |
QHash< QString, ObjectDefinition * > | _object_definition_map |
QList< WireDefinition * > | _wire_definition_list |
QHash< QString, QObject * > | _object_map |
QHash< QString, QPluginLoader * > | _object_loader_map |
QHash< QString, ObjectStatus > | _object_status_map |
QHash< QString, QObject * > | _injector_map |
QHash< QString, QPluginLoader * > | _injector_loader_map |
Classes |
struct | ObjectStatus |
Detailed Description
DefaultApplicationContext loads objects from object definitions. It deletes factory-created objects in destructor. For plugin objects, the Qt system manages their release.
- Author:
- Zhihong "John" Wang
Definition at line 28 of file DefaultApplicationContext.h.
Constructor & Destructor Documentation
DefaultApplicationContext::DefaultApplicationContext |
( |
|
) |
|
|
DefaultApplicationContext::~DefaultApplicationContext |
( |
|
) |
[virtual] |
|
Member Function Documentation
bool DefaultApplicationContext::containsObject |
( |
QString |
id |
) |
[virtual] |
|
void DefaultApplicationContext::createObject |
( |
QString |
id |
) |
[protected, virtual] |
|
void DefaultApplicationContext::deleteFactoryCreatedObjects |
( |
|
) |
[protected, virtual] |
|
void DefaultApplicationContext::deleteObjectDefinitions |
( |
|
) |
[protected, virtual] |
|
void DefaultApplicationContext::deleteWireDefinitions |
( |
|
) |
[protected, virtual] |
|
void DefaultApplicationContext::destroyObject |
( |
QString |
id |
) |
[protected, virtual] |
|
void DefaultApplicationContext::destroyObjects |
( |
|
) |
[protected, virtual] |
|
QObject * DefaultApplicationContext::getObject |
( |
QString |
id |
) |
[virtual] |
|
ObjectDefinition * DefaultApplicationContext::getObjectDefinition |
( |
QString |
id |
) |
[virtual] |
|
QStringList DefaultApplicationContext::getObjectDefinitionIds |
( |
|
) |
[virtual] |
|
QList< WireDefinition * > DefaultApplicationContext::getWireDefinitions |
( |
|
) |
[virtual] |
|
void DefaultApplicationContext::initObject |
( |
QString |
id |
) |
[protected, virtual] |
|
void DefaultApplicationContext::injectDependencies |
( |
QString |
id |
) |
[protected, virtual] |
|
void DefaultApplicationContext::loadObject |
( |
QString |
id |
) |
[protected, virtual] |
|
void DefaultApplicationContext::loadObjects |
( |
|
) |
[protected, virtual] |
|
bool DefaultApplicationContext::objectLoaded |
( |
QString |
id |
) |
[protected, virtual] |
|
bool DefaultApplicationContext::objectStartLoading |
( |
QString |
id |
) |
[protected, virtual] |
|
void DefaultApplicationContext::registerObjectDefinition |
( |
QString |
id, |
|
|
ObjectDefinition * |
objectDefinition |
|
) |
[virtual] |
|
void DefaultApplicationContext::registerReferenceInjector |
( |
QString |
type, |
|
|
QString |
path |
|
) |
[virtual] |
|
void DefaultApplicationContext::registerWireDefinition |
( |
WireDefinition * |
wireDefinition |
) |
[virtual] |
|
QVariant DefaultApplicationContext::resolveReferenceInPropertyValue |
( |
QVariant |
val |
) |
[protected, virtual] |
|
QObject * DefaultApplicationContext::resolveReferenceObject |
( |
ReferenceDefinition |
refDef |
) |
[virtual] |
|
void DefaultApplicationContext::setProperty |
( |
QString |
id, |
|
|
QString |
name, |
|
|
QVariant |
val |
|
) |
[protected, virtual] |
|
void DefaultApplicationContext::unloadInjectorPlugins |
( |
|
) |
[protected, virtual] |
|
void DefaultApplicationContext::unloadPlugins |
( |
|
) |
[protected, virtual] |
|
void DefaultApplicationContext::wireObject |
( |
WireDefinition * |
def |
) |
[protected, virtual] |
|
void DefaultApplicationContext::wireObjects |
( |
|
) |
[protected, virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|
|