swift
Loading...
Searching...
No Matches
XSwiftBus::CService Class Reference

xswiftbus service object which is accessible through DBus More...

#include <service.h>

Inheritance diagram for XSwiftBus::CService:
[legend]

Public Member Functions

 CService (CSettingsProvider *settingsProvider)
 Constructor.
virtual ~CService ()
 Destructor.
void onAircraftModelChanged ()
 Called by XPluginReceiveMessage when the model changes.
void onSceneryLoaded ()
 Called by XPluginReceiveMessage when some scenery is loaded.
void addTextMessage (const std::string &text, double red, double green, double blue)
 Add a text message to the on-screen display, with RGB components in the range [0,1].
std::string getAircraftLivery () const
 Get current aircraft livery.
std::string getAircraftIcaoCode () const
 Get the ICAO code of the current aircraft model.
std::string getAircraftDescription () const
 Get the description of the current aircraft model.
bool isPaused () const
 True if sim is paused.
bool isUsingRealTime () const
 True if sim time is tracking operating system time.
std::tuple< double, double, double, double > getFrameStats ()
 Frames-per-second, averaged over the last 500 frames, or since this function was last called, whichever is later. Second part is the average simulation time ratio during the same period. Third part is the total track miles over-reported during the same period. Fourth part is the total minutes behind scedule during the same period.
void resetFrameTotals ()
 Reset the monitoring of total miles and minutes lost due to low frame rate.
void setFlightNetworkConnected (bool connected)
 Set the current connection state.
void setOwnCallsign (const std::string &callsign)
 Set the current own callsign.
double getLatitudeDeg () const
 Get aircraft latitude in degrees.
double getLongitudeDeg () const
 Get aircraft longitude in degrees.
double getAltitudeMslM () const
 Get aircraft altitude in meters.
double getPressureAltitudeFt () const
 Get aircraft pressure altitude in feet in standard atmosphere in X-Plane 12. NaN in earlier versions of X-Plane.
double getHeightAglM () const
 Get aircraft height in meters.
double getGroundSpeedMps () const
 Get aircraft groundspeed in meters per second.
double getIndicatedAirspeedKias () const
 Get aircraft IAS in knots.
double getTrueAirspeedKias () const
 Get aircraft TAS in meters per second.
double getPitchDeg () const
 Get aircraft pitch in degrees above horizon.
double getRollDeg () const
 Get aircraft roll in degrees.
double getTrueHeadingDeg () const
 Get aircraft true heading in degrees.
bool getAnyWheelOnGround () const
 Get whether any wheel is on the ground.
bool getAllWheelsOnGround () const
 Get whether all wheels are on the ground.
double getGroundElevation () const
 Get elevation of ground under the plane in meters.
int getCom1ActiveKhz () const
 Get the current COM1 active frequency in kHz.
int getCom1StandbyKhz () const
 Get the current COM1 standby frequency in kHz.
bool getCom1Power () const
 Get the COM1 power on/off.
bool getCom1Listening () const
 Get the COM1 listening yes/no.
float getCom1Volume () const
 Get the COM1 volume 0..1.
bool isCom1Receiving () const
 Is COM1 receiving?
bool isCom1Transmitting () const
 Is COM1 transmitting?
int getCom2ActiveKhz () const
 Get the current COM2 active frequency in kHz.
int getCom2StandbyKhz () const
 Get the current COM2 standby frequency in kHz.
bool getCom2Power () const
 Get the COM2 power on/off.
bool getCom2Listening () const
 Get the COM2 listening yes/no.
float getCom2Volume () const
 Get the COM2 volume 0..1.
bool isCom2Receiving () const
 Is COM2 receiving?
bool isCom2Transmitting () const
 Is COM2 transmitting?
int getTransponderCode () const
 Get the current transponder code in decimal.
int getTransponderMode () const
 Get the current transponder mode (depends on the aircraft, 0 and 1 usually mean standby, >1 active).
bool getTransponderIdent () const
 Get whether we are currently squawking ident.
bool getBeaconLightsOn () const
 Get whether beacon lights are on.
bool getLandingLightsOn () const
 Get whether landing lights are on.
bool getNavLightsOn () const
 Get whether nav lights are on.
bool getStrobeLightsOn () const
 Get whether strobe lights are on.
bool getTaxiLightsOn () const
 Get whether taxi lights are on.
double getQNHInHg () const
 Get barometric pressure at sea level in inches of mercury.
void setCom1ActiveKhz (int freq)
 Set the current COM1 active frequency in kHz.
void setCom1StandbyKhz (int freq)
 Set the current COM1 standby frequency in kHz.
void setCom2ActiveKhz (int freq)
 Set the current COM2 active frequency in kHz.
void setCom2StandbyKhz (int freq)
 Set the current COM2 standby frequency in kHz.
void setTransponderCode (int code)
 Set the current transponder code in decimal.
void setTransponderMode (int mode)
 Set the current transponder mode (depends on the aircraft, 0 and 1 usually mean standby, >1 active).
double getFlapsDeployRatio () const
 Get flaps deploy ratio, where 0.0 is flaps fully retracted, and 1.0 is flaps fully extended.
double getGearDeployRatio () const
 Get gear deploy ratio, where 0 is up and 1 is down.
int getNumberOfEngines () const
 Get the number of engines of current aircraft.
std::vector< double > getEngineN1Percentage () const
 Get the N1 speed as percent of max (per engine).
double getSpeedBrakeRatio () const
 Get the ratio how much the speedbrakes surfaces are extended (0.0 is fully retracted, and 1.0 is fully extended).
void toggleMessageBoxVisibility ()
 Toggles the visibility of the message box.
void setPopupMessageWindow (bool enabled)
 Enable/disable message window popping up for new messages.
void setDisappearMessageWindow (bool enabled)
 Enable/disable message window disappearing again after x ms.
void setDisappearMessageWindowTimeMs (int durationMs)
 Enable/disable message window disappearing after x ms.
std::string getSettingsJson () const
 Get settings in JSON format.
void setSettingsJson (const std::string &jsonString)
 Set settings.
int process ()
 Perform generic processing.
double getLocalXVelocityMps () const
 Get aircraft local velocity in world coordinates meters per second.
double getLocalYVelocityMps () const
 Get aircraft local velocity in world coordinates meters per second.
double getLocalZVelocityMps () const
 Get aircraft local velocity in world coordinates meters per second.
double getPitchRadPerSec () const
 Get aircraft angular velocity in radians per second.
double getRollRadPerSec () const
 Get aircraft angular velocity in radians per second.
double getHeadingRadPerSec () const
 Get aircraft angular velocity in radians per second.
int getComSelection () const
 COM Selection 6/7.
bool isCom1Selected () const
 COM Selection 6/7.
bool isCom2Selected () const
 COM Selection 6/7.
Public Member Functions inherited from XSwiftBus::CDBusObject
 CDBusObject (CSettingsProvider *settingsProvider)
 Constructor.
virtual ~CDBusObject ()
 Destructor.
void setDBusConnection (const std::shared_ptr< CDBusConnection > &dbusConnection)
 Set the assigned DBus connection.
void registerDBusObjectPath (const std::string &interfaceName, const std::string &objectPath)
 Register itself with interfaceName and objectPath.

Static Public Member Functions

static const std::string & InterfaceName ()
 DBus interface name.
static const std::string & ObjectPath ()
 DBus object path.
static std::string getVersionNumber ()
 Returns the xswiftbus version number.
static std::string getCommitHash ()
 Returns the SHA1 of the last commit that could influence xswiftbus.
static std::string getAircraftModelPath ()
 Get full path to current aircraft model.
static std::string getAircraftModelFilename ()
 Get base filename of current aircraft model.
static std::string getAircraftModelString ()
 Get canonical swift model string of current aircraft model.
static std::string getAircraftName ()
 Get name of current aircraft model.
static int getXPlaneVersionMajor ()
 Get major version number.
static int getXPlaneVersionMinor ()
 Get minor version number.
static std::string getXPlaneInstallationPath ()
 Get root of X-Plane install path.
static std::string getXPlanePreferencesPath ()
 Get full path to X-Plane preferences file.

Protected Member Functions

DBusHandlerResult dbusMessageHandler (const CDBusMessage &message)
 DBus message handler.
Protected Member Functions inherited from XSwiftBus::CDBusObject
virtual void dbusConnectedHandler ()
 Handler which is called when DBusCconnection is established.
virtual void dbusDisconnectedHandler ()
 Handler which is called when DBusConnection disconnected.
void sendDBusSignal (const std::string &name)
 Send DBus signal.
void sendDBusMessage (const CDBusMessage &message)
 Send DBus message.
void maybeSendEmptyDBusReply (bool wantsReply, const std::string &destination, dbus_uint32_t serial)
 Maybe sends an empty DBus reply (acknowledgement).
template<typename T>
void sendDBusReply (const std::string &destination, dbus_uint32_t serial, const T &argument)
 Send DBus reply.
template<typename T>
void sendDBusReply (const std::string &destination, dbus_uint32_t serial, const std::vector< T > &array)
 Send DBus reply.
void queueDBusCall (const std::function< void()> &func)
 Queue a DBus call to be executed in a different thread.
void invokeQueuedDBusCalls ()
 Invoke all pending DBus calls. They will be executed in the calling thread.
Protected Member Functions inherited from XSwiftBus::CSettingsAware
 CSettingsAware (CSettingsProvider *provider)
 Constructor.
 ~CSettingsAware ()=default
 Destructor.
CSettings getSettings () const
 Get settings.
void setSettings (const CSettings &settings)
 Set settings.
const CConfig & getConfig () const
 Get settings from xswiftbus.conf (needed during plugin initialization).
bool writeConfig (bool tcas, bool debug)
 Write a config file with these new values.

Detailed Description

xswiftbus service object which is accessible through DBus

Definition at line 35 of file service.h.

Constructor & Destructor Documentation

◆ CService()

XSwiftBus::CService::CService ( CSettingsProvider * settingsProvider)

Constructor.

Definition at line 100 of file service.cpp.

Member Function Documentation

◆ addTextMessage()

void XSwiftBus::CService::addTextMessage ( const std::string & text,
double red,
double green,
double blue )

Add a text message to the on-screen display, with RGB components in the range [0,1].

Definition at line 157 of file service.cpp.

◆ dbusMessageHandler()

DBusHandlerResult XSwiftBus::CService::dbusMessageHandler ( const CDBusMessage & message)
protectedvirtual

DBus message handler.

Implements XSwiftBus::CDBusObject.

Definition at line 568 of file service.cpp.

◆ getAircraftDescription()

std::string XSwiftBus::CService::getAircraftDescription ( ) const
inline

Get the description of the current aircraft model.

Definition at line 92 of file service.h.

◆ getAircraftIcaoCode()

std::string XSwiftBus::CService::getAircraftIcaoCode ( ) const
inline

Get the ICAO code of the current aircraft model.

Definition at line 89 of file service.h.

◆ getAircraftLivery()

std::string XSwiftBus::CService::getAircraftLivery ( ) const

Get current aircraft livery.

Definition at line 234 of file service.cpp.

◆ getAircraftModelFilename()

std::string XSwiftBus::CService::getAircraftModelFilename ( )
static

Get base filename of current aircraft model.

Definition at line 208 of file service.cpp.

◆ getAircraftModelPath()

std::string XSwiftBus::CService::getAircraftModelPath ( )
static

Get full path to current aircraft model.

Definition at line 200 of file service.cpp.

◆ getAircraftModelString()

std::string XSwiftBus::CService::getAircraftModelString ( )
static

Get canonical swift model string of current aircraft model.

Definition at line 216 of file service.cpp.

◆ getAircraftName()

std::string XSwiftBus::CService::getAircraftName ( )
static

Get name of current aircraft model.

Definition at line 225 of file service.cpp.

◆ getAllWheelsOnGround()

bool XSwiftBus::CService::getAllWheelsOnGround ( ) const
inline

Get whether all wheels are on the ground.

Definition at line 184 of file service.h.

◆ getAltitudeMslM()

double XSwiftBus::CService::getAltitudeMslM ( ) const
inline

Get aircraft altitude in meters.

Definition at line 136 of file service.h.

◆ getAnyWheelOnGround()

bool XSwiftBus::CService::getAnyWheelOnGround ( ) const
inline

Get whether any wheel is on the ground.

Definition at line 181 of file service.h.

◆ getBeaconLightsOn()

bool XSwiftBus::CService::getBeaconLightsOn ( ) const
inline

Get whether beacon lights are on.

Definition at line 251 of file service.h.

◆ getCom1ActiveKhz()

int XSwiftBus::CService::getCom1ActiveKhz ( ) const
inline

Get the current COM1 active frequency in kHz.

Definition at line 200 of file service.h.

◆ getCom1Listening()

bool XSwiftBus::CService::getCom1Listening ( ) const
inline

Get the COM1 listening yes/no.

Definition at line 209 of file service.h.

◆ getCom1Power()

bool XSwiftBus::CService::getCom1Power ( ) const
inline

Get the COM1 power on/off.

Definition at line 206 of file service.h.

◆ getCom1StandbyKhz()

int XSwiftBus::CService::getCom1StandbyKhz ( ) const
inline

Get the current COM1 standby frequency in kHz.

Definition at line 203 of file service.h.

◆ getCom1Volume()

float XSwiftBus::CService::getCom1Volume ( ) const
inline

Get the COM1 volume 0..1.

Definition at line 212 of file service.h.

◆ getCom2ActiveKhz()

int XSwiftBus::CService::getCom2ActiveKhz ( ) const
inline

Get the current COM2 active frequency in kHz.

Definition at line 221 of file service.h.

◆ getCom2Listening()

bool XSwiftBus::CService::getCom2Listening ( ) const
inline

Get the COM2 listening yes/no.

Definition at line 230 of file service.h.

◆ getCom2Power()

bool XSwiftBus::CService::getCom2Power ( ) const
inline

Get the COM2 power on/off.

Definition at line 227 of file service.h.

◆ getCom2StandbyKhz()

int XSwiftBus::CService::getCom2StandbyKhz ( ) const
inline

Get the current COM2 standby frequency in kHz.

Definition at line 224 of file service.h.

◆ getCom2Volume()

float XSwiftBus::CService::getCom2Volume ( ) const
inline

Get the COM2 volume 0..1.

Definition at line 233 of file service.h.

◆ getCommitHash()

std::string XSwiftBus::CService::getCommitHash ( )
static

Returns the SHA1 of the last commit that could influence xswiftbus.

Definition at line 131 of file service.cpp.

◆ getComSelection()

int XSwiftBus::CService::getComSelection ( ) const
inline

COM Selection 6/7.

Definition at line 194 of file service.h.

◆ getEngineN1Percentage()

std::vector< double > XSwiftBus::CService::getEngineN1Percentage ( ) const
inline

Get the N1 speed as percent of max (per engine).

Definition at line 296 of file service.h.

◆ getFlapsDeployRatio()

double XSwiftBus::CService::getFlapsDeployRatio ( ) const
inline

Get flaps deploy ratio, where 0.0 is flaps fully retracted, and 1.0 is flaps fully extended.

Definition at line 287 of file service.h.

◆ getFrameStats()

std::tuple< double, double, double, double > XSwiftBus::CService::getFrameStats ( )

Frames-per-second, averaged over the last 500 frames, or since this function was last called, whichever is later. Second part is the average simulation time ratio during the same period. Third part is the total track miles over-reported during the same period. Fourth part is the total minutes behind scedule during the same period.

Returns
Zero if no samples were collected since this function was last called.

Definition at line 133 of file service.cpp.

◆ getGearDeployRatio()

double XSwiftBus::CService::getGearDeployRatio ( ) const
inline

Get gear deploy ratio, where 0 is up and 1 is down.

Definition at line 290 of file service.h.

◆ getGroundElevation()

double XSwiftBus::CService::getGroundElevation ( ) const
inline

Get elevation of ground under the plane in meters.

Definition at line 187 of file service.h.

◆ getGroundSpeedMps()

double XSwiftBus::CService::getGroundSpeedMps ( ) const
inline

Get aircraft groundspeed in meters per second.

Definition at line 149 of file service.h.

◆ getHeadingRadPerSec()

double XSwiftBus::CService::getHeadingRadPerSec ( ) const
inline

Get aircraft angular velocity in radians per second.

Definition at line 177 of file service.h.

◆ getHeightAglM()

double XSwiftBus::CService::getHeightAglM ( ) const
inline

Get aircraft height in meters.

Definition at line 146 of file service.h.

◆ getIndicatedAirspeedKias()

double XSwiftBus::CService::getIndicatedAirspeedKias ( ) const
inline

Get aircraft IAS in knots.

Definition at line 152 of file service.h.

◆ getLandingLightsOn()

bool XSwiftBus::CService::getLandingLightsOn ( ) const
inline

Get whether landing lights are on.

Definition at line 254 of file service.h.

◆ getLatitudeDeg()

double XSwiftBus::CService::getLatitudeDeg ( ) const
inline

Get aircraft latitude in degrees.

Definition at line 130 of file service.h.

◆ getLocalXVelocityMps()

double XSwiftBus::CService::getLocalXVelocityMps ( ) const
inline

Get aircraft local velocity in world coordinates meters per second.

Definition at line 168 of file service.h.

◆ getLocalYVelocityMps()

double XSwiftBus::CService::getLocalYVelocityMps ( ) const
inline

Get aircraft local velocity in world coordinates meters per second.

Definition at line 169 of file service.h.

◆ getLocalZVelocityMps()

double XSwiftBus::CService::getLocalZVelocityMps ( ) const
inline

Get aircraft local velocity in world coordinates meters per second.

Definition at line 170 of file service.h.

◆ getLongitudeDeg()

double XSwiftBus::CService::getLongitudeDeg ( ) const
inline

Get aircraft longitude in degrees.

Definition at line 133 of file service.h.

◆ getNavLightsOn()

bool XSwiftBus::CService::getNavLightsOn ( ) const
inline

Get whether nav lights are on.

Definition at line 257 of file service.h.

◆ getNumberOfEngines()

int XSwiftBus::CService::getNumberOfEngines ( ) const
inline

Get the number of engines of current aircraft.

Definition at line 293 of file service.h.

◆ getPitchDeg()

double XSwiftBus::CService::getPitchDeg ( ) const
inline

Get aircraft pitch in degrees above horizon.

Definition at line 158 of file service.h.

◆ getPitchRadPerSec()

double XSwiftBus::CService::getPitchRadPerSec ( ) const
inline

Get aircraft angular velocity in radians per second.

Definition at line 175 of file service.h.

◆ getPressureAltitudeFt()

double XSwiftBus::CService::getPressureAltitudeFt ( ) const
inline

Get aircraft pressure altitude in feet in standard atmosphere in X-Plane 12. NaN in earlier versions of X-Plane.

Definition at line 140 of file service.h.

◆ getQNHInHg()

double XSwiftBus::CService::getQNHInHg ( ) const
inline

Get barometric pressure at sea level in inches of mercury.

Definition at line 266 of file service.h.

◆ getRollDeg()

double XSwiftBus::CService::getRollDeg ( ) const
inline

Get aircraft roll in degrees.

Definition at line 161 of file service.h.

◆ getRollRadPerSec()

double XSwiftBus::CService::getRollRadPerSec ( ) const
inline

Get aircraft angular velocity in radians per second.

Definition at line 176 of file service.h.

◆ getSettingsJson()

std::string XSwiftBus::CService::getSettingsJson ( ) const

Get settings in JSON format.

Definition at line 285 of file service.cpp.

◆ getSpeedBrakeRatio()

double XSwiftBus::CService::getSpeedBrakeRatio ( ) const
inline

Get the ratio how much the speedbrakes surfaces are extended (0.0 is fully retracted, and 1.0 is fully extended).

Definition at line 310 of file service.h.

◆ getStrobeLightsOn()

bool XSwiftBus::CService::getStrobeLightsOn ( ) const
inline

Get whether strobe lights are on.

Definition at line 260 of file service.h.

◆ getTaxiLightsOn()

bool XSwiftBus::CService::getTaxiLightsOn ( ) const
inline

Get whether taxi lights are on.

Definition at line 263 of file service.h.

◆ getTransponderCode()

int XSwiftBus::CService::getTransponderCode ( ) const
inline

Get the current transponder code in decimal.

Definition at line 242 of file service.h.

◆ getTransponderIdent()

bool XSwiftBus::CService::getTransponderIdent ( ) const
inline

Get whether we are currently squawking ident.

Definition at line 248 of file service.h.

◆ getTransponderMode()

int XSwiftBus::CService::getTransponderMode ( ) const
inline

Get the current transponder mode (depends on the aircraft, 0 and 1 usually mean standby, >1 active).

Definition at line 245 of file service.h.

◆ getTrueAirspeedKias()

double XSwiftBus::CService::getTrueAirspeedKias ( ) const
inline

Get aircraft TAS in meters per second.

Definition at line 155 of file service.h.

◆ getTrueHeadingDeg()

double XSwiftBus::CService::getTrueHeadingDeg ( ) const
inline

Get aircraft true heading in degrees.

Definition at line 164 of file service.h.

◆ getVersionNumber()

std::string XSwiftBus::CService::getVersionNumber ( )
static

Returns the xswiftbus version number.

Definition at line 129 of file service.cpp.

◆ getXPlaneInstallationPath()

std::string XSwiftBus::CService::getXPlaneInstallationPath ( )
static

Get root of X-Plane install path.

Definition at line 269 of file service.cpp.

◆ getXPlanePreferencesPath()

std::string XSwiftBus::CService::getXPlanePreferencesPath ( )
static

Get full path to X-Plane preferences file.

Definition at line 276 of file service.cpp.

◆ getXPlaneVersionMajor()

int XSwiftBus::CService::getXPlaneVersionMajor ( )
static

Get major version number.

Definition at line 247 of file service.cpp.

◆ getXPlaneVersionMinor()

int XSwiftBus::CService::getXPlaneVersionMinor ( )
static

Get minor version number.

Definition at line 258 of file service.cpp.

◆ InterfaceName()

const std::string & XSwiftBus::CService::InterfaceName ( )
inlinestatic

DBus interface name.

Definition at line 45 of file service.h.

◆ isCom1Receiving()

bool XSwiftBus::CService::isCom1Receiving ( ) const
inline

Is COM1 receiving?

Definition at line 215 of file service.h.

◆ isCom1Selected()

bool XSwiftBus::CService::isCom1Selected ( ) const
inline

COM Selection 6/7.

Definition at line 195 of file service.h.

◆ isCom1Transmitting()

bool XSwiftBus::CService::isCom1Transmitting ( ) const
inline

Is COM1 transmitting?

Definition at line 218 of file service.h.

◆ isCom2Receiving()

bool XSwiftBus::CService::isCom2Receiving ( ) const
inline

Is COM2 receiving?

Definition at line 236 of file service.h.

◆ isCom2Selected()

bool XSwiftBus::CService::isCom2Selected ( ) const
inline

COM Selection 6/7.

Definition at line 196 of file service.h.

◆ isCom2Transmitting()

bool XSwiftBus::CService::isCom2Transmitting ( ) const
inline

Is COM2 transmitting?

Definition at line 239 of file service.h.

◆ isPaused()

bool XSwiftBus::CService::isPaused ( ) const
inline

True if sim is paused.

Definition at line 107 of file service.h.

◆ isUsingRealTime()

bool XSwiftBus::CService::isUsingRealTime ( ) const
inline

True if sim time is tracking operating system time.

Definition at line 110 of file service.h.

◆ ObjectPath()

const std::string & XSwiftBus::CService::ObjectPath ( )
inlinestatic

DBus object path.

Definition at line 52 of file service.h.

◆ onAircraftModelChanged()

void XSwiftBus::CService::onAircraftModelChanged ( )

Called by XPluginReceiveMessage when the model changes.

Definition at line 112 of file service.cpp.

◆ onSceneryLoaded()

void XSwiftBus::CService::onSceneryLoaded ( )

Called by XPluginReceiveMessage when some scenery is loaded.

Definition at line 127 of file service.cpp.

◆ process()

int XSwiftBus::CService::process ( )

Perform generic processing.

Definition at line 1081 of file service.cpp.

◆ resetFrameTotals()

void XSwiftBus::CService::resetFrameTotals ( )

Reset the monitoring of total miles and minutes lost due to low frame rate.

Definition at line 144 of file service.cpp.

◆ setCom1ActiveKhz()

void XSwiftBus::CService::setCom1ActiveKhz ( int freq)
inline

Set the current COM1 active frequency in kHz.

Definition at line 269 of file service.h.

◆ setCom1StandbyKhz()

void XSwiftBus::CService::setCom1StandbyKhz ( int freq)
inline

Set the current COM1 standby frequency in kHz.

Definition at line 272 of file service.h.

◆ setCom2ActiveKhz()

void XSwiftBus::CService::setCom2ActiveKhz ( int freq)
inline

Set the current COM2 active frequency in kHz.

Definition at line 275 of file service.h.

◆ setCom2StandbyKhz()

void XSwiftBus::CService::setCom2StandbyKhz ( int freq)
inline

Set the current COM2 standby frequency in kHz.

Definition at line 278 of file service.h.

◆ setDisappearMessageWindow()

void XSwiftBus::CService::setDisappearMessageWindow ( bool enabled)
inline

Enable/disable message window disappearing again after x ms.

Definition at line 319 of file service.h.

◆ setDisappearMessageWindowTimeMs()

void XSwiftBus::CService::setDisappearMessageWindowTimeMs ( int durationMs)

Enable/disable message window disappearing after x ms.

Definition at line 283 of file service.cpp.

◆ setFlightNetworkConnected()

void XSwiftBus::CService::setFlightNetworkConnected ( bool connected)

Set the current connection state.

Definition at line 153 of file service.cpp.

◆ setOwnCallsign()

void XSwiftBus::CService::setOwnCallsign ( const std::string & callsign)

Set the current own callsign.

Definition at line 155 of file service.cpp.

◆ setPopupMessageWindow()

void XSwiftBus::CService::setPopupMessageWindow ( bool enabled)
inline

Enable/disable message window popping up for new messages.

Definition at line 316 of file service.h.

◆ setSettingsJson()

void XSwiftBus::CService::setSettingsJson ( const std::string & jsonString)

Set settings.

Definition at line 287 of file service.cpp.

◆ setTransponderCode()

void XSwiftBus::CService::setTransponderCode ( int code)
inline

Set the current transponder code in decimal.

Definition at line 281 of file service.h.

◆ setTransponderMode()

void XSwiftBus::CService::setTransponderMode ( int mode)
inline

Set the current transponder mode (depends on the aircraft, 0 and 1 usually mean standby, >1 active).

Definition at line 284 of file service.h.

◆ toggleMessageBoxVisibility()

void XSwiftBus::CService::toggleMessageBoxVisibility ( )
inline

Toggles the visibility of the message box.

Definition at line 313 of file service.h.


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