mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Remarks: Changes looking like an added file result from the shift of namespace voice -> audio
35 lines
1.1 KiB
C++
35 lines
1.1 KiB
C++
#include "aviobase.h"
|
|
|
|
namespace BlackMisc
|
|
{
|
|
namespace Aviation
|
|
{
|
|
bool CAvionicsBase::operator ==(const CAvionicsBase &other) const
|
|
{
|
|
if (this == &other) return true;
|
|
return TupleConverter<CAvionicsBase>::toTuple(*this) == TupleConverter<CAvionicsBase>::toTuple(other);
|
|
}
|
|
|
|
int CAvionicsBase::compareImpl(const CValueObject &otherBase) const
|
|
{
|
|
const auto &other = static_cast<const CAvionicsBase &>(otherBase);
|
|
return compare(TupleConverter<CAvionicsBase>::toTuple(*this), TupleConverter<CAvionicsBase>::toTuple(other));
|
|
}
|
|
|
|
void CAvionicsBase::marshallToDbus(QDBusArgument &argument) const
|
|
{
|
|
argument << TupleConverter<CAvionicsBase>::toTuple(*this);
|
|
}
|
|
|
|
void CAvionicsBase::unmarshallFromDbus(const QDBusArgument &argument)
|
|
{
|
|
argument >> TupleConverter<CAvionicsBase>::toTuple(*this);
|
|
}
|
|
|
|
uint CAvionicsBase::getValueHash() const
|
|
{
|
|
return qHash(TupleConverter<CAvionicsBase>::toTuple(*this));
|
|
}
|
|
}
|
|
}
|