| Home · All Classes · All Namespaces · Modules · Functions · Files

cli-account-manager.h
1 /*
2 * This file contains D-Bus client proxy classes generated by qt-client-gen.py.
3 *
4 * This file can be distributed under the same terms as the specification from
5 * which it was generated.
6 */
7
8 #ifndef IN_TP_QT_HEADER
9 #error IN_TP_QT_HEADER
10 #endif
11
12 #include <TelepathyQt/Types>
13
14 #include <QtGlobal>
15
16 #include <QString>
17 #include <QObject>
18 #include <QVariant>
19
20 #include <QDBusPendingReply>
21
22 #include <TelepathyQt/AbstractInterface>
23 #include <TelepathyQt/DBusProxy>
24 #include <TelepathyQt/Global>
25
26 namespace Tp
27 {
28 class PendingVariant;
29 class PendingOperation;
30 }
31
32 namespace Tp
33 {
34 namespace Client
35 {
36
44 class TP_QT_EXPORT AccountManagerInterface : public Tp::AbstractInterface
45 {
46 Q_OBJECT
47
48 public:
55 static inline QLatin1String staticInterfaceName()
56 {
57 return QLatin1String("org.freedesktop.Telepathy.AccountManager");
58 }
59
67 AccountManagerInterface(
68 const QString& busName,
69 const QString& objectPath,
70 QObject* parent = 0
71 );
72
81 AccountManagerInterface(
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
85 QObject* parent = 0
86 );
87
94 AccountManagerInterface(Tp::DBusProxy *proxy);
95
105 inline Tp::PendingVariant *requestPropertyInterfaces() const
106 {
107 return internalRequestProperty(QLatin1String("Interfaces"));
108 }
109
123 inline Tp::PendingVariant *requestPropertyValidAccounts() const
124 {
125 return internalRequestProperty(QLatin1String("ValidAccounts"));
126 }
127
138 inline Tp::PendingVariant *requestPropertyInvalidAccounts() const
139 {
140 return internalRequestProperty(QLatin1String("InvalidAccounts"));
141 }
142
195 inline Tp::PendingVariant *requestPropertySupportedAccountProperties() const
196 {
197 return internalRequestProperty(QLatin1String("SupportedAccountProperties"));
198 }
199
206 Tp::PendingVariantMap *requestAllProperties() const
207 {
208 return internalRequestAllProperties();
209 }
210
211 public Q_SLOTS:
273 inline QDBusPendingReply<QDBusObjectPath> CreateAccount(const QString& connectionManager, const QString& protocol, const QString& displayName, const QVariantMap& parameters, const QVariantMap& properties, int timeout = -1)
274 {
275 if (!invalidationReason().isEmpty()) {
276 return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
277 invalidationReason(),
278 invalidationMessage()
279 ));
280 }
281
282 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
283 this->staticInterfaceName(), QLatin1String("CreateAccount"));
284 callMessage << QVariant::fromValue(connectionManager) << QVariant::fromValue(protocol) << QVariant::fromValue(displayName) << QVariant::fromValue(parameters) << QVariant::fromValue(properties);
285 return this->connection().asyncCall(callMessage, timeout);
286 }
287
288 Q_SIGNALS:
301 void AccountRemoved(const QDBusObjectPath& account);
302
319 void AccountValidityChanged(const QDBusObjectPath& account, bool valid);
320
321 protected:
322 virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
323 };
324 }
325 }
326 Q_DECLARE_METATYPE(Tp::Client::AccountManagerInterface*)
Tp::Client::AccountManagerInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-account-manager.h:206
Tp::DBusProxy
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::AbstractInterface
The AbstractInterface class is the base class for all client side D-Bus interfaces, allowing access to remote methods/properties/signals.
Definition: abstract-interface.h:42
Tp::Client::AccountManagerInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-account-manager.h:55
Tp::Client::AccountManagerInterface::CreateAccount
QDBusPendingReply< QDBusObjectPath > CreateAccount(const QString &connectionManager, const QString &protocol, const QString &displayName, const QVariantMap &parameters, const QVariantMap &properties, int timeout=-1)
Definition: cli-account-manager.h:273
Tp::Client::AccountManagerInterface
Definition: cli-account-manager.h:44
Tp::PendingVariant
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::Client::AccountManagerInterface::requestPropertyInterfaces
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-account-manager.h:105
Tp::Client::AccountManagerInterface::requestPropertyInvalidAccounts
Tp::PendingVariant * requestPropertyInvalidAccounts() const
Definition: cli-account-manager.h:138
Tp::PendingVariantMap
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Tp::Client::AccountManagerInterface::requestPropertyValidAccounts
Tp::PendingVariant * requestPropertyValidAccounts() const
Definition: cli-account-manager.h:123
Tp::Client::AccountManagerInterface::requestPropertySupportedAccountProperties
Tp::PendingVariant * requestPropertySupportedAccountProperties() const
Definition: cli-account-manager.h:195