mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
DBus: track, heading, transponder. Added I18N for track/heading, added further I18N keys. Of course not all I18N strings are translated yet.
This commit is contained in:
@@ -99,5 +99,36 @@ QString CTransponder::getTransponderCodeFormatted() const
|
||||
return f.right(4);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Stream to DBus <<
|
||||
* \param argument
|
||||
*/
|
||||
void CTransponder::marshallToDbus(QDBusArgument &argument) const {
|
||||
CAvionicsBase::marshallToDbus(argument);
|
||||
argument << this->m_transponderCode;
|
||||
argument << static_cast<qint32>(this->m_transponderMode);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Stream from DBus >>
|
||||
* \param argument
|
||||
*/
|
||||
void CTransponder::unmarshallFromDbus(const QDBusArgument &argument) {
|
||||
CAvionicsBase::unmarshallFromDbus(argument);
|
||||
qint32 tm;
|
||||
argument >> this->m_transponderCode;
|
||||
argument >> tm;
|
||||
this->m_transponderMode = static_cast<TransponderMode>(tm);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Register metadata of unit and quantity
|
||||
*/
|
||||
void CTransponder::registerMetadata()
|
||||
{
|
||||
qRegisterMetaType<CTransponder>(typeid(CTransponder).name());
|
||||
qDBusRegisterMetaType<CTransponder>();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user