6 #ifndef SWIFT_CORE_COREFACADE_H
7 #define SWIFT_CORE_COREFACADE_H
9 #include <QDBusConnection>
24 class CLogHistorySource;
26 namespace shared_state
35 class CContextApplication;
37 class CContextAudioBase;
38 class CContextNetwork;
39 class CContextOwnAircraft;
40 class CContextSimulator;
41 class IContextApplication;
43 class IContextNetwork;
44 class IContextOwnAircraft;
45 class IContextSimulator;
74 void gracefulShutdown();
163 QString getDBusAddress()
const;
169 bool m_initalized =
false;
170 bool m_shuttingDown =
false;
176 bool m_initDBusConnection =
false;
177 QDBusConnection m_dbusConnection {
"default" };
187 context::IContextApplication *m_contextApplication =
nullptr;
188 context::CContextAudioBase *m_contextAudio =
nullptr;
189 context::IContextNetwork *m_contextNetwork =
nullptr;
190 context::IContextOwnAircraft *m_contextOwnAircraft =
nullptr;
191 context::IContextSimulator *m_contextSimulator =
nullptr;
197 void initDBusConnection(
const QString &address);
200 void initDBusServer(
const QString &dBusAddress);
Configuration object for the contexts.
The class providing facades (the contexts) for all DBus relevant operations.
swift::misc::shared_state::CDataLinkDBus * getDataLinkDBus()
Transport mechanism for sharing state between applications.
bool isShuttingDown() const
Facade and context shutting down.
virtual ~CCoreFacade()
Destructor.
Audio context base class.
Audio context implementation.
Network context implementation.
Own aircraft context implementation. Central instance of data for.
Network simulator concrete implementation.
Application context interface.
Class template for accessing a specific value in the CDataCache.
Value object encapsulating information identifying a component of a modular distributed swift process...
Records all log messages to a list that persists for the lifetime of the application.
Allows distributed insertion of log messages into a central CLogHistory.
Streamable status message, e.g.
A transport mechanism using signals and slots distributed by DBus.
Backend services of the swift project, like dealing with the network or the simulators.
void registerMetadata()
Register all relevant metadata in swift::core.
Free functions in swift::misc.
#define SWIFT_CORE_EXPORT
Export a class or function from the library.