#define OFONOCALLBARRING_H
#include <QtCore/QObject>
-#include <QtDBus/QtDBus>
+#include <QDBusError>
#include "ofonomodeminterface.h"
#include "libofono-qt_global.h"
//! This class is used to access oFono call barring API
/*!
- * This class is used to access oFono call barring API.
* The API is documented in
* http://git.kernel.org/?p=network/ofono/ofono.git;a=blob_plain;f=doc/call-barring-api.txt
*/
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();
private slots:
void propertyChanged(const QString& property, const QVariant& value);
void setPropertyFailed(const QString& property);
- void setPropertyResp();
- void setPropertyErr(const QDBusError& error);
void changePasswordResp();
void changePasswordErr(QDBusError error);
void disableAllResp();
void disableAllOutgoingResp();
void disableAllOutgoingErr(QDBusError error);
void requestPropertyComplete(bool success, const QString& property, const QVariant& value);
-
-private:
- void setProperty(const QString& name, const QVariant& property,
- const QString& password);
-
- QString m_pendingProperty;
};
#endif /* !OFONOCALLBARRING_H */