Public Slots |
|
void | addContexts (QObject *obj) |
| | Inspects obj and if it implements Qtilities::Core::Interfaces::IContext, the context will be registered.
|
|
void | appendContext (int context_id, bool notify=true) |
| | Appends a context to the set of active contexts.
|
|
void | appendContext (const QString &context_string, bool notify=true) |
| | Appends a context to the set of active contexts. The context is identified using a string.
|
|
void | broadcastState () |
| | Slot which will emit the current state of the context manager. Use this if you updated your contexts using notify = false.
|
|
void | removeContext (int context_id, bool notify=true) |
| | Removes a context from the set of active contexts.
|
|
void | removeContext (const QString &context_string, bool notify=true) |
| | Removes a context from the set of active contexts. The context is identified using a string.
|
|
void | setNewContext (int context_id, bool notify=true) |
| | Sets a new context. Will clear all current active contexts.
|
|
void | setNewContext (const QString &context_string, bool notify=true) |
| | Sets a new context. Will clear all current active contexts. The context is identified using a string.
|
Public Member Functions |
|
QStringList | activeContextNames () const |
| | Returns the names of all active contexts.
|
|
QList< int > | activeContexts () const |
| | Gets the current context.
|
|
QList< int > | allContexts () const |
| | Returns a list of all the contexts currently registered.
|
|
QString | contextHelpID (int context_id) const |
| | Returns the context help id for a given context id. QString() is returned if no help id was registered for the given context id.
|
|
QString | contextHelpID (const QString &context_string) const |
| | Returns the context help id for a given context string. QString() is returned if no help id was registered for the given context string.
|
|
int | contextID (const QString &context_string) |
| | Returns an unique context ID for the given context string. Contexts are stored and identified using integer ID values throughout the library.
|
|
QStringList | contextNames () const |
| | Returns the names of all registered contexts.
|
|
QString | contextString (int context_id) const |
| | Returns the string which was used to register a context id. If the context id does not exist, QString() is returned.
|
|
bool | hasContext (QList< int > contexts) const |
| | Returns true if any of the contexts in the list were registered in the context manager.
|
|
bool | hasContext (int context) const |
| | Returns true if the specified context is registered in the context manager.
|
|
bool | hasContext (const QString &context_string) const |
| | Returns true if the specified context string is registered in the context manager.
|
| int | registerContext (const QString &context, const QString &context_help_id=QString()) |
| | Registers a new context.
|
| bool | unregisterContext (int context_id, bool notify=true) |
| | Unregisters an existing context.
|
| bool | unregisterContext (const QString &context_string, bool notify=true) |
| | Unregisters an existing context.
|
|
QObject * | objectBase () |
| | Returns the QObject* base of the interface.
|
| const QObject * | objectBase () const |
| | Returns a const QObject* base of the interface.
|
| QString | objectOriginID () const |
| | Allows interfaces to provide some sort of source identification.
|
| void | setObjectOriginID (const QString &object_origin_id) |
| | Allows setting of the object source ID of this interface implementation.
|
A class which represents a context manager.
The context manager automatically registers the standard application context, qti_def_CONTEXT_STANDARD.