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

@@ -135,6 +135,20 @@ int main(int argc, char *argv[])
testserviceInterface.receiveTrack(track);
qDebug() << "Send track via interface" << track;
CLength len(33, CLengthUnit::m());
testserviceInterface.receiveLength(len);
qDebug() << "Send length via interface" << len;
CAltitude alt(33, true, CLengthUnit::m());
testserviceInterface.receiveLength(alt);
qDebug() << "Send altitude via interface" << alt;
QVariantList lengths;
lengths << QVariant::fromValue(len);
lengths << QVariant::fromValue(alt);
testserviceInterface.receiveLengths(lengths);
qDebug() << "Send lengths via interface";
TestserviceTool::sleep(2500);
// Math