swift
simulatormsfs2024.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2020 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_SIMPLUGIN_MSFS_SIMULATORMSFS2024_H
7 #define SWIFT_SIMPLUGIN_MSFS_SIMULATORMSFS2024_H
8 
9 #include "../fsxcommon/simulatorfsxcommon.h"
10 
11 namespace swift::simplugin::msfs2024
12 {
15  {
16  Q_OBJECT
17 
18  public:
23  swift::misc::network::IClientProvider *clientProvider, QObject *parent = nullptr);
24 
27  virtual bool connectTo() override;
29 
30  virtual void
32  const swift::simplugin::fsxcommon::DataDefinitionOwnAircraft &simulatorOwnAircraft) override;
33  };
34 
37  {
38  Q_OBJECT
39 
40  public:
42  using CSimulatorFsxCommonListener::CSimulatorFsxCommonListener;
43 
44  protected:
45  virtual void startImpl() override;
46  };
47 } // namespace swift::simplugin::msfs2024
48 
49 #endif // guard
Value object encapsulating information of an aircraft's situation.
Direct in memory access to client (network client) data.
Direct threadsafe in memory access to own aircraft.
Direct thread safe in memory access to remote aircraft.
virtual void setTrueAltitude(swift::misc::aviation::CAircraftSituation &aircraftSituation, const swift::simplugin::fsxcommon::DataDefinitionOwnAircraft &simulatorOwnAircraft)
Customization point for adjusting altitude to compensate for temperature effect.
CSimulatorMsFs2024(const swift::misc::simulation::CSimulatorPluginInfo &info, swift::misc::simulation::IOwnAircraftProvider *ownAircraftProvider, swift::misc::simulation::IRemoteAircraftProvider *remoteAircraftProvider, swift::misc::network::IClientProvider *clientProvider, QObject *parent=nullptr)
Constructor, parameters as in.
virtual bool connectTo()
Connect to simulator.
virtual void startImpl()
Plugin specific implementation to start listener.