More DBus tests

This commit is contained in:
Klaus Basan
2013-08-06 13:56:15 +02:00
parent 62591a750f
commit e6e6dea4cd
6 changed files with 56 additions and 2 deletions

View File

@@ -101,4 +101,24 @@ void Testservice::receiveTrack(const BlackMisc::Aviation::CTrack &track)
qDebug() << "Pid:" << TestserviceTool::getPid() << "Received track:" << track;
}
/*
* Receive a length
*/
void Testservice::receiveLength(const BlackMisc::PhysicalQuantities::CLength &length)
{
qDebug() << "Pid:" << TestserviceTool::getPid() << "Received length:" << length;
}
/*
* Receive lengths
*/
void Testservice::receiveLengths(const QVariantList &lengths)
{
BlackMisc::PhysicalQuantities::CLength l;
foreach(QVariant lv, lengths) {
l = lv.value<BlackMisc::PhysicalQuantities::CLength>();
qDebug() << "Pid:" << TestserviceTool::getPid() << "Received in list:" << l;
}
}
} // namespace