swift
|
Application context. More...
Public Slots | |
virtual void | changeSettings (const swift::misc::CValueCachePacket &settings, const swift::misc::CIdentifier &origin) |
Ratify some settings changed by another process. More... | |
virtual swift::misc::CValueCachePacket | getAllSettings () const |
Get all settings currently in core settings cache. More... | |
virtual QStringList | getUnsavedSettingsKeys () const |
Get keys of all unsaved settings currently in core settings cache. More... | |
virtual swift::core::context::CSettingsDictionary | getUnsavedSettingsKeysDescribed () const |
Get keys and descriptions of all unsaved settings currently in core settings cache. More... | |
virtual void | synchronizeLocalSettings () |
Update local settings with settings from core. More... | |
virtual swift::misc::CStatusMessage | saveSettings (const QString &keyPrefix={}) |
Save core settings to disk. More... | |
virtual swift::misc::CStatusMessage | saveSettingsByKey (const QStringList &keys) |
Save core settings to disk. More... | |
virtual swift::misc::CStatusMessage | loadSettings () |
Load core settings from disk. More... | |
virtual void | registerHotkeyActions (const QStringList &actions, const swift::misc::CIdentifier &origin) |
Register hotkey action implemented by another process. More... | |
virtual void | callHotkeyActionRemotely (const QString &action, bool argument, const swift::misc::CIdentifier &origin) |
Call a hotkey action on a remote process. More... | |
virtual swift::misc::CIdentifier | registerApplication (const swift::misc::CIdentifier &application) |
Register application, can also be used for ping. More... | |
virtual void | unregisterApplication (const swift::misc::CIdentifier &application) |
Unregister application. More... | |
virtual swift::misc::CIdentifierList | getRegisteredApplications () const |
All registered applications. More... | |
virtual swift::misc::CIdentifier | getApplicationIdentifier () const |
Identifier of application, remote side if distributed. More... | |
![]() | |
virtual void | changeSettings (const misc::CValueCachePacket &settings, const misc::CIdentifier &origin) |
Ratify some settings changed by another process. More... | |
virtual misc::CValueCachePacket | getAllSettings () const =0 |
Get all settings currently in core settings cache. | |
virtual QStringList | getUnsavedSettingsKeys () const =0 |
Get keys of all unsaved settings currently in core settings cache. | |
virtual CSettingsDictionary | getUnsavedSettingsKeysDescribed () const =0 |
Get keys and descriptions of all unsaved settings currently in core settings cache. | |
virtual void | synchronizeLocalSettings ()=0 |
Update local settings with settings from core. | |
virtual misc::CStatusMessage | saveSettings (const QString &keyPrefix={})=0 |
Save core settings to disk. | |
virtual misc::CStatusMessage | saveSettingsByKey (const QStringList &keys)=0 |
Save core settings to disk. | |
virtual misc::CStatusMessage | loadSettings ()=0 |
Load core settings from disk. | |
virtual void | registerHotkeyActions (const QStringList &actions, const misc::CIdentifier &origin) |
Register hotkey action implemented by another process. More... | |
virtual void | callHotkeyActionRemotely (const QString &action, bool argument, const misc::CIdentifier &origin) |
Call a hotkey action on a remote process. More... | |
virtual misc::CIdentifier | registerApplication (const misc::CIdentifier &application)=0 |
Register application, can also be used for ping. | |
virtual void | unregisterApplication (const misc::CIdentifier &application)=0 |
Unregister application. | |
virtual misc::CIdentifierList | getRegisteredApplications () const =0 |
All registered applications. | |
virtual misc::CIdentifier | getApplicationIdentifier () const =0 |
Identifier of application, remote side if distributed. | |
bool | parseCommandLine (const QString &commandLine, const swift::misc::CIdentifier &originator) |
Forward to facade. | |
Protected Member Functions | |
CContextApplication (CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime) | |
Constructor. | |
![]() | |
IContextApplication (CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime) | |
Constructor. | |
![]() | |
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. | |
![]() | |
CIdentifiable (const QString &objectName) | |
Use literal based object name. | |
CIdentifiable (QObject *nameProvider) | |
Connect with QObject providing the name. | |
CIdentifiable () | |
Construct without a name. | |
~CIdentifiable () | |
Destructor. | |
CIdentifiable (const CIdentifiable &)=default | |
Copy constructor. | |
CIdentifiable & | operator= (const CIdentifiable &)=default |
Copy assignment operator. | |
Friends | |
class | swift::core::CCoreFacade |
class | IContextApplication |
Additional Inherited Members | |
![]() | |
void | registrationChanged () |
A component changes. | |
void | settingsChanged (const swift::misc::CValueCachePacket &settings, const swift::misc::CIdentifier &origin) |
One or more settings were changed. More... | |
void | hotkeyActionsRegistered (const QStringList &actions, const swift::misc::CIdentifier &origin) |
New action was registered. More... | |
void | remoteHotkeyAction (const QString &action, bool argument, const swift::misc::CIdentifier &origin) |
Call a hotkey action on a remote process. More... | |
![]() | |
void | changedLogOrDebugSettings () |
Log or debug values changed. | |
![]() | |
QString | getPathAndContextId () const |
Id and path name for round trip protection. More... | |
~IContextApplication ()=default | |
Destructor. | |
![]() | |
~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 bool | parseCommandLine (const QString &commandLine, const swift::misc::CIdentifier &originator)=0 |
Parse a given command line. | |
![]() | |
const CIdentifier & | identifier () const |
Get identifier. | |
void | setIdentifier (const CIdentifier &identifier) |
Set identifier, allows to set an external identifier. | |
bool | isMyIdentifier (const CIdentifier &otherIdentifier) const |
My identifier? | |
![]() | |
static const QString & | InterfaceName () |
Service name. | |
static const QString & | ObjectPath () |
Service path. | |
static IContextApplication * | create (CCoreFacade *parent, CCoreFacadeConfig::ContextMode mode, swift::misc::CDBusServer *server, QDBusConnection &connection) |
Factory method. | |
![]() | |
static const QStringList & | getLogCategories () |
Log categories. | |
![]() | |
static const misc::CStatusMessage & | statusMessageEmptyContext () |
Standard message when status message is returned in empty context. | |
![]() | |
static constexpr int | PingIdentifiersMs = 20000 |
how often identifiers are pinged | |
Application context.
Definition at line 34 of file contextapplicationimpl.h.
|
virtualslot |
Call a hotkey action on a remote process.
Definition at line 87 of file contextapplicationimpl.cpp.
|
virtualslot |
Ratify some settings changed by another process.
Definition at line 28 of file contextapplicationimpl.cpp.
|
virtualslot |
Get all settings currently in core settings cache.
Definition at line 34 of file contextapplicationimpl.cpp.
|
virtualslot |
Identifier of application, remote side if distributed.
Definition at line 148 of file contextapplicationimpl.cpp.
|
virtualslot |
All registered applications.
Definition at line 140 of file contextapplicationimpl.cpp.
|
virtualslot |
Get keys of all unsaved settings currently in core settings cache.
Definition at line 40 of file contextapplicationimpl.cpp.
|
virtualslot |
Get keys and descriptions of all unsaved settings currently in core settings cache.
Definition at line 46 of file contextapplicationimpl.cpp.
|
virtualslot |
Load core settings from disk.
Definition at line 75 of file contextapplicationimpl.cpp.
|
virtualslot |
Register application, can also be used for ping.
Definition at line 105 of file contextapplicationimpl.cpp.
|
virtualslot |
Register hotkey action implemented by another process.
Definition at line 81 of file contextapplicationimpl.cpp.
|
virtualslot |
Save core settings to disk.
Definition at line 60 of file contextapplicationimpl.cpp.
|
virtualslot |
Save core settings to disk.
Definition at line 66 of file contextapplicationimpl.cpp.
|
virtualslot |
Update local settings with settings from core.
Definition at line 55 of file contextapplicationimpl.cpp.
|
virtualslot |
Unregister application.
Definition at line 123 of file contextapplicationimpl.cpp.