swift
|
Base for all context classes. More...
Signals | |
void | changedLogOrDebugSettings () |
Log or debug values changed. | |
Public Member Functions | |
~IContext ()=default | |
Destructor. | |
bool | isUsingImplementingObject () const |
Using local implementing object? | |
bool | isLocalObject () const |
Local or remote object? | |
bool | isEmptyObject () const |
Empty object? | |
CCoreFacade * | getRuntime () |
Runtime. | |
const CCoreFacade * | getRuntime () const |
Const runtime. | |
CCoreFacadeConfig::ContextMode | getMode () const |
Mode. | |
qint64 | getUniqueId () const |
Unique id. | |
const IContextApplication * | getIContextApplication () const |
Context for application. | |
IContextApplication * | getIContextApplication () |
Application. | |
IContextAudio * | getIContextAudio () |
Context for network. | |
const IContextAudio * | getIContextAudio () const |
Context for network. | |
IContextNetwork * | getIContextNetwork () |
Context for network. | |
const IContextNetwork * | getIContextNetwork () const |
Context for network. | |
IContextOwnAircraft * | getIContextOwnAircraft () |
Context for own aircraft. | |
const IContextOwnAircraft * | getIContextOwnAircraft () const |
Context for own aircraft. | |
const IContextSimulator * | getIContextSimulator () const |
Context for simulator. | |
IContextSimulator * | getIContextSimulator () |
Simulator. | |
void | setDebugEnabled (bool debug) |
Set debug flag. | |
bool | isDebugEnabled () const |
Debug enabled? | |
virtual QString | getPathAndContextId () const =0 |
Id and path name for round trip protection. | |
virtual bool | parseCommandLine (const QString &commandLine, const swift::misc::CIdentifier &originator)=0 |
Parse a given command line. | |
Static Public Member Functions | |
static const QStringList & | getLogCategories () |
Log categories. | |
Protected Member Functions | |
IContext (CCoreFacadeConfig::ContextMode mode, QObject *parent) | |
Constructor. | |
QString | buildPathAndContextId (const QString &path) const |
Path and context id. | |
void | relayBaseClassSignals (const QString &serviceName, QDBusConnection &connection, const QString &objectPath, const QString &interfaceName) |
Relay signals from this class. | |
void | logEmptyContextWarning (const QString &functionName) const |
Empty context called. | |
virtual void | onAboutToShutdown () |
Called when shutdown is about to be called. | |
void | registerWithDBus (const QString &objectPath, misc::CDBusServer *server) |
Register myself in DBus. | |
Static Protected Member Functions | |
static const misc::CStatusMessage & | statusMessageEmptyContext () |
Standard message when status message is returned in empty context. | |