24 #ifndef OFONOINTERFACE_H 25 #define OFONOINTERFACE_H 27 #include <QtCore/QObject> 29 #include <QDBusVariant> 31 #include "ofonopropertysetting.h" 32 #include "libofono-qt_global.h" 40 class OFONO_QT_EXPORT OfonoInterface :
public QObject
50 OfonoInterface(
const QString &path,
const QString &ifname, OfonoGetPropertySetting setting, QObject *parent=0);
59 QVariantMap properties()
const;
65 void requestProperty(
const QString &name);
72 void setProperty(
const QString &name,
const QVariant &property,
const QString& password=0);
75 void resetProperties();
78 QString path()
const {
return m_path;}
81 QString ifname()
const {
return m_ifname;}
88 QString errorName()
const {
return m_errorName;}
95 QString errorMessage()
const {
return m_errorMessage;}
104 void setPath(
const QString &path);
107 void setError(
const QString &errorName,
const QString &errorMessage);
115 void propertyChanged(
const QString &name,
const QVariant &property);
123 void requestPropertyComplete(
bool success,
const QString &name,
const QVariant &property);
129 void setPropertyFailed(
const QString &name);
132 void onPropertyChanged(QString property, QDBusVariant value);
133 void getPropertiesAsyncResp(QVariantMap properties);
134 void getPropertiesAsyncErr(
const QDBusError&);
135 void setPropertyResp();
136 void setPropertyErr(
const QDBusError& error);
139 QVariantMap getAllPropertiesSync();
143 QString m_errorMessage;
148 QVariantMap m_properties;
149 QString m_pendingProperty;
150 OfonoGetPropertySetting m_getpropsetting;