|
roviz
0.7
Code Documentation of roviz
|
The ObjectState class represents the State of a Singleton or Component and helps calling create/delete/init/deinit them. More...
#include <startup_helper_p.h>

Public Member Functions | |
| ObjectState (const QMetaObject &metaobj) | |
| Constructs a ObjectState for a Singleton. More... | |
| ObjectState (const QMetaObject &metaobj, internal::VoidFnPtr initFunc, internal::VoidFnPtr deinitFunc) | |
| Constructs a ObjectState for a Component. More... | |
| QString | className () const |
| Returns the name of the class represented by the ObjectState. More... | |
| QStringList | dependencies () const |
| Returns a list of all dependencies of the represented class. More... | |
| QStringList | optionalDependencies () const |
| Returns a list of all optional dependencies of the represented class. More... | |
| bool | initialized () const |
| Whether or not the represented class has already been initialized. More... | |
| bool | guiModule () const |
| Whether or not the represented class is a gui module (= it requires a Q(Gui)Application to run) More... | |
| bool | init () |
| Tries to construct the represented singleton or call init() on the represented component. More... | |
| bool | postInit () |
| Tries to call postInit() on the represented singleton. Does nothing if the represented class is a component. More... | |
| bool | preDestroy () |
| Tries to call preDestroy() on the represented singleton. Does nothing if the represented class is a component. More... | |
| bool | destroy () |
| Tries to delete the represented singleton or call deinit() on the represented component. More... | |
The ObjectState class represents the State of a Singleton or Component and helps calling create/delete/init/deinit them.
| ObjectState::ObjectState | ( | const QMetaObject & | metaobj | ) |
Constructs a ObjectState for a Singleton.
| metaobj | The static metaobject of the singleton |
| ObjectState::ObjectState | ( | const QMetaObject & | metaobj, |
| internal::VoidFnPtr | initFunc, | ||
| internal::VoidFnPtr | deinitFunc | ||
| ) |
Constructs a ObjectState for a Component.
| metaobj | The static metaobject of the component |
| initFunc | A Function Pointer to the static void init() function |
| deinitFunc | A Function Pointer to the static void deinit() function |
| QString ObjectState::className | ( | ) | const |
Returns the name of the class represented by the ObjectState.

| QStringList ObjectState::dependencies | ( | ) | const |
Returns a list of all dependencies of the represented class.
| bool ObjectState::destroy | ( | ) |
Tries to delete the represented singleton or call deinit() on the represented component.

| bool ObjectState::guiModule | ( | ) | const |
Whether or not the represented class is a gui module (= it requires a Q(Gui)Application to run)
| bool ObjectState::init | ( | ) |
Tries to construct the represented singleton or call init() on the represented component.


| bool ObjectState::initialized | ( | ) | const |
Whether or not the represented class has already been initialized.
| QStringList ObjectState::optionalDependencies | ( | ) | const |
Returns a list of all optional dependencies of the represented class.
| bool ObjectState::postInit | ( | ) |
Tries to call postInit() on the represented singleton. Does nothing if the represented class is a component.


| bool ObjectState::preDestroy | ( | ) |
Tries to call preDestroy() on the represented singleton. Does nothing if the represented class is a component.


1.8.13