refs #268 added XBus::CService methods to get and set radios and transponder

This commit is contained in:
Mathew Sutcliffe
2014-06-15 18:44:53 +01:00
parent 4ebb03bd0d
commit b21adbe498
3 changed files with 150 additions and 0 deletions

View File

@@ -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);
}
}
}

View File

@@ -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);
};
}