1 #include <QtTest/QtTest>
2 #include <QtCore/QObject>
4 #include <ofonophonebook.h>
8 class TestOfonoPhonebook : public QObject
13 void validityChanged(bool validity)
15 qDebug() << "ValidityChanged" << validity;
18 void importComplete(bool success, QString entries)
20 qDebug() << "importComplete" << success << entries;
25 // m = new OfonoPhonebook("/isimodem0", this);
26 m = new OfonoPhonebook(QString(), this);
27 connect(m, SIGNAL(validityChanged(bool)), this, SLOT(validityChanged(bool)));
28 connect(m, SIGNAL(importComplete(bool, QString)),
29 this, SLOT(importComplete(bool, QString)));
32 void testOfonoPhonebook()
34 qDebug() << "validity" << m->isValid();
40 void cleanupTestCase()
50 QTEST_MAIN(TestOfonoPhonebook)
51 #include "test_ofonophonebook.moc"