mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
refs #268 added XBus::CService methods to get and set radios and transponder
This commit is contained in:
@@ -122,5 +122,70 @@ namespace BlackSimPlugin
|
||||
return m_dbusInterface->callDBusRet<double>(QLatin1String("getTrueHeading"));
|
||||
}
|
||||
|
||||
int CXBusServiceProxy::getCom1Active() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<int>(QLatin1String("getCom1Active"));
|
||||
}
|
||||
|
||||
int CXBusServiceProxy::getCom1Standby() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<int>(QLatin1String("getCom1Standby"));
|
||||
}
|
||||
|
||||
int CXBusServiceProxy::getCom2Active() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<int>(QLatin1String("getCom2Active"));
|
||||
}
|
||||
|
||||
int CXBusServiceProxy::getCom2Standby() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<int>(QLatin1String("getCom2Standby"));
|
||||
}
|
||||
|
||||
int CXBusServiceProxy::getTransponderCode() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<int>(QLatin1String("getTransponderCode"));
|
||||
}
|
||||
|
||||
int CXBusServiceProxy::getTransponderMode() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<int>(QLatin1String("getTransponderMode"));
|
||||
}
|
||||
|
||||
bool CXBusServiceProxy::getTransponderIdent() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<bool>(QLatin1String("getTransponderIdent"));
|
||||
}
|
||||
|
||||
void CXBusServiceProxy::setCom1Active(int freq)
|
||||
{
|
||||
m_dbusInterface->callDBus(QLatin1String("setCom1Active"), freq);
|
||||
}
|
||||
|
||||
void CXBusServiceProxy::setCom1Standby(int freq)
|
||||
{
|
||||
m_dbusInterface->callDBus(QLatin1String("setCom1Standby"), freq);
|
||||
}
|
||||
|
||||
void CXBusServiceProxy::setCom2Active(int freq)
|
||||
{
|
||||
m_dbusInterface->callDBus(QLatin1String("setCom2Active"), freq);
|
||||
}
|
||||
|
||||
void CXBusServiceProxy::setCom2Standby(int freq)
|
||||
{
|
||||
m_dbusInterface->callDBus(QLatin1String("setCom2Standby"), freq);
|
||||
}
|
||||
|
||||
void CXBusServiceProxy::setTransponderCode(int code)
|
||||
{
|
||||
m_dbusInterface->callDBus(QLatin1String("setTransponderCode"), code);
|
||||
}
|
||||
|
||||
void CXBusServiceProxy::setTransponderMode(int mode)
|
||||
{
|
||||
m_dbusInterface->callDBus(QLatin1String("setTransponderMode"), mode);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -111,6 +111,45 @@ namespace BlackSimPlugin
|
||||
|
||||
//! \copydoc XBus::CService::getTrueHeading
|
||||
double getTrueHeading() const;
|
||||
|
||||
//! \copydoc XBus::CService::getCom1Active
|
||||
int getCom1Active() const;
|
||||
|
||||
//! \copydoc XBus::CService::getCom1Standby
|
||||
int getCom1Standby() const;
|
||||
|
||||
//! \copydoc XBus::CService::getCom2Active
|
||||
int getCom2Active() const;
|
||||
|
||||
//! \copydoc XBus::CService::getCom2Standby
|
||||
int getCom2Standby() const;
|
||||
|
||||
//! \copydoc XBus::CService::getTransponderCode
|
||||
int getTransponderCode() const;
|
||||
|
||||
//! \copydoc XBus::CService::getTransponderMode
|
||||
int getTransponderMode() const;
|
||||
|
||||
//! \copydoc XBus::CService::getTransponderIdent
|
||||
bool getTransponderIdent() const;
|
||||
|
||||
//! \copydoc XBus::CService::setCom1Active
|
||||
void setCom1Active(int freq);
|
||||
|
||||
//! \copydoc XBus::CService::setCom1Standby
|
||||
void setCom1Standby(int freq);
|
||||
|
||||
//! \copydoc XBus::CService::setCom2Active
|
||||
void setCom2Active(int freq);
|
||||
|
||||
//! \copydoc XBus::CService::setCom2Standby
|
||||
void setCom2Standby(int freq);
|
||||
|
||||
//! \copydoc XBus::CService::setTransponderCode
|
||||
void setTransponderCode(int code);
|
||||
|
||||
//! \copydoc XBus::CService::setTransponderMode
|
||||
void setTransponderMode(int mode);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user