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 
45 {
46  Q_OBJECT
47 
48 public:
55  static inline QLatin1String staticInterfaceName()
56  {
57  return QLatin1String("org.freedesktop.Telepathy.AccountManager");
58  }
59 
68  const QString& busName,
69  const QString& objectPath,
70  QObject* parent = 0
71  );
72 
82  const QDBusConnection& connection,
83  const QString& busName,
84  const QString& objectPath,
85  QObject* parent = 0
86  );
87 
95 
106  {
107  return internalRequestProperty(QLatin1String("Interfaces"));
108  }
109 
124  {
125  return internalRequestProperty(QLatin1String("ValidAccounts"));
126  }
127 
139  {
140  return internalRequestProperty(QLatin1String("InvalidAccounts"));
141  }
142 
196  {
197  return internalRequestProperty(QLatin1String("SupportedAccountProperties"));
198  }
199 
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::PendingVariant * requestPropertyInterfaces() const
Definition: cli-account-manager.h:105
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::PendingVariant * requestPropertySupportedAccountProperties() const
Definition: cli-account-manager.h:195
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
static QLatin1String staticInterfaceName()
Definition: cli-account-manager.h:55
Tp::PendingVariant * requestPropertyValidAccounts() const
Definition: cli-account-manager.h:123
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
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
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
Definition: cli-account-manager.h:44
Tp::PendingVariant * requestPropertyInvalidAccounts() const
Definition: cli-account-manager.h:138
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-account-manager.h:206


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.4