}
-void OfonoCallBarring::requestChangePassword(const QString &old_password,
+void OfonoCallBarring::changePassword(const QString &old_password,
const QString &new_password)
{
QDBusMessage request;
SLOT(changePasswordErr(const QDBusError&)));
}
-void OfonoCallBarring::requestDisableAll(const QString &password)
+void OfonoCallBarring::disableAll(const QString &password)
{
QDBusMessage request;
SLOT(disableAllErr(const QDBusError&)));
}
-void OfonoCallBarring::requestDisableAllIncoming(const QString &password)
+void OfonoCallBarring::disableAllIncoming(const QString &password)
{
QDBusMessage request;
SLOT(disableAllIncomingErr(const QDBusError&)));
}
-void OfonoCallBarring::requestDisableAllOutgoing(const QString &password)
+void OfonoCallBarring::disableAllOutgoing(const QString &password)
{
QDBusMessage request;
void setVoiceOutgoing(const QString &barrings, const QString &password);
/* Methods */
- void requestChangePassword(const QString &old_password, const QString &new_password);
- void requestDisableAll(const QString &password);
- void requestDisableAllIncoming(const QString &password);
- void requestDisableAllOutgoing(const QString &password);
+ void changePassword(const QString &old_password, const QString &new_password);
+ void disableAll(const QString &password);
+ void disableAllIncoming(const QString &password);
+ void disableAllOutgoing(const QString &password);
signals:
void incomingBarringInEffect();
}
-void OfonoCallForwarding::requestDisableAll(const QString &type)
+void OfonoCallForwarding::disableAll(const QString &type)
{
QDBusMessage request;
void setVoiceNotReachable(const QString &property);
/* Methods */
- void requestDisableAll(const QString &type); /* "all" | "conditional" */
+ void disableAll(const QString &type); /* "all" | "conditional" */
signals:
void voiceUnconditionalComplete(bool success, const QString &property);
{
}
-void OfonoNetworkOperator::requestRegister()
+void OfonoNetworkOperator::registerOp()
{
QDBusMessage request;
*/
QString errorMessage() const;
- void requestRegister();
+ void registerOp();
QString name() const;
QString status() const;
{
}
-void OfonoNetworkRegistration::requestRegister()
+void OfonoNetworkRegistration::registerOp()
{
QDBusMessage request;
REGISTER_TIMEOUT);
}
-void OfonoNetworkRegistration::requestDeregister()
+void OfonoNetworkRegistration::deregister()
{
QDBusMessage request;
REGISTER_TIMEOUT);
}
-void OfonoNetworkRegistration::requestScan()
+void OfonoNetworkRegistration::scan()
{
QDBusMessage request;
REGISTER_TIMEOUT);
}
-void OfonoNetworkRegistration::requestGetOperators()
+void OfonoNetworkRegistration::getOperators()
{
QDBusMessage request;
uint strength() const;
QString baseStation() const;
- void requestRegister();
- void requestDeregister();
- void requestGetOperators();
- void requestScan();
+ void registerOp();
+ void deregister();
+ void getOperators();
+ void scan();
signals:
void modeChanged(const QString &mode);
{
}
-void OfonoPhonebook::requestImport()
+void OfonoPhonebook::import()
{
QDBusMessage request;
~OfonoPhonebook();
- void requestImport();
+ void import();
signals:
void importComplete(bool success, const QString &entries);
{
}
-void OfonoSimManager::requestChangePin(const QString &pintype, const QString &oldpin, const QString &newpin)
+void OfonoSimManager::changePin(const QString &pintype, const QString &oldpin, const QString &newpin)
{
QDBusMessage request;
SLOT(changePinErr(const QDBusError&)));
}
-void OfonoSimManager::requestEnterPin(const QString &pintype, const QString &pin)
+void OfonoSimManager::enterPin(const QString &pintype, const QString &pin)
{
QDBusMessage request;
SLOT(enterPinErr(const QDBusError&)));
}
-void OfonoSimManager::requestResetPin(const QString &pintype, const QString &puk, const QString &newpin)
+void OfonoSimManager::resetPin(const QString &pintype, const QString &puk, const QString &newpin)
{
QDBusMessage request;
SLOT(resetPinErr(const QDBusError&)));
}
-void OfonoSimManager::requestLockPin(const QString &pintype, const QString &pin)
+void OfonoSimManager::lockPin(const QString &pintype, const QString &pin)
{
QDBusMessage request;
SLOT(lockPinErr(const QDBusError&)));
}
-void OfonoSimManager::requestUnlockPin(const QString &pintype, const QString &pin)
+void OfonoSimManager::unlockPin(const QString &pintype, const QString &pin)
{
QDBusMessage request;
QString cardIdentifier() const;
QStringList preferredLanguages() const;
- void requestChangePin(const QString &pintype, const QString &oldpin, const QString &newpin);
- void requestEnterPin(const QString &pintype, const QString &pin);
- void requestResetPin(const QString &pintype, const QString &puk, const QString &newpin);
- void requestLockPin(const QString &pintype, const QString &pin);
- void requestUnlockPin(const QString &pintype, const QString &pin);
+ void changePin(const QString &pintype, const QString &oldpin, const QString &newpin);
+ void enterPin(const QString &pintype, const QString &pin);
+ void resetPin(const QString &pintype, const QString &puk, const QString &newpin);
+ void lockPin(const QString &pintype, const QString &pin);
+ void unlockPin(const QString &pintype, const QString &pin);
void setSubscriberNumbers(const QStringList &numbers);
{
}
-void OfonoSupplementaryServices::requestInitiate(const QString &command)
+void OfonoSupplementaryServices::initiate(const QString &command)
{
QDBusMessage request;
REQUEST_TIMEOUT);
}
-void OfonoSupplementaryServices::requestRespond(const QString &reply)
+void OfonoSupplementaryServices::respond(const QString &reply)
{
QDBusMessage request;
REQUEST_TIMEOUT);
}
-void OfonoSupplementaryServices::requestCancel()
+void OfonoSupplementaryServices::cancel()
{
QDBusMessage request;
/* Properties */
QString state() const;
- void requestInitiate(const QString &command);
- void requestRespond(const QString &reply);
- void requestCancel();
+ void initiate(const QString &command);
+ void respond(const QString &reply);
+ void cancel();
signals:
void notificationReceived(const QString &message);
connect(m, SIGNAL(disableAllComplete(bool)),
this, SLOT(disableAllComplete(bool)));
- m->requestDisableAll("3579");
+ m->disableAll("3579");
QTest::qWait(1000);
m->requestVoiceIncoming();
QTest::qWait(5000);
connect(m, SIGNAL(changePasswordComplete(bool)),
this, SLOT(changePasswordComplete(bool)));
- m->requestChangePassword("3579", "1234");
+ m->changePassword("3579", "1234");
QTest::qWait(1000);
- m->requestChangePassword("1234", "3579");
+ m->changePassword("1234", "3579");
QTest::qWait(2000);
}
connect(m, SIGNAL(disableAllComplete(bool)),
this, SLOT(disableAllComplete(bool)));
- m->requestDisableAll("all");
+ m->disableAll("all");
QTest::qWait(120000);
}
qDebug() << "mobileNetworkCode():" << m->mnc();
qDebug() << "technologies():" << m->technologies();
qDebug() << "additionalInfo():" << m->additionalInfo();
- m->requestRegister();
+ m->registerOp();
QTest::qWait(120000);
}
qDebug() << "strength():" << m->strength();
qDebug() << "baseStation():" << m->baseStation();
- m->requestGetOperators();
+ m->getOperators();
QTest::qWait(5000);
- m->requestScan();
+ m->scan();
QTest::qWait(10000);
- m->requestDeregister();
+ m->deregister();
QTest::qWait(10000);
- m->requestRegister();
+ m->registerOp();
QTest::qWait(120000);
}
void testOfonoPhonebook()
{
qDebug() << "validity" << m->isValid();
- m->requestImport();
+ m->import();
QTest::qWait(120000);
}
if (m->pinRequired() == "pin") {
connect(m, SIGNAL(enterPinComplete(bool)),
this, SLOT(enterPinComplete(bool)));
- m->requestEnterPin("pin", "2468");
+ m->enterPin("pin", "2468");
QTest::qWait(1000);
} else if (m->pinRequired() == "puk") {
connect(m, SIGNAL(resetPinComplete(bool)),
this, SLOT(resetPinComplete(bool)));
- m->requestResetPin("puk", "13243546", "2468");
+ m->resetPin("puk", "13243546", "2468");
}
if (m->lockedPins().contains("pin")) {
- m->requestUnlockPin("pin", "2468");
+ m->unlockPin("pin", "2468");
QTest::qWait(1000);
- m->requestLockPin("pin", "2468");
+ m->lockPin("pin", "2468");
QTest::qWait(1000);
- m->requestChangePin("pin", "2468", "1234");
+ m->changePin("pin", "2468", "1234");
QTest::qWait(1000);
- m->requestChangePin("pin", "1234", "2468");
+ m->changePin("pin", "1234", "2468");
} else {
- m->requestLockPin("pin", "2468");
+ m->lockPin("pin", "2468");
QTest::qWait(1000);
- m->requestChangePin("pin", "2468", "1234");
+ m->changePin("pin", "2468", "1234");
QTest::qWait(1000);
- m->requestChangePin("pin", "1234", "2468");
+ m->changePin("pin", "1234", "2468");
QTest::qWait(1000);
- m->requestUnlockPin("pin", "2468");
+ m->unlockPin("pin", "2468");
}
}
QTest::qWait(120000);
void testOfonoNetworkOperator()
{
qDebug() << "state():" << m->state();
- m->requestInitiate("*#002**11#");
+ m->initiate("*#002**11#");
QTest::qWait(120000);
}