1 #include <QtTest/QtTest>
2 #include <QtCore/QObject>
4 #include <ofonointerface.h>
8 class TestOfonoInterface : public QObject
14 void onPropertyChanged(const QString& name, const QVariant& property)
16 qDebug() << name << property;
17 qDebug () << oi->properties();
22 oi = new OfonoInterface("/isimodem1", "org.ofono.Modem", OfonoInterface::GetAllOnStartup, this);
23 connect(oi, SIGNAL(propertyChanged(const QString&, const QVariant&)), this, SLOT(onPropertyChanged(const QString&, const QVariant&)));
26 void testOfonoInterface()
28 oi->setProperty("Online", qVariantFromValue(true));
30 // qDebug() << oi->properties();
34 void cleanupTestCase()
44 QTEST_MAIN(TestOfonoInterface)
45 #include "test_ofonointerface.moc"