6#ifndef SWIFT_CORE_CONTEXT_CONTEXTNETWORK_EMPTY_H
7#define SWIFT_CORE_CONTEXT_CONTEXTNETWORK_EMPTY_H
15namespace swift::core::context
30 Q_UNUSED(recalculateDistance)
109 const QString &extraLiveryString,
bool sendLivery,
110 const QString &extraModelString,
bool sendModelString,
116 Q_UNUSED(extraModelString)
117 Q_UNUSED(extraLiveryString)
119 Q_UNUSED(sendModelString)
120 Q_UNUSED(partnerCallsign)
170 Q_UNUSED(textMessages)
194 Q_UNUSED(airportIcaoCode)
266 Q_UNUSED(incremental)
273 Q_UNUSED(textMessages)
307 Q_UNUSED(commandLine)
324 Q_UNUSED(enabledForRendering)
331 bool supportGndFlag)
override
334 Q_UNUSED(supportGndFlag)
365 bool enableFastPositionSending)
override
369 Q_UNUSED(enableFastPositionSending)
378 Q_UNUSED(enabledForRendering)
412 return swift::misc::simulation::RevLogDisabled;
486 Q_UNUSED(rawFsdMessageReceivedSlot)
Configuration object for the contexts.
The class providing facades (the contexts) for all DBus relevant operations.
bool parseCommandLine(const QString &commandLine, const swift::misc::CIdentifier &originator)
Parse a given command line.
swift::misc::network::CUserList getUsersForCallsigns(const swift::misc::aviation::CCallsignSet &callsigns) const
Users for given callsigns, e.g. for voice room resolution.
QMetaObject::Connection connectRawFsdMessageSignal(QObject *receiver, RawFsdMessageReceivedSlot rawFsdMessageReceivedSlot)
Connect to receive raw fsd messages.
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).
void testCreateDummyOnlineAtcStations(int number)
Create dummy ATC stations for performance tests etc.
bool setAircraftEnabledFlag(const swift::misc::aviation::CCallsign &callsign, bool enabledForRendering)
Set the enabled flag without any further logic like sending signals.
swift::misc::weather::CMetar getMetarForAirport(const swift::misc::aviation::CAirportIcaoCode &airportIcaoCode) const
Get METAR, if not available request it (code such as EDDF, KLAX).
swift::misc::aviation::CAtcStationList getAtcStationsOnline(bool recalculateDistance) const
The ATC list with online ATC controllers.
bool updateAircraftEnabled(const swift::misc::aviation::CCallsign &callsign, bool enabledForRendering)
Enable/disable rendering.
swift::misc::network::CUser getUserForCallsign(const swift::misc::aviation::CCallsign &callsign) const
User for given callsign, e.g. for text messages.
void requestAtisUpdates()
Request ATIS updates (for all stations).
bool isAircraftPartsHistoryEnabled() const
Is storing the aircraft parts history enabled?
swift::misc::CStatusMessageList getAircraftPartsHistory(const swift::misc::aviation::CCallsign &callsign) const
Get aircraft parts history.
swift::misc::network::CUserList getUsers() const
Get all users.
void testReceivedAtisMessage(const swift::misc::aviation::CCallsign &callsign, const swift::misc::aviation::CInformationMessage &msg)
Inject an ATIS.
int getAircraftInRangeCount() const
Aircraft count.
swift::misc::network::CClientList getClientsForCallsigns(const swift::misc::aviation::CCallsignSet &callsigns) const
Clients for given callsign, e.g. to test/fetch direct aircraft model.
int reInitializeAllAircraft()
Re-initialize all aircraft.
void enableReverseLookupMessages(swift::misc::simulation::ReverseLookupLogging enable)
Enable reverse lookup logging.
void sendFlightPlan(const swift::misc::aviation::CFlightPlan &flightPlan)
Send flight plan.
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.
swift::misc::network::CClientList getClients() const
Information about other clients.
bool isRemoteAircraftSupportingParts(const swift::misc::aviation::CCallsign &callsign) const
Parts supported?
swift::misc::simulation::CSimulatedAircraftList getAircraftInRange() const
Aircraft list.
swift::misc::aviation::CAtcStationList getClosestAtcStationsOnline(int number) const
The ATC list with online ATC controllers.
CContextNetworkEmpty(CCoreFacade *runtime)
Constructor.
void setFastPositionEnabledCallsigns(swift::misc::aviation::CCallsignSet &callsigns)
Callsigns enabled for fast position updates.
swift::misc::simulation::CSimulatedAircraft getAircraftInRangeForCallsign(const swift::misc::aviation::CCallsign &callsign) const
Aircraft for given callsign.
QString getNetworkStatistics(bool reset, const QString &separator)
Statistics info.
QStringList getNetworkPresetValues() const
Network preset values.
swift::misc::network::CServerList getVatsimFsdServers() const
Known FSD servers, available when data file was first read.
bool isAircraftInRange(const swift::misc::aviation::CCallsign &callsign) const
Aircraft in range.
bool updateAircraftModel(const swift::misc::aviation::CCallsign &callsign, const swift::misc::simulation::CAircraftModel &model, const swift::misc::CIdentifier &originator)
Change model (for remote aircraft).
bool updateAircraftSupportingGndFLag(const swift::misc::aviation::CCallsign &callsign, bool supportGndFlag)
Enable/disable support of gnd. flag.
void enableAircraftPartsHistory(bool enabled)
Enable storing of aircraft parts.
swift::misc::aviation::CCallsignSet getFastPositionEnabledCallsigns() const
Callsigns enabled for fast position updates.
void sendTextMessages(const swift::misc::network::CTextMessageList &textMessages)
Text messages (radio and private chat messages).
bool updateFastPositionEnabled(const swift::misc::aviation::CCallsign &callsign, bool enableFastPositionSending)
Change fast position updates.
swift::misc::aviation::CAtcStationList getOnlineStationsForFrequency(const swift::misc::physical_quantities::CFrequency &frequency) const
Online stations for frequency.
swift::misc::aviation::CFlightPlan loadFlightPlanFromNetwork(const swift::misc::aviation::CCallsign &callsign) const
Load flight plan (from network).
void testAddAircraftParts(const swift::misc::aviation::CCallsign &callsign, const swift::misc::aviation::CAircraftParts &parts, bool incremental)
Inject aircraft parts for testing.
swift::misc::aviation::CCallsignSet getAircraftInRangeCallsigns() const
Aircraft callsigns.
void testReceivedTextMessages(const swift::misc::network::CTextMessageList &textMessages)
Inject a text message as received.
swift::misc::network::CLoginMode getLoginMode() const
Login mode.
void testRequestAircraftConfig(const swift::misc::aviation::CCallsign &callsign)
Request parts for callsign (from another client).
swift::misc::aviation::CCallsign getPartnerCallsign() const
Partner callsign if any.
bool setOtherClient(const swift::misc::network::CClient &client)
Set client for given callsign.
bool isOnlineStation(const swift::misc::aviation::CCallsign &callsign) const
Online station for callsign?
swift::misc::CStatusMessageList getReverseLookupMessages(const swift::misc::aviation::CCallsign &callsign) const
Get reverse lookup messages.
swift::misc::aviation::CAtcStation getOnlineStationForCallsign(const swift::misc::aviation::CCallsign &callsign) const
Online station for callsign.
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.
bool setNetworkStatisticsEnable(bool enabled)
Statistics enable/disable.
bool isConnected() const
Network connected?
swift::misc::simulation::ReverseLookupLogging isReverseLookupMessagesEnabled() const
Enabled reverse lookup logging?
swift::misc::CStatusMessage disconnectFromNetwork()
Disconnect from network.
void requestAircraftDataUpdates()
Request data updates (pilot's frequencies, ATIS, ..).
swift::misc::network::CServer getConnectedServer() const
Server which is connected, if not connected empty default object.
swift::misc::aviation::CAircraftPartsList getRemoteAircraftParts(const swift::misc::aviation::CCallsign &callsign) const
Get remote aircraft parts.
void logEmptyContextWarning(const QString &functionName) const
Empty context called.
static const misc::CStatusMessage & statusMessageEmptyContext()
Standard message when status message is returned in empty context.
std::function< void(const swift::misc::network::CRawFsdMessage &)> RawFsdMessageReceivedSlot
Raw FSD message receiver functor.
IContextNetwork(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
Constructor.
Value object encapsulating information identifying a component of a modular distributed swift process...
Streamable status message, e.g.
Status messages, e.g. from Core -> GUI.
Value object encapsulating information of aircraft's parts.
Value object encapsulating a list of aircraft parts.
Value object encapsulating information of airport ICAO data.
Value object encapsulating information about an ATC station.
Value object for a list of ATC stations.
Value object encapsulating information of a callsign.
Value object for a set of callsigns.
Value object for a flight plan.
Value object encapsulating a list of voice rooms.
Value object encapsulating information about login mode.
Value object encapsulating information of a FSD server.
Value object encapsulating a list of servers.
Value object encapsulating a list of text messages.
Value object encapsulating information of a user.
Value object encapsulating a list of voice rooms.
Physical unit length (length).
static const CLength & null()
Aircraft model (used by another pilot, my models on disk).
Comprehensive information of an aircraft.
Value object encapsulating a list of aircraft.
#define SWIFT_CORE_EXPORT
Export a class or function from the library.