*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
*
- * Contact: Alexander Kanavin <alexander.kanavin@nokia.com>
+ * Contact: Alexander Kanavin <alex.kanavin@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
: OfonoModemInterface(modemSetting, modemPath, "org.ofono.SimManager", OfonoGetAllOnStartup, parent)
{
qRegisterMetaType<OfonoServiceNumbers>("OfonoServiceNumbers");
+ qRegisterMetaType<OfonoPinRetries>("OfonoPinRetries");
connect(m_if, SIGNAL(propertyChanged(const QString&, const QVariant&)),
this, SLOT(propertyChanged(const QString&, const QVariant&)));
connect(m_if, SIGNAL(setPropertyFailed(const QString&)),
return m_if->properties()["PreferredLanguages"].value<QStringList>();
}
+OfonoPinRetries OfonoSimManager::pinRetries() const
+{
+ OfonoPinRetries retries;
+ m_if->properties()["Retries"].value<QDBusArgument>() >> retries;
+ return retries;
+}
void OfonoSimManager::propertyChanged(const QString& property, const QVariant& value)
{
emit cardIdentifierChanged(value.value<QString>());
} else if (property == "PreferredLanguages") {
emit preferredLanguagesChanged(value.value<QStringList>());
+ } else if (property == "Retries") {
+ OfonoPinRetries retries;
+ value.value<QDBusArgument>() >> retries;
+ emit pinRetriesChanged(retries);
}
}