swift
Public Member Functions | Protected Member Functions | Friends | List of all members
swift::core::context::CContextNetworkProxy Class Reference

Network context proxy. More...

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

Public Slots

Interface overrides
swift::misc::aviation::CAtcStationList getAtcStationsOnline (bool recalculateDistance) const
 The ATC list with online ATC controllers. More...
 
swift::misc::aviation::CAtcStationList getClosestAtcStationsOnline (int number) const
 The ATC list with online ATC controllers. More...
 
swift::misc::simulation::CSimulatedAircraftList getAircraftInRange () const
 Aircraft list. More...
 
swift::misc::aviation::CCallsignSet getAircraftInRangeCallsigns () const
 Aircraft callsigns. More...
 
int getAircraftInRangeCount () const
 Aircraft count. More...
 
bool isAircraftInRange (const swift::misc::aviation::CCallsign &callsign) const
 Aircraft in range. More...
 
swift::misc::simulation::CSimulatedAircraft getAircraftInRangeForCallsign (const swift::misc::aviation::CCallsign &callsign) const
 Aircraft for given callsign. More...
 
swift::misc::aviation::CAtcStationList getOnlineStationsForFrequency (const swift::misc::physical_quantities::CFrequency &frequency) const
 Online stations for frequency. More...
 
swift::misc::aviation::CAtcStation getOnlineStationForCallsign (const swift::misc::aviation::CCallsign &callsign) const
 Online station for callsign. More...
 
bool isOnlineStation (const swift::misc::aviation::CCallsign &callsign) const
 Online station for callsign? More...
 
swift::misc::CStatusMessage connectToNetwork (const swift::misc::network::CServer &server, const QString &extraLiveryString, bool sendLivery, const QString &extraModelString, bool sendModelString, const swift::misc::aviation::CCallsign &partnerCallsign, swift::misc::network::CLoginMode mode)
 Connect to Network. More...
 
swift::misc::CStatusMessage disconnectFromNetwork ()
 Disconnect from network. More...
 
bool isConnected () const
 Network connected? More...
 
swift::misc::network::CServer getConnectedServer () const
 Server which is connected, if not connected empty default object. More...
 
swift::misc::network::CLoginMode getLoginMode () const
 Login mode. More...
 
bool parseCommandLine (const QString &commandLine, const swift::misc::CIdentifier &originator)
 Parse a given command line. More...
 
void sendTextMessages (const swift::misc::network::CTextMessageList &textMessages)
 Text messages (radio and private chat messages) More...
 
void sendFlightPlan (const swift::misc::aviation::CFlightPlan &flightPlan)
 Send flight plan. More...
 
swift::misc::aviation::CFlightPlan loadFlightPlanFromNetwork (const swift::misc::aviation::CCallsign &callsign) const
 Load flight plan (from network) More...
 
swift::misc::weather::CMetar getMetarForAirport (const swift::misc::aviation::CAirportIcaoCode &airportIcaoCode) const
 Get METAR, if not available request it (code such as EDDF, KLAX) More...
 
swift::misc::network::CUserList getUsers () const
 Get all users. More...
 
swift::misc::network::CUserList getUsersForCallsigns (const swift::misc::aviation::CCallsignSet &callsigns) const
 Users for given callsigns, e.g. for voice room resolution. More...
 
swift::misc::network::CUser getUserForCallsign (const swift::misc::aviation::CCallsign &callsign) const
 User for given callsign, e.g. for text messages. More...
 
swift::misc::network::CClientList getClients () const
 Information about other clients. More...
 
swift::misc::network::CServerList getVatsimFsdServers () const
 Known FSD servers, available when data file was first read. More...
 
swift::misc::network::CClientList getClientsForCallsigns (const swift::misc::aviation::CCallsignSet &callsigns) const
 Clients for given callsign, e.g. to test/fetch direct aircraft model. More...
 
bool setOtherClient (const swift::misc::network::CClient &client)
 Set client for given callsign. More...
 
void requestAircraftDataUpdates ()
 Request data updates (pilot's frequencies, ATIS, ..) More...
 
void requestAtisUpdates ()
 Request ATIS updates (for all stations) More...
 
bool updateAircraftEnabled (const swift::misc::aviation::CCallsign &callsign, bool enabledForRendering)
 Enable/disable rendering. More...
 
bool setAircraftEnabledFlag (const swift::misc::aviation::CCallsign &callsign, bool enabledForRendering)
 Set the enabled flag without any further logic like sending signals. More...
 
bool updateAircraftModel (const swift::misc::aviation::CCallsign &callsign, const swift::misc::simulation::CAircraftModel &model, const swift::misc::CIdentifier &originator)
 Change model (for remote aircraft) More...
 
bool updateAircraftNetworkModel (const swift::misc::aviation::CCallsign &callsign, const swift::misc::simulation::CAircraftModel &model, const swift::misc::CIdentifier &originator)
 Change network model (for remote aircraft) More...
 
bool updateFastPositionEnabled (const swift::misc::aviation::CCallsign &callsign, bool enableFastPositionSending)
 Change fast position updates. More...
 
bool updateAircraftSupportingGndFLag (const swift::misc::aviation::CCallsign &callsign, bool supportGndFlag)
 Enable/disable support of gnd. flag. More...
 
int reInitializeAllAircraft ()
 Re-initialize all aircraft. More...
 
void setFastPositionEnabledCallsigns (swift::misc::aviation::CCallsignSet &callsigns)
 Callsigns enabled for fast position updates. More...
 
swift::misc::aviation::CCallsignSet getFastPositionEnabledCallsigns () const
 Callsigns enabled for fast position updates. More...
 
swift::misc::CStatusMessageList getReverseLookupMessages (const swift::misc::aviation::CCallsign &callsign) const
 Get reverse lookup messages. More...
 
swift::misc::simulation::ReverseLookupLogging isReverseLookupMessagesEnabled () const
 Enabled reverse lookup logging? More...
 
void enableReverseLookupMessages (swift::misc::simulation::ReverseLookupLogging enable)
 Enable reverse lookup logging. More...
 
swift::misc::CStatusMessageList getAircraftPartsHistory (const swift::misc::aviation::CCallsign &callsign) const
 Get aircraft parts history. More...
 
swift::misc::aviation::CAircraftPartsList getRemoteAircraftParts (const swift::misc::aviation::CCallsign &callsign) const
 Get remote aircraft parts. More...
 
bool isAircraftPartsHistoryEnabled () const
 Is storing the aircraft parts history enabled? More...
 
bool isRemoteAircraftSupportingParts (const swift::misc::aviation::CCallsign &callsign) const
 Parts supported? More...
 
void enableAircraftPartsHistory (bool enabled)
 Enable storing of aircraft parts. More...
 
QString getNetworkStatistics (bool reset, const QString &separator)
 Statistics info. More...
 
bool setNetworkStatisticsEnable (bool enabled)
 Statistics enable/disable. More...
 
QStringList getNetworkPresetValues () const
 Network preset values. More...
 
swift::misc::aviation::CCallsign getPartnerCallsign () const
 Partner callsign if any. More...
 
void testCreateDummyOnlineAtcStations (int number)
 Create dummy ATC stations for performance tests etc. More...
 
void testAddAircraftParts (const swift::misc::aviation::CCallsign &callsign, const swift::misc::aviation::CAircraftParts &parts, bool incremental)
 Inject aircraft parts for testing. More...
 
void testReceivedTextMessages (const swift::misc::network::CTextMessageList &textMessages)
 Inject a text message as received. More...
 
void testReceivedAtisMessage (const swift::misc::aviation::CCallsign &callsign, const swift::misc::aviation::CInformationMessage &msg)
 Inject an ATIS. More...
 
void testRequestAircraftConfig (const swift::misc::aviation::CCallsign &callsign)
 Request parts for callsign (from another client) More...
 
bool testAddAltitudeOffset (const swift::misc::aviation::CCallsign &callsign, const swift::misc::physical_quantities::CLength &offset=swift::misc::physical_quantities::CLength::null())
 Add altitude offset for testing. More...
 
- Public Slots inherited from swift::core::context::IContextNetwork
virtual swift::misc::aviation::CAtcStationList getAtcStationsOnline (bool recalculateDistance) const =0
 The ATC list with online ATC controllers.
 
virtual swift::misc::aviation::CAtcStationList getClosestAtcStationsOnline (int number) const =0
 The ATC list with online ATC controllers. More...
 
virtual swift::misc::simulation::CSimulatedAircraftList getAircraftInRange () const =0
 Aircraft list.
 
virtual swift::misc::aviation::CCallsignSet getAircraftInRangeCallsigns () const =0
 Aircraft callsigns.
 
virtual swift::misc::simulation::CSimulatedAircraft getAircraftInRangeForCallsign (const swift::misc::aviation::CCallsign &callsign) const =0
 Aircraft for given callsign.
 
virtual int getAircraftInRangeCount () const =0
 Aircraft count.
 
virtual bool isAircraftInRange (const swift::misc::aviation::CCallsign &callsign) const =0
 Aircraft in range.
 
virtual swift::misc::weather::CMetar getMetarForAirport (const swift::misc::aviation::CAirportIcaoCode &airportIcaoCode) const =0
 Get METAR, if not available request it (code such as EDDF, KLAX)
 
virtual swift::misc::aviation::CAtcStation getOnlineStationForCallsign (const swift::misc::aviation::CCallsign &callsign) const =0
 Online station for callsign.
 
virtual swift::misc::aviation::CAtcStationList getOnlineStationsForFrequency (const swift::misc::physical_quantities::CFrequency &frequency) const =0
 Online stations for frequency.
 
virtual bool isOnlineStation (const swift::misc::aviation::CCallsign &callsign) const =0
 Online station for callsign?
 
virtual swift::misc::network::CUserList getUsers () const =0
 Get all users.
 
virtual swift::misc::network::CUserList getUsersForCallsigns (const swift::misc::aviation::CCallsignSet &callsigns) const =0
 Users for given callsigns, e.g. for voice room resolution.
 
virtual swift::misc::network::CUser getUserForCallsign (const swift::misc::aviation::CCallsign &callsign) const =0
 User for given callsign, e.g. for text messages.
 
virtual swift::misc::network::CClientList getClients () const =0
 Information about other clients.
 
virtual swift::misc::network::CClientList getClientsForCallsigns (const swift::misc::aviation::CCallsignSet &callsigns) const =0
 Clients for given callsign, e.g. to test/fetch direct aircraft model.
 
virtual bool setOtherClient (const swift::misc::network::CClient &client)=0
 Set client for given callsign.
 
virtual swift::misc::network::CServerList getVatsimFsdServers () const =0
 Known FSD servers, available when data file was first read.
 
virtual void setFastPositionEnabledCallsigns (swift::misc::aviation::CCallsignSet &callsigns)=0
 Callsigns enabled for fast position updates.
 
virtual swift::misc::aviation::CCallsignSet getFastPositionEnabledCallsigns () const =0
 Callsigns enabled for fast position updates.
 
virtual swift::misc::CStatusMessage connectToNetwork (const swift::misc::network::CServer &server, const QString &extraLiveryString, bool sendLivery, const QString &extraModelString, bool sendModelString, const swift::misc::aviation::CCallsign &partnerCallsign, swift::misc::network::CLoginMode loginMode)=0
 Connect to Network. More...
 
virtual swift::misc::network::CServer getConnectedServer () const =0
 Server which is connected, if not connected empty default object.
 
virtual swift::misc::network::CLoginMode getLoginMode () const =0
 Login mode.
 
QString getLoginModeAsString () const
 Mode as string.
 
virtual swift::misc::CStatusMessage disconnectFromNetwork ()=0
 Disconnect from network. More...
 
virtual bool isConnected () const =0
 Network connected?
 
virtual void sendTextMessages (const swift::misc::network::CTextMessageList &textMessages)=0
 Text messages (radio and private chat messages)
 
virtual void sendFlightPlan (const swift::misc::aviation::CFlightPlan &flightPlan)=0
 Send flight plan.
 
virtual swift::misc::aviation::CFlightPlan loadFlightPlanFromNetwork (const swift::misc::aviation::CCallsign &callsign) const =0
 Load flight plan (from network)
 
virtual void requestAircraftDataUpdates ()=0
 Request data updates (pilot's frequencies, ATIS, ..)
 
virtual void requestAtisUpdates ()=0
 Request ATIS updates (for all stations)
 
virtual bool updateAircraftEnabled (const swift::misc::aviation::CCallsign &callsign, bool enabledForRendering)=0
 Enable/disable rendering.
 
virtual bool setAircraftEnabledFlag (const swift::misc::aviation::CCallsign &callsign, bool enabledForRendering)=0
 Set the enabled flag without any further logic like sending signals.
 
virtual bool updateAircraftSupportingGndFLag (const swift::misc::aviation::CCallsign &callsign, bool supportGndFlag)=0
 Enable/disable support of gnd. flag.
 
virtual bool updateAircraftModel (const swift::misc::aviation::CCallsign &callsign, const swift::misc::simulation::CAircraftModel &model, const swift::misc::CIdentifier &originator)=0
 Change model (for remote aircraft)
 
virtual bool updateAircraftNetworkModel (const swift::misc::aviation::CCallsign &callsign, const swift::misc::simulation::CAircraftModel &model, const swift::misc::CIdentifier &originator)=0
 Change network model (for remote aircraft)
 
virtual bool updateFastPositionEnabled (const swift::misc::aviation::CCallsign &callsign, bool enableFastPositionSending)=0
 Change fast position updates.
 
virtual int reInitializeAllAircraft ()=0
 Re-initialize all aircraft.
 
virtual swift::misc::CStatusMessageList getReverseLookupMessages (const swift::misc::aviation::CCallsign &callsign) const =0
 Get reverse lookup messages.
 
virtual swift::misc::simulation::ReverseLookupLogging isReverseLookupMessagesEnabled () const =0
 Enabled reverse lookup logging?
 
virtual void enableReverseLookupMessages (swift::misc::simulation::ReverseLookupLogging enable)=0
 Enable reverse lookup logging.
 
virtual swift::misc::CStatusMessageList getAircraftPartsHistory (const swift::misc::aviation::CCallsign &callsign) const =0
 Get aircraft parts history.
 
virtual swift::misc::aviation::CAircraftPartsList getRemoteAircraftParts (const swift::misc::aviation::CCallsign &callsign) const =0
 Get remote aircraft parts.
 
virtual bool isRemoteAircraftSupportingParts (const swift::misc::aviation::CCallsign &callsign) const =0
 Parts supported?
 
virtual bool isAircraftPartsHistoryEnabled () const =0
 Is storing the aircraft parts history enabled?
 
virtual void enableAircraftPartsHistory (bool enabled)=0
 Enable storing of aircraft parts.
 
virtual QString getNetworkStatistics (bool reset, const QString &separator)=0
 Statistics info.
 
virtual bool setNetworkStatisticsEnable (bool enabled)=0
 Statistics enable/disable.
 
virtual QStringList getNetworkPresetValues () const =0
 Network preset values.
 
virtual swift::misc::aviation::CCallsign getPartnerCallsign () const =0
 Partner callsign if any.
 
virtual void testCreateDummyOnlineAtcStations (int number)=0
 Create dummy ATC stations for performance tests etc.
 
virtual void testAddAircraftParts (const swift::misc::aviation::CCallsign &callsign, const swift::misc::aviation::CAircraftParts &parts, bool incremental)=0
 Inject aircraft parts for testing.
 
virtual void testReceivedTextMessages (const swift::misc::network::CTextMessageList &textMessages)=0
 Inject a text message as received.
 
virtual void testReceivedAtisMessage (const swift::misc::aviation::CCallsign &callsign, const swift::misc::aviation::CInformationMessage &msg)=0
 Inject an ATIS.
 
virtual void testRequestAircraftConfig (const swift::misc::aviation::CCallsign &callsign)=0
 Request parts for callsign (from another client)
 
virtual bool testAddAltitudeOffset (const swift::misc::aviation::CCallsign &callsign, const swift::misc::physical_quantities::CLength &offset=swift::misc::physical_quantities::CLength::null())=0
 Add altitude offset for testing.
 

Public Member Functions

 ~CContextNetworkProxy ()=default
 Destructor.
 
QMetaObject::Connection connectRawFsdMessageSignal (QObject *receiver, RawFsdMessageReceivedSlot rawFsdMessageReceivedSlot)
 Connect to receive raw fsd messages. More...
 
- Public Member Functions inherited from swift::core::context::IContextNetwork
QString getPathAndContextId () const
 Id and path name for round trip protection. More...
 
 ~IContextNetwork ()=default
 Destructor.
 
- Public Member Functions inherited from swift::core::context::IContext
 ~IContext ()=default
 Destructor.
 
bool isUsingImplementingObject () const
 Using local implementing object?
 
bool isLocalObject () const
 Local or remote object?
 
bool isEmptyObject () const
 Empty object?
 
CCoreFacadegetRuntime ()
 Runtime.
 
const CCoreFacadegetRuntime () const
 Const runtime.
 
CCoreFacadeConfig::ContextMode getMode () const
 Mode.
 
qint64 getUniqueId () const
 Unique id.
 
const IContextApplicationgetIContextApplication () const
 Context for application.
 
IContextApplicationgetIContextApplication ()
 Application.
 
IContextAudiogetIContextAudio ()
 Context for network.
 
const IContextAudiogetIContextAudio () const
 Context for network.
 
IContextNetworkgetIContextNetwork ()
 Context for network.
 
const IContextNetworkgetIContextNetwork () const
 Context for network.
 
IContextOwnAircraftgetIContextOwnAircraft ()
 Context for own aircraft.
 
const IContextOwnAircraftgetIContextOwnAircraft () const
 Context for own aircraft.
 
const IContextSimulatorgetIContextSimulator () const
 Context for simulator.
 
IContextSimulatorgetIContextSimulator ()
 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.
 
- Public Member Functions inherited from QObject
QBindable< QStringbindableObjectName ()
 
 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
 
qobject_cast (QObject *object)
 
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< QByteArraydynamicPropertyNames () 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
 
QObjectparent () const const
 
QString objectName () const const
 
QThreadthread () const const
 
QVariant property (const char *name) const const
 
findChild (QAnyStringView name, Qt::FindChildOptions options) const const
 
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 isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
bool signalsBlocked () const const
 
virtual const QMetaObjectmetaObject () const const
 
const QObjectListchildren () const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 

Protected Member Functions

 CContextNetworkProxy (CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
 Constructor.
 
 CContextNetworkProxy (const QString &serviceName, QDBusConnection &connection, CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
 DBus version constructor.
 
- Protected Member Functions inherited from swift::core::context::IContextNetwork
 IContextNetwork (CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
 Constructor.
 
- Protected Member Functions inherited from swift::core::context::IContext
 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)
 
QObjectsender () const const
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
int senderSignalIndex () const const
 

Friends

class IContextNetwork
 

Additional Inherited Members

- Public Types inherited from swift::core::context::IContextNetwork
using RawFsdMessageReceivedSlot = std::function< void(const swift::misc::network::CRawFsdMessage &)>
 Raw FSD message receiver functor.
 
- Public Types inherited from QObject
enum  TimerId
 
- Signals inherited from swift::core::context::IContextNetwork
void removedAircraft (const swift::misc::aviation::CCallsign &callsign)
 An aircraft disappeared.
 
void addedAircraft (const swift::misc::simulation::CSimulatedAircraft &remoteAircraft)
 A new aircraft appeared.
 
void readyForModelMatching (const swift::misc::simulation::CSimulatedAircraft &renderedAircraft)
 Read for model matching.
 
void changedAtcStationsOnline ()
 ATC station (online) list has been changed.
 
void changedAtcStationsOnlineDigest ()
 Digest signal changedAtcStationsOnline()
 
void changedAircraftInRange ()
 Aircraft list has been changed.
 
void changedAircraftInRangeDigest ()
 Digest signal changedAircraftInRange()
 
void changedRemoteAircraftModel (const swift::misc::simulation::CSimulatedAircraft &aircraft, const swift::misc::CIdentifier &originator)
 Aircraft model was changed. More...
 
void changedRemoteAircraftEnabled (const swift::misc::simulation::CSimulatedAircraft &aircraft)
 Aircraft enabled / disabled. More...
 
void changedFastPositionUpdates (const swift::misc::simulation::CSimulatedAircraft &aircraft)
 Aircraft enabled / disabled.
 
void changedGndFlagCapability (const swift::misc::simulation::CSimulatedAircraft &aircraft)
 Changed gnd. flag capability.
 
void atcStationDisconnected (const swift::misc::aviation::CAtcStation &atcStation)
 ATC station disconnected.
 
void kicked (const QString &kickMessage)
 User has been kicked from network.
 
void severeNetworkError (const QString &errorMessage)
 Network error.
 
void muteRequestReceived (bool mute)
 Mute request received.
 
void connectionStatusChanged (const swift::misc::network::CConnectionStatus &from, const swift::misc::network::CConnectionStatus &to)
 Connection status changed. More...
 
void connectedServerChanged (const swift::misc::network::CServer &server)
 The connected server has been changed. More...
 
void textMessagesReceived (const swift::misc::network::CTextMessageList &textMessages)
 Text messages received (also private chat messages, radio channel messages)
 
void supervisorTextMessageReceived (const swift::misc::network::CTextMessage &message)
 A supervisor text message was received.
 
void textMessageSent (const swift::misc::network::CTextMessage &sentMessage)
 Text message sent (by me)
 
- Signals inherited from swift::core::context::IContext
void changedLogOrDebugSettings ()
 Log or debug values changed.
 
- Static Public Member Functions inherited from swift::core::context::IContextNetwork
static const QStringInterfaceName ()
 DBus interface name.
 
static const QStringObjectPath ()
 DBus object path.
 
static IContextNetworkcreate (CCoreFacade *parent, CCoreFacadeConfig::ContextMode mode, swift::misc::CDBusServer *server, QDBusConnection &connection)
 Factory method.
 
static const QList< QCommandLineOption > & getCmdLineOptions ()
 Cmd.line arguments.
 
- Static Public Member Functions inherited from swift::core::context::IContext
static const QStringListgetLogCategories ()
 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)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
 Invalid
 
- Static Protected Member Functions inherited from swift::core::context::IContext
static const misc::CStatusMessagestatusMessageEmptyContext ()
 Standard message when status message is returned in empty context.
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Network context proxy.

Definition at line 58 of file contextnetworkproxy.h.

Member Function Documentation

◆ connectRawFsdMessageSignal()

QMetaObject::Connection swift::core::context::CContextNetworkProxy::connectRawFsdMessageSignal ( QObject receiver,
RawFsdMessageReceivedSlot  rawFsdMessageReceivedSlot 
)
virtual

Connect to receive raw fsd messages.

Implements swift::core::context::IContextNetwork.

Definition at line 407 of file contextnetworkproxy.cpp.

◆ connectToNetwork

CStatusMessage swift::core::context::CContextNetworkProxy::connectToNetwork ( const swift::misc::network::CServer server,
const QString extraLiveryString,
bool  sendLivery,
const QString extraModelString,
bool  sendModelString,
const swift::misc::aviation::CCallsign partnerCallsign,
swift::misc::network::CLoginMode  mode 
)
slot

Connect to Network.

Returns
messages generated during connecting

Definition at line 349 of file contextnetworkproxy.cpp.

◆ disconnectFromNetwork

CStatusMessage swift::core::context::CContextNetworkProxy::disconnectFromNetwork ( )
slot

Disconnect from network.

Returns
messages generated during disconnecting

Definition at line 359 of file contextnetworkproxy.cpp.

◆ enableAircraftPartsHistory

void swift::core::context::CContextNetworkProxy::enableAircraftPartsHistory ( bool  enabled)
slot

Enable storing of aircraft parts.

Definition at line 292 of file contextnetworkproxy.cpp.

◆ enableReverseLookupMessages

void swift::core::context::CContextNetworkProxy::enableReverseLookupMessages ( swift::misc::simulation::ReverseLookupLogging  enable)
slot

Enable reverse lookup logging.

Definition at line 266 of file contextnetworkproxy.cpp.

◆ getAircraftInRange

CSimulatedAircraftList swift::core::context::CContextNetworkProxy::getAircraftInRange ( ) const
slot

Aircraft list.

Definition at line 115 of file contextnetworkproxy.cpp.

◆ getAircraftInRangeCallsigns

CCallsignSet swift::core::context::CContextNetworkProxy::getAircraftInRangeCallsigns ( ) const
slot

Aircraft callsigns.

Definition at line 121 of file contextnetworkproxy.cpp.

◆ getAircraftInRangeCount

int swift::core::context::CContextNetworkProxy::getAircraftInRangeCount ( ) const
slot

Aircraft count.

Definition at line 127 of file contextnetworkproxy.cpp.

◆ getAircraftInRangeForCallsign

CSimulatedAircraft swift::core::context::CContextNetworkProxy::getAircraftInRangeForCallsign ( const swift::misc::aviation::CCallsign callsign) const
slot

Aircraft for given callsign.

Definition at line 137 of file contextnetworkproxy.cpp.

◆ getAircraftPartsHistory

CStatusMessageList swift::core::context::CContextNetworkProxy::getAircraftPartsHistory ( const swift::misc::aviation::CCallsign callsign) const
slot

Get aircraft parts history.

Definition at line 271 of file contextnetworkproxy.cpp.

◆ getAtcStationsOnline

CAtcStationList swift::core::context::CContextNetworkProxy::getAtcStationsOnline ( bool  recalculateDistance) const
slot

The ATC list with online ATC controllers.

Definition at line 103 of file contextnetworkproxy.cpp.

◆ getClients

CClientList swift::core::context::CContextNetworkProxy::getClients ( ) const
slot

Information about other clients.

Definition at line 176 of file contextnetworkproxy.cpp.

◆ getClientsForCallsigns

CClientList swift::core::context::CContextNetworkProxy::getClientsForCallsigns ( const swift::misc::aviation::CCallsignSet callsigns) const
slot

Clients for given callsign, e.g. to test/fetch direct aircraft model.

Definition at line 186 of file contextnetworkproxy.cpp.

◆ getClosestAtcStationsOnline

CAtcStationList swift::core::context::CContextNetworkProxy::getClosestAtcStationsOnline ( int  number) const
slot

The ATC list with online ATC controllers.

Remarks
recalculates distance and picks closest elements
sorted by distance, nearest first

Definition at line 109 of file contextnetworkproxy.cpp.

◆ getConnectedServer

CServer swift::core::context::CContextNetworkProxy::getConnectedServer ( ) const
slot

Server which is connected, if not connected empty default object.

Definition at line 369 of file contextnetworkproxy.cpp.

◆ getFastPositionEnabledCallsigns

CCallsignSet swift::core::context::CContextNetworkProxy::getFastPositionEnabledCallsigns ( ) const
slot

Callsigns enabled for fast position updates.

Definition at line 251 of file contextnetworkproxy.cpp.

◆ getLoginMode

CLoginMode swift::core::context::CContextNetworkProxy::getLoginMode ( ) const
slot

Login mode.

Definition at line 374 of file contextnetworkproxy.cpp.

◆ getMetarForAirport

CMetar swift::core::context::CContextNetworkProxy::getMetarForAirport ( const swift::misc::aviation::CAirportIcaoCode airportIcaoCode) const
slot

Get METAR, if not available request it (code such as EDDF, KLAX)

Definition at line 400 of file contextnetworkproxy.cpp.

◆ getNetworkPresetValues

QStringList swift::core::context::CContextNetworkProxy::getNetworkPresetValues ( ) const
slot

Network preset values.

Definition at line 307 of file contextnetworkproxy.cpp.

◆ getNetworkStatistics

QString swift::core::context::CContextNetworkProxy::getNetworkStatistics ( bool  reset,
const QString separator 
)
slot

Statistics info.

Definition at line 297 of file contextnetworkproxy.cpp.

◆ getOnlineStationForCallsign

CAtcStation swift::core::context::CContextNetworkProxy::getOnlineStationForCallsign ( const swift::misc::aviation::CCallsign callsign) const
slot

Online station for callsign.

Definition at line 149 of file contextnetworkproxy.cpp.

◆ getOnlineStationsForFrequency

CAtcStationList swift::core::context::CContextNetworkProxy::getOnlineStationsForFrequency ( const swift::misc::physical_quantities::CFrequency frequency) const
slot

Online stations for frequency.

Definition at line 143 of file contextnetworkproxy.cpp.

◆ getPartnerCallsign

CCallsign swift::core::context::CContextNetworkProxy::getPartnerCallsign ( ) const
slot

Partner callsign if any.

Definition at line 312 of file contextnetworkproxy.cpp.

◆ getRemoteAircraftParts

CAircraftPartsList swift::core::context::CContextNetworkProxy::getRemoteAircraftParts ( const swift::misc::aviation::CCallsign callsign) const
slot

Get remote aircraft parts.

Definition at line 277 of file contextnetworkproxy.cpp.

◆ getReverseLookupMessages

CStatusMessageList swift::core::context::CContextNetworkProxy::getReverseLookupMessages ( const swift::misc::aviation::CCallsign callsign) const
slot

Get reverse lookup messages.

Definition at line 256 of file contextnetworkproxy.cpp.

◆ getUserForCallsign

CUser swift::core::context::CContextNetworkProxy::getUserForCallsign ( const swift::misc::aviation::CCallsign callsign) const
slot

User for given callsign, e.g. for text messages.

Definition at line 171 of file contextnetworkproxy.cpp.

◆ getUsers

CUserList swift::core::context::CContextNetworkProxy::getUsers ( ) const
slot

Get all users.

Definition at line 160 of file contextnetworkproxy.cpp.

◆ getUsersForCallsigns

CUserList swift::core::context::CContextNetworkProxy::getUsersForCallsigns ( const swift::misc::aviation::CCallsignSet callsigns) const
slot

Users for given callsigns, e.g. for voice room resolution.

Definition at line 165 of file contextnetworkproxy.cpp.

◆ getVatsimFsdServers

CServerList swift::core::context::CContextNetworkProxy::getVatsimFsdServers ( ) const
slot

Known FSD servers, available when data file was first read.

Definition at line 181 of file contextnetworkproxy.cpp.

◆ isAircraftInRange

bool swift::core::context::CContextNetworkProxy::isAircraftInRange ( const swift::misc::aviation::CCallsign callsign) const
slot

Aircraft in range.

Definition at line 132 of file contextnetworkproxy.cpp.

◆ isAircraftPartsHistoryEnabled

bool swift::core::context::CContextNetworkProxy::isAircraftPartsHistoryEnabled ( ) const
slot

Is storing the aircraft parts history enabled?

Definition at line 282 of file contextnetworkproxy.cpp.

◆ isConnected

bool swift::core::context::CContextNetworkProxy::isConnected ( ) const
slot

Network connected?

Definition at line 364 of file contextnetworkproxy.cpp.

◆ isOnlineStation

bool swift::core::context::CContextNetworkProxy::isOnlineStation ( const swift::misc::aviation::CCallsign callsign) const
slot

Online station for callsign?

Definition at line 155 of file contextnetworkproxy.cpp.

◆ isRemoteAircraftSupportingParts

bool swift::core::context::CContextNetworkProxy::isRemoteAircraftSupportingParts ( const swift::misc::aviation::CCallsign callsign) const
slot

Parts supported?

Definition at line 287 of file contextnetworkproxy.cpp.

◆ isReverseLookupMessagesEnabled

ReverseLookupLogging swift::core::context::CContextNetworkProxy::isReverseLookupMessagesEnabled ( ) const
slot

Enabled reverse lookup logging?

Definition at line 261 of file contextnetworkproxy.cpp.

◆ loadFlightPlanFromNetwork

CFlightPlan swift::core::context::CContextNetworkProxy::loadFlightPlanFromNetwork ( const swift::misc::aviation::CCallsign callsign) const
slot

Load flight plan (from network)

Definition at line 394 of file contextnetworkproxy.cpp.

◆ parseCommandLine

bool swift::core::context::CContextNetworkProxy::parseCommandLine ( const QString commandLine,
const swift::misc::CIdentifier originator 
)
slot

Parse a given command line.

Definition at line 379 of file contextnetworkproxy.cpp.

◆ reInitializeAllAircraft

int swift::core::context::CContextNetworkProxy::reInitializeAllAircraft ( )
slot

Re-initialize all aircraft.

Definition at line 241 of file contextnetworkproxy.cpp.

◆ requestAircraftDataUpdates

void swift::core::context::CContextNetworkProxy::requestAircraftDataUpdates ( )
slot

Request data updates (pilot's frequencies, ATIS, ..)

Definition at line 197 of file contextnetworkproxy.cpp.

◆ requestAtisUpdates

void swift::core::context::CContextNetworkProxy::requestAtisUpdates ( )
slot

Request ATIS updates (for all stations)

Definition at line 202 of file contextnetworkproxy.cpp.

◆ sendFlightPlan

void swift::core::context::CContextNetworkProxy::sendFlightPlan ( const swift::misc::aviation::CFlightPlan flightPlan)
slot

Send flight plan.

Definition at line 389 of file contextnetworkproxy.cpp.

◆ sendTextMessages

void swift::core::context::CContextNetworkProxy::sendTextMessages ( const swift::misc::network::CTextMessageList textMessages)
slot

Text messages (radio and private chat messages)

Definition at line 384 of file contextnetworkproxy.cpp.

◆ setAircraftEnabledFlag

bool swift::core::context::CContextNetworkProxy::setAircraftEnabledFlag ( const swift::misc::aviation::CCallsign callsign,
bool  enabledForRendering 
)
slot

Set the enabled flag without any further logic like sending signals.

Definition at line 210 of file contextnetworkproxy.cpp.

◆ setFastPositionEnabledCallsigns

void swift::core::context::CContextNetworkProxy::setFastPositionEnabledCallsigns ( swift::misc::aviation::CCallsignSet callsigns)
slot

Callsigns enabled for fast position updates.

Definition at line 246 of file contextnetworkproxy.cpp.

◆ setNetworkStatisticsEnable

bool swift::core::context::CContextNetworkProxy::setNetworkStatisticsEnable ( bool  enabled)
slot

Statistics enable/disable.

Definition at line 302 of file contextnetworkproxy.cpp.

◆ setOtherClient

bool swift::core::context::CContextNetworkProxy::setOtherClient ( const swift::misc::network::CClient client)
slot

Set client for given callsign.

Definition at line 192 of file contextnetworkproxy.cpp.

◆ testAddAircraftParts

void swift::core::context::CContextNetworkProxy::testAddAircraftParts ( const swift::misc::aviation::CCallsign callsign,
const swift::misc::aviation::CAircraftParts parts,
bool  incremental 
)
slot

Inject aircraft parts for testing.

Definition at line 322 of file contextnetworkproxy.cpp.

◆ testAddAltitudeOffset

bool swift::core::context::CContextNetworkProxy::testAddAltitudeOffset ( const swift::misc::aviation::CCallsign callsign,
const swift::misc::physical_quantities::CLength offset = swift::misc::physical_quantities::CLength::null() 
)
slot

Add altitude offset for testing.

Definition at line 343 of file contextnetworkproxy.cpp.

◆ testCreateDummyOnlineAtcStations

void swift::core::context::CContextNetworkProxy::testCreateDummyOnlineAtcStations ( int  number)
slot

Create dummy ATC stations for performance tests etc.

Definition at line 317 of file contextnetworkproxy.cpp.

◆ testReceivedAtisMessage

void swift::core::context::CContextNetworkProxy::testReceivedAtisMessage ( const swift::misc::aviation::CCallsign callsign,
const swift::misc::aviation::CInformationMessage msg 
)
slot

Inject an ATIS.

Definition at line 333 of file contextnetworkproxy.cpp.

◆ testReceivedTextMessages

void swift::core::context::CContextNetworkProxy::testReceivedTextMessages ( const swift::misc::network::CTextMessageList textMessages)
slot

Inject a text message as received.

Definition at line 328 of file contextnetworkproxy.cpp.

◆ testRequestAircraftConfig

void swift::core::context::CContextNetworkProxy::testRequestAircraftConfig ( const swift::misc::aviation::CCallsign callsign)
slot

Request parts for callsign (from another client)

Definition at line 338 of file contextnetworkproxy.cpp.

◆ updateAircraftEnabled

bool swift::core::context::CContextNetworkProxy::updateAircraftEnabled ( const swift::misc::aviation::CCallsign callsign,
bool  enabledForRendering 
)
slot

Enable/disable rendering.

Definition at line 204 of file contextnetworkproxy.cpp.

◆ updateAircraftModel

bool swift::core::context::CContextNetworkProxy::updateAircraftModel ( const swift::misc::aviation::CCallsign callsign,
const swift::misc::simulation::CAircraftModel model,
const swift::misc::CIdentifier originator 
)
slot

Change model (for remote aircraft)

Definition at line 216 of file contextnetworkproxy.cpp.

◆ updateAircraftNetworkModel

bool swift::core::context::CContextNetworkProxy::updateAircraftNetworkModel ( const swift::misc::aviation::CCallsign callsign,
const swift::misc::simulation::CAircraftModel model,
const swift::misc::CIdentifier originator 
)
slot

Change network model (for remote aircraft)

Definition at line 222 of file contextnetworkproxy.cpp.

◆ updateAircraftSupportingGndFLag

bool swift::core::context::CContextNetworkProxy::updateAircraftSupportingGndFLag ( const swift::misc::aviation::CCallsign callsign,
bool  supportGndFlag 
)
slot

Enable/disable support of gnd. flag.

Definition at line 235 of file contextnetworkproxy.cpp.

◆ updateFastPositionEnabled

bool swift::core::context::CContextNetworkProxy::updateFastPositionEnabled ( const swift::misc::aviation::CCallsign callsign,
bool  enableFastPositionSending 
)
slot

Change fast position updates.

Definition at line 229 of file contextnetworkproxy.cpp.


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