swift
Public Member Functions | Protected Member Functions | List of all members
swift::simplugin::fs9::CSimulatorFs9 Class Reference

FS9 Simulator Implementation. More...

Inheritance diagram for swift::simplugin::fs9::CSimulatorFs9:
[legend]

Public Member Functions

 CSimulatorFs9 (const swift::misc::simulation::CSimulatorPluginInfo &info, const QSharedPointer< CFs9Host > &fs9Host, const QSharedPointer< CLobbyClient > &lobbyClient, swift::misc::simulation::IOwnAircraftProvider *ownAircraftProvider, swift::misc::simulation::IRemoteAircraftProvider *remoteAircraftProvider, swift::misc::network::IClientProvider *clientProvider, QObject *parent=nullptr)
 Constructor, parameters as in. More...
 
virtual ~CSimulatorFs9 ()=default
 Destructor.
 

Protected Member Functions

virtual void timerEvent (QTimerEvent *event)
 Timer event dispatching. More...
 

Interface implementations

virtual bool connectTo ()
 
virtual bool disconnectFrom ()
 
virtual bool physicallyAddRemoteAircraft (const swift::misc::simulation::CSimulatedAircraft &newRemoteAircraft)
 
virtual bool physicallyRemoveRemoteAircraft (const swift::misc::aviation::CCallsign &callsign)
 
virtual int physicallyRemoveAllRemoteAircraft ()
 
virtual swift::misc::aviation::CCallsignSet physicallyRenderedAircraft () const
 
virtual bool isPhysicallyRenderedAircraft (const swift::misc::aviation::CCallsign &callsign) const
 
virtual bool updateOwnSimulatorCockpit (const swift::misc::simulation::CSimulatedAircraft &ownAircraft, const swift::misc::CIdentifier &originator)
 
virtual bool updateOwnSimulatorSelcal (const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator)
 
virtual void displayStatusMessage (const swift::misc::CStatusMessage &message) const
 
virtual void displayTextMessage (const swift::misc::network::CTextMessage &message) const
 
virtual swift::misc::CStatusMessageList getInterpolationMessages (const swift::misc::aviation::CCallsign &callsign) const
 
virtual bool testSendSituationAndParts (const swift::misc::aviation::CCallsign &callsign, const swift::misc::aviation::CAircraftSituation &situation, const swift::misc::aviation::CAircraftParts &parts)
 
virtual bool isConnected () const
 
virtual bool isSimulating () const
 

Detailed Description

FS9 Simulator Implementation.

Definition at line 31 of file simulatorfs9.h.

Constructor & Destructor Documentation

◆ CSimulatorFs9()

swift::simplugin::fs9::CSimulatorFs9::CSimulatorFs9 ( const swift::misc::simulation::CSimulatorPluginInfo info,
const QSharedPointer< CFs9Host > &  fs9Host,
const QSharedPointer< CLobbyClient > &  lobbyClient,
swift::misc::simulation::IOwnAircraftProvider ownAircraftProvider,
swift::misc::simulation::IRemoteAircraftProvider remoteAircraftProvider,
swift::misc::network::IClientProvider clientProvider,
QObject *  parent = nullptr 
)

Constructor, parameters as in.

See also
swift::core::ISimulatorFactory::create
Fixme:
KB 7/2017 change or remove comment when reviewed Could we just use: connect(lobbyClient.data(), &CLobbyClient::disconnected, this, &CSimulatorFs9::disconnectFrom);

Definition at line 41 of file simulatorfs9.cpp.

Member Function Documentation

◆ connectTo()

bool swift::simplugin::fs9::CSimulatorFs9::connectTo ( )
virtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 62 of file simulatorfs9.cpp.

◆ disconnectFrom()

bool swift::simplugin::fs9::CSimulatorFs9::disconnectFrom ( )
virtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 78 of file simulatorfs9.cpp.

◆ displayStatusMessage()

void swift::simplugin::fs9::CSimulatorFs9::displayStatusMessage ( const swift::misc::CStatusMessage message) const
virtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 188 of file simulatorfs9.cpp.

◆ displayTextMessage()

void swift::simplugin::fs9::CSimulatorFs9::displayTextMessage ( const swift::misc::network::CTextMessage message) const
virtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 204 of file simulatorfs9.cpp.

◆ getInterpolationMessages()

CStatusMessageList swift::simplugin::fs9::CSimulatorFs9::getInterpolationMessages ( const swift::misc::aviation::CCallsign callsign) const
virtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 210 of file simulatorfs9.cpp.

◆ isConnected()

bool swift::simplugin::fs9::CSimulatorFs9::isConnected ( ) const
protectedvirtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 60 of file simulatorfs9.cpp.

◆ isPhysicallyRenderedAircraft()

bool swift::simplugin::fs9::CSimulatorFs9::isPhysicallyRenderedAircraft ( const swift::misc::aviation::CCallsign callsign) const
virtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 238 of file simulatorfs9.cpp.

◆ isSimulating()

virtual bool swift::simplugin::fs9::CSimulatorFs9::isSimulating ( ) const
inlineprotectedvirtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 73 of file simulatorfs9.h.

◆ physicallyAddRemoteAircraft()

bool swift::simplugin::fs9::CSimulatorFs9::physicallyAddRemoteAircraft ( const swift::misc::simulation::CSimulatedAircraft newRemoteAircraft)
virtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 96 of file simulatorfs9.cpp.

◆ physicallyRemoveAllRemoteAircraft()

int swift::simplugin::fs9::CSimulatorFs9::physicallyRemoveAllRemoteAircraft ( )
virtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 130 of file simulatorfs9.cpp.

◆ physicallyRemoveRemoteAircraft()

bool swift::simplugin::fs9::CSimulatorFs9::physicallyRemoveRemoteAircraft ( const swift::misc::aviation::CCallsign callsign)
virtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 118 of file simulatorfs9.cpp.

◆ physicallyRenderedAircraft()

CCallsignSet swift::simplugin::fs9::CSimulatorFs9::physicallyRenderedAircraft ( ) const
virtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 144 of file simulatorfs9.cpp.

◆ testSendSituationAndParts()

bool swift::simplugin::fs9::CSimulatorFs9::testSendSituationAndParts ( const swift::misc::aviation::CCallsign callsign,
const swift::misc::aviation::CAircraftSituation situation,
const swift::misc::aviation::CAircraftParts parts 
)
virtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 220 of file simulatorfs9.cpp.

◆ timerEvent()

void swift::simplugin::fs9::CSimulatorFs9::timerEvent ( QTimerEvent *  event)
protectedvirtual

Timer event dispatching.

See also
m_timerId
CSimulatorFsxCommon::dispatch

Definition at line 243 of file simulatorfs9.cpp.

◆ updateOwnSimulatorCockpit()

bool swift::simplugin::fs9::CSimulatorFs9::updateOwnSimulatorCockpit ( const swift::misc::simulation::CSimulatedAircraft ownAircraft,
const swift::misc::CIdentifier originator 
)
virtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 149 of file simulatorfs9.cpp.

◆ updateOwnSimulatorSelcal()

bool swift::simplugin::fs9::CSimulatorFs9::updateOwnSimulatorSelcal ( const swift::misc::aviation::CSelcal selcal,
const swift::misc::CIdentifier originator 
)
virtual

KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 as we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)

Definition at line 170 of file simulatorfs9.cpp.


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