6 #ifndef SWIFT_CORE_CONTEXT_CONTEXTNETWORK_EMPTY_H
7 #define SWIFT_CORE_CONTEXT_CONTEXTNETWORK_EMPTY_H
15 namespace swift::core::context
30 Q_UNUSED(recalculateDistance)
31 logEmptyContextWarning(Q_FUNC_INFO);
39 logEmptyContextWarning(Q_FUNC_INFO);
46 logEmptyContextWarning(Q_FUNC_INFO);
55 logEmptyContextWarning(Q_FUNC_INFO);
64 logEmptyContextWarning(Q_FUNC_INFO);
71 logEmptyContextWarning(Q_FUNC_INFO);
78 logEmptyContextWarning(Q_FUNC_INFO);
86 logEmptyContextWarning(Q_FUNC_INFO);
95 logEmptyContextWarning(Q_FUNC_INFO);
103 logEmptyContextWarning(Q_FUNC_INFO);
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)
121 logEmptyContextWarning(Q_FUNC_INFO);
122 return statusMessageEmptyContext();
128 logEmptyContextWarning(Q_FUNC_INFO);
135 logEmptyContextWarning(Q_FUNC_INFO);
142 logEmptyContextWarning(Q_FUNC_INFO);
143 return statusMessageEmptyContext();
149 logEmptyContextWarning(Q_FUNC_INFO);
156 logEmptyContextWarning(Q_FUNC_INFO);
163 logEmptyContextWarning(Q_FUNC_INFO);
170 Q_UNUSED(textMessages)
171 logEmptyContextWarning(Q_FUNC_INFO);
178 logEmptyContextWarning(Q_FUNC_INFO);
186 logEmptyContextWarning(Q_FUNC_INFO);
194 Q_UNUSED(airportIcaoCode)
195 logEmptyContextWarning(Q_FUNC_INFO);
202 logEmptyContextWarning(Q_FUNC_INFO);
211 logEmptyContextWarning(Q_FUNC_INFO);
219 logEmptyContextWarning(Q_FUNC_INFO);
226 logEmptyContextWarning(Q_FUNC_INFO);
235 logEmptyContextWarning(Q_FUNC_INFO);
243 logEmptyContextWarning(Q_FUNC_INFO);
257 logEmptyContextWarning(Q_FUNC_INFO);
266 Q_UNUSED(incremental)
267 logEmptyContextWarning(Q_FUNC_INFO);
273 Q_UNUSED(textMessages)
274 logEmptyContextWarning(Q_FUNC_INFO);
281 logEmptyContextWarning(Q_FUNC_INFO);
291 logEmptyContextWarning(Q_FUNC_INFO);
301 logEmptyContextWarning(Q_FUNC_INFO);
307 Q_UNUSED(commandLine)
309 logEmptyContextWarning(Q_FUNC_INFO);
316 logEmptyContextWarning(Q_FUNC_INFO);
324 Q_UNUSED(enabledForRendering)
325 logEmptyContextWarning(Q_FUNC_INFO);
331 bool supportGndFlag)
override
334 Q_UNUSED(supportGndFlag)
335 logEmptyContextWarning(Q_FUNC_INFO);
347 logEmptyContextWarning(Q_FUNC_INFO);
359 logEmptyContextWarning(Q_FUNC_INFO);
365 bool enableFastPositionSending)
override
367 logEmptyContextWarning(Q_FUNC_INFO);
369 Q_UNUSED(enableFastPositionSending)
376 logEmptyContextWarning(Q_FUNC_INFO);
378 Q_UNUSED(enabledForRendering)
389 logEmptyContextWarning(Q_FUNC_INFO);
395 logEmptyContextWarning(Q_FUNC_INFO);
403 logEmptyContextWarning(Q_FUNC_INFO);
411 logEmptyContextWarning(Q_FUNC_INFO);
412 return swift::misc::simulation::RevLogDisabled;
418 logEmptyContextWarning(Q_FUNC_INFO);
426 logEmptyContextWarning(Q_FUNC_INFO);
435 logEmptyContextWarning(Q_FUNC_INFO);
443 logEmptyContextWarning(Q_FUNC_INFO);
450 logEmptyContextWarning(Q_FUNC_INFO);
458 logEmptyContextWarning(Q_FUNC_INFO);
465 logEmptyContextWarning(Q_FUNC_INFO);
474 logEmptyContextWarning(Q_FUNC_INFO);
484 logEmptyContextWarning(Q_FUNC_INFO);
486 Q_UNUSED(rawFsdMessageReceivedSlot)
Configuration object for the contexts.
The class providing facades (the contexts) for all DBus relevant operations.
Empty context, used during shutdown/initialization.
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.
std::function< void(const swift::misc::network::CRawFsdMessage &)> RawFsdMessageReceivedSlot
Raw FSD message receiver functor.
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 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()
NULL PQ.
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.