12 namespace swift::core::context
14 const QStringList &IContext::getLogCategories()
21 : QObject(parent), m_mode(mode), m_contextId(QDateTime::currentMSecsSinceEpoch())
55 if (m_debugEnabled == debug) {
return; }
62 const QString &objectPath,
const QString &interfaceName)
64 bool s = connection.connect(serviceName, objectPath, interfaceName,
"changedLogOrDebugSettings",
this,
SWIFT_CORE_EXPORT swift::core::CApplication * sApp
Single instance of application object.
void aboutToShutdown()
About to shutdown.
bool isShuttingDown() const
Is application shutting down?
ContextMode
How to handle a given context.
@ LocalInDBusServer
context runs in same process.
context::IContextAudio * getIContextAudio()
Context for audio.
context::IContextOwnAircraft * getIContextOwnAircraft()
Context for own aircraft.
context::IContextApplication * getIContextApplication()
Context for application.
context::IContextNetwork * getIContextNetwork()
Context for network.
context::IContextSimulator * getIContextSimulator()
Context for simulator.
Application context interface.
Base for all context classes.
void changedLogOrDebugSettings()
Log or debug values changed.
void setDebugEnabled(bool debug)
Set debug flag.
CCoreFacade * getRuntime()
Runtime.
void relayBaseClassSignals(const QString &serviceName, QDBusConnection &connection, const QString &objectPath, const QString &interfaceName)
Relay signals from this class.
const IContextSimulator * getIContextSimulator() const
Context for simulator.
CCoreFacadeConfig::ContextMode getMode() const
Mode.
void registerWithDBus(const QString &objectPath, misc::CDBusServer *server)
Register myself in DBus.
virtual void onAboutToShutdown()
Called when shutdown is about to be called.
IContextNetwork * getIContextNetwork()
Context for network.
const IContextApplication * getIContextApplication() const
Context for application.
IContextAudio * getIContextAudio()
Context for network.
IContextOwnAircraft * getIContextOwnAircraft()
Context for own aircraft.
static const misc::CStatusMessage & statusMessageEmptyContext()
Standard message when status message is returned in empty context.
bool isDebugEnabled() const
Debug enabled?
void addObject(const QString &name, QObject *object)
Add a QObject to be exposed via DBus.
static const QString & context()
Contexts.
Streamable status message, e.g.
constexpr static auto SeverityWarning
Status severities.
Free functions in swift::misc.