mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
refs #879, use test data in samples/unit tests
This commit is contained in:
committed by
Mathew Sutcliffe
parent
4b506f20ab
commit
e73c8c4f36
@@ -167,25 +167,12 @@ namespace BlackMisc
|
||||
if (m_verbose) out() << "Pid: " << CTestService::getPid() << " Received length: " << length << endl;
|
||||
}
|
||||
|
||||
void CTestService::receiveLengthsQvl(const QVariantList &lengthsVariantList) const
|
||||
void CTestService::receiveVariantList(const CVariantList &variantList) const
|
||||
{
|
||||
if (m_verbose) out() << "Pid: " << CTestService::getPid() << " " << lengthsVariantList.size() << endl;
|
||||
foreach (QVariant lv, lengthsVariantList)
|
||||
if (m_verbose) out() << "Pid: " << CTestService::getPid() << " " << variantList.size() << endl;
|
||||
for (CVariant lv : variantList)
|
||||
{
|
||||
BlackMisc::PhysicalQuantities::CLength l;
|
||||
lv.value<QDBusArgument>() >> l;
|
||||
if (m_verbose) out() << " Received length in list: " << l << endl;
|
||||
}
|
||||
}
|
||||
|
||||
void CTestService::receiveLengthsQl(const QList<QVariant> &lengthsList) const
|
||||
{
|
||||
if (m_verbose) out() << "Pid: " << CTestService::getPid() << " Received " << lengthsList.size() << endl;
|
||||
foreach (QVariant lv, lengthsList)
|
||||
{
|
||||
BlackMisc::PhysicalQuantities::CLength l;
|
||||
lv.value<QDBusArgument>() >> l;
|
||||
if (m_verbose) out() << " Received length in list: " << l << endl;
|
||||
if (m_verbose) out() << " Received variant: " << lv.toQString() << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user