|
swift
|
Main plugin class. More...
#include <plugin.h>
Public Member Functions | |
| CPlugin () | |
| Constructor. | |
| ~CPlugin () | |
| Destructor. | |
| void | onAircraftModelChanged () |
| Called by XPluginReceiveMessage when the model is changed. | |
| void | onAircraftRepositioned () |
| Called by XPluginReceiveMessage when the aircraft is positioned at an airport. | |
| void | onSceneryLoaded () |
| Called by XPluginReceiveMessage when some scenery is loaded. | |
| bool | isRunning () const |
| Is running. | |
| bool | shouldStop () const |
| Should stop. | |
| virtual const CConfig & | getConfig () const |
| Get settings from xswiftbus.conf (needed during plugin initialization). | |
| virtual bool | writeConfig (bool tcas, bool debug) |
| Write a config file with these new values. | |
| Public Member Functions inherited from XSwiftBus::CSettingsProvider | |
| CSettings | getSettings () const |
| Get settings. | |
| void | setSettings (const CSettings &settings) |
| Set settings. | |
Additional Inherited Members | |
| Protected Member Functions inherited from XSwiftBus::CSettingsProvider | |
| ~CSettingsProvider ()=default | |
| Destructor. | |
| XSwiftBus::CPlugin::CPlugin | ( | ) |
Constructor.
Definition at line 22 of file plugin.cpp.
| XSwiftBus::CPlugin::~CPlugin | ( | ) |
Destructor.
Definition at line 62 of file plugin.cpp.
|
inlinevirtual |
Get settings from xswiftbus.conf (needed during plugin initialization).
Implements XSwiftBus::CSettingsProvider.
|
inline |
| void XSwiftBus::CPlugin::onAircraftModelChanged | ( | ) |
Called by XPluginReceiveMessage when the model is changed.
Definition at line 145 of file plugin.cpp.
| void XSwiftBus::CPlugin::onAircraftRepositioned | ( | ) |
Called by XPluginReceiveMessage when the aircraft is positioned at an airport.
Definition at line 154 of file plugin.cpp.
| void XSwiftBus::CPlugin::onSceneryLoaded | ( | ) |
Called by XPluginReceiveMessage when some scenery is loaded.
Definition at line 162 of file plugin.cpp.
|
inline |
|
inlinevirtual |
Write a config file with these new values.
Implements XSwiftBus::CSettingsProvider.