swift
Loading...
Searching...
No Matches
swift::core::context::IContext Class Referenceabstract

Base for all context classes. More...

#include <context.h>

Inheritance diagram for swift::core::context::IContext:
[legend]

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.
Public Member Functions inherited from QObject
QBindable< QString > bindableObjectName ()
 QObject (QObject *parent)
 QT_NO_CONTEXTLESS_CONNECT QT_NO_CONTEXTLESS_CONNECT
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 Q_CLASSINFO (Name, Value)
 Q_EMIT Q_EMIT
 Q_ENUM (...)
 Q_ENUMS (...)
 Q_ENUM_NS (...)
 Q_FLAG (...)
 Q_FLAGS (...)
 Q_FLAG_NS (...)
 Q_GADGET Q_GADGET
 Q_GADGET_EXPORT (EXPORT_MACRO)
 Q_INTERFACES (...)
 Q_INVOKABLE Q_INVOKABLE
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 Q_NAMESPACE Q_NAMESPACE
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 Q_OBJECT Q_OBJECT
 Q_PROPERTY (...)
 Q_REVISION Q_REVISION
 Q_SET_OBJECT_NAME (Object)
 Q_SIGNAL Q_SIGNAL
 Q_SIGNALS Q_SIGNALS
 Q_SLOT Q_SLOT
 Q_SLOTS Q_SLOTS
T qobject_cast (QObject *object)
T qobject_cast (const QObject *object)
bool blockSignals (bool block)
virtual bool event (QEvent *e)
virtual bool eventFilter (QObject *watched, QEvent *event)
bool moveToThread (QThread *targetThread)
bool setProperty (const char *name, QVariant &&value)
bool setProperty (const char *name, const QVariant &value)
int startTimer (int interval, Qt::TimerType timerType)
int startTimer (std::chrono::nanoseconds interval, Qt::TimerType timerType)
void deleteLater ()
void destroyed (QObject *obj)
void installEventFilter (QObject *filterObj)
void killTimer (Qt::TimerId id)
void killTimer (int id)
void objectNameChanged (const QString &objectName)
void removeEventFilter (QObject *obj)
void setObjectName (QAnyStringView name)
void setObjectName (const QString &name)
void setParent (QObject *parent)
QList< QByteArray > dynamicPropertyNames () const const
QList< T > findChildren (QAnyStringView name, Qt::FindChildOptions options) const const
QList< T > findChildren (Qt::FindChildOptions options) const const
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
QObject * parent () const const
QString objectName () const const
QThread * thread () const const
QVariant property (const char *name) const const
T findChild (QAnyStringView name, Qt::FindChildOptions options) const const
T findChild (Qt::FindChildOptions options) const const
bool disconnect (const QObject *receiver, const char *method) const const
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
bool inherits (const char *className) const const
bool isQmlExposed () const const
bool isQuickItemType () const const
bool isWidgetType () const const
bool isWindowType () const const
bool signalsBlocked () const const
virtual const QMetaObject * metaObject () const const
const QObjectList & children () const const
void dumpObjectInfo () const const
void dumpObjectTree () const const

Static Public Member Functions

static const QStringList & getLogCategories ()
 Log categories.
Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString tr (const char *sourceText, const char *disambiguation, int n)
bool disconnect (const QMetaObject::Connection &connection)
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)

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.
Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
virtual void connectNotify (const QMetaMethod &signal)
virtual void customEvent (QEvent *event)
virtual void disconnectNotify (const QMetaMethod &signal)
virtual void timerEvent (QTimerEvent *event)
QObject * sender () const const
bool isSignalConnected (const QMetaMethod &signal) const const
int receivers (const char *signal) const const
int senderSignalIndex () const const

Static Protected Member Functions

static const misc::CStatusMessage & statusMessageEmptyContext ()
 Standard message when status message is returned in empty context.

Additional Inherited Members

Public Types inherited from QObject
enum  TimerId
Public Attributes inherited from QObject
typedef QObjectList
 Invalid
Properties inherited from QObject
 objectName

Detailed Description

Base for all context classes.

Definition at line 33 of file context.h.

Constructor & Destructor Documentation

◆ IContext()

swift::core::context::IContext::IContext ( CCoreFacadeConfig::ContextMode mode,
QObject * parent )
protected

Constructor.

Definition at line 20 of file context.cpp.

Member Function Documentation

◆ buildPathAndContextId()

QString swift::core::context::IContext::buildPathAndContextId ( const QString & path) const
inlineprotected

Path and context id.

Definition at line 135 of file context.h.

◆ getIContextApplication() [1/2]

IContextApplication * swift::core::context::IContext::getIContextApplication ( )

Application.

Definition at line 37 of file context.cpp.

◆ getIContextApplication() [2/2]

const IContextApplication * swift::core::context::IContext::getIContextApplication ( ) const

Context for application.

Definition at line 39 of file context.cpp.

◆ getIContextAudio() [1/2]

IContextAudio * swift::core::context::IContext::getIContextAudio ( )

Context for network.

Definition at line 33 of file context.cpp.

◆ getIContextAudio() [2/2]

const IContextAudio * swift::core::context::IContext::getIContextAudio ( ) const

Context for network.

Definition at line 35 of file context.cpp.

◆ getIContextNetwork() [1/2]

IContextNetwork * swift::core::context::IContext::getIContextNetwork ( )

Context for network.

Definition at line 29 of file context.cpp.

◆ getIContextNetwork() [2/2]

const IContextNetwork * swift::core::context::IContext::getIContextNetwork ( ) const

Context for network.

Definition at line 31 of file context.cpp.

◆ getIContextOwnAircraft() [1/2]

IContextOwnAircraft * swift::core::context::IContext::getIContextOwnAircraft ( )

Context for own aircraft.

Definition at line 44 of file context.cpp.

◆ getIContextOwnAircraft() [2/2]

const IContextOwnAircraft * swift::core::context::IContext::getIContextOwnAircraft ( ) const

Context for own aircraft.

Definition at line 46 of file context.cpp.

◆ getIContextSimulator() [1/2]

IContextSimulator * swift::core::context::IContext::getIContextSimulator ( )

Simulator.

Definition at line 51 of file context.cpp.

◆ getIContextSimulator() [2/2]

const IContextSimulator * swift::core::context::IContext::getIContextSimulator ( ) const

Context for simulator.

Definition at line 72 of file context.cpp.

◆ getLogCategories()

const QStringList & swift::core::context::IContext::getLogCategories ( )
static

Log categories.

Definition at line 14 of file context.cpp.

◆ getMode()

CCoreFacadeConfig::ContextMode swift::core::context::IContext::getMode ( ) const
inline

Mode.

Definition at line 71 of file context.h.

◆ getPathAndContextId()

virtual QString swift::core::context::IContext::getPathAndContextId ( ) const
pure virtual

◆ getRuntime() [1/2]

CCoreFacade * swift::core::context::IContext::getRuntime ( )
inline

Runtime.

Definition at line 57 of file context.h.

◆ getRuntime() [2/2]

const CCoreFacade * swift::core::context::IContext::getRuntime ( ) const
inline

Const runtime.

Definition at line 64 of file context.h.

◆ getUniqueId()

qint64 swift::core::context::IContext::getUniqueId ( ) const
inline

Unique id.

Definition at line 74 of file context.h.

◆ isDebugEnabled()

bool swift::core::context::IContext::isDebugEnabled ( ) const

Debug enabled?

Definition at line 62 of file context.cpp.

◆ isEmptyObject()

bool swift::core::context::IContext::isEmptyObject ( ) const
inline

Empty object?

Definition at line 54 of file context.h.

◆ isLocalObject()

bool swift::core::context::IContext::isLocalObject ( ) const
inline

Local or remote object?

Definition at line 51 of file context.h.

◆ isUsingImplementingObject()

bool swift::core::context::IContext::isUsingImplementingObject ( ) const
inline

Using local implementing object?

Definition at line 45 of file context.h.

◆ logEmptyContextWarning()

void swift::core::context::IContext::logEmptyContextWarning ( const QString & functionName) const
inlineprotected

Empty context called.

Definition at line 145 of file context.h.

◆ onAboutToShutdown()

virtual void swift::core::context::IContext::onAboutToShutdown ( )
inlineprotectedvirtual

Called when shutdown is about to be called.

Definition at line 153 of file context.h.

◆ registerWithDBus()

void swift::core::context::IContext::registerWithDBus ( const QString & objectPath,
misc::CDBusServer * server )
protected

Register myself in DBus.

Definition at line 77 of file context.cpp.

◆ relayBaseClassSignals()

void swift::core::context::IContext::relayBaseClassSignals ( const QString & serviceName,
QDBusConnection & connection,
const QString & objectPath,
const QString & interfaceName )
protected

Relay signals from this class.

Definition at line 64 of file context.cpp.

◆ setDebugEnabled()

void swift::core::context::IContext::setDebugEnabled ( bool debug)

Set debug flag.

Definition at line 53 of file context.cpp.

◆ statusMessageEmptyContext()

const CStatusMessage & swift::core::context::IContext::statusMessageEmptyContext ( )
staticprotected

Standard message when status message is returned in empty context.

Definition at line 88 of file context.cpp.


The documentation for this class was generated from the following files: