Home · All Classes · All Namespaces · Modules · Functions · Files
cli-account.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 AccountInterface : public Tp::AbstractInterface
45 {
46  Q_OBJECT
47 
48 public:
55  static inline QLatin1String staticInterfaceName()
56  {
57  return QLatin1String("org.freedesktop.Telepathy.Account");
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("DisplayName"));
126  }
127 
142  {
143  return internalSetProperty(QLatin1String("DisplayName"), QVariant::fromValue(newValue));
144  }
145 
159  {
160  return internalRequestProperty(QLatin1String("Icon"));
161  }
162 
175  inline Tp::PendingOperation *setPropertyIcon(QString newValue)
176  {
177  return internalSetProperty(QLatin1String("Icon"), QVariant::fromValue(newValue));
178  }
179 
200  {
201  return internalRequestProperty(QLatin1String("Valid"));
202  }
203 
243  {
244  return internalRequestProperty(QLatin1String("Enabled"));
245  }
246 
286  {
287  return internalSetProperty(QLatin1String("Enabled"), QVariant::fromValue(newValue));
288  }
289 
308  {
309  return internalRequestProperty(QLatin1String("Nickname"));
310  }
311 
329  inline Tp::PendingOperation *setPropertyNickname(QString newValue)
330  {
331  return internalSetProperty(QLatin1String("Nickname"), QVariant::fromValue(newValue));
332  }
333 
382  {
383  return internalRequestProperty(QLatin1String("Service"));
384  }
385 
433  inline Tp::PendingOperation *setPropertyService(QString newValue)
434  {
435  return internalSetProperty(QLatin1String("Service"), QVariant::fromValue(newValue));
436  }
437 
458  {
459  return internalRequestProperty(QLatin1String("Parameters"));
460  }
461 
494  {
495  return internalRequestProperty(QLatin1String("AutomaticPresence"));
496  }
497 
530  {
531  return internalSetProperty(QLatin1String("AutomaticPresence"), QVariant::fromValue(newValue));
532  }
533 
550  {
551  return internalRequestProperty(QLatin1String("ConnectAutomatically"));
552  }
553 
570  {
571  return internalSetProperty(QLatin1String("ConnectAutomatically"), QVariant::fromValue(newValue));
572  }
573 
596  {
597  return internalRequestProperty(QLatin1String("Connection"));
598  }
599 
618  {
619  return internalRequestProperty(QLatin1String("ConnectionStatus"));
620  }
621 
635  {
636  return internalRequestProperty(QLatin1String("ConnectionStatusReason"));
637  }
638 
670  {
671  return internalRequestProperty(QLatin1String("ConnectionError"));
672  }
673 
699  {
700  return internalRequestProperty(QLatin1String("ConnectionErrorDetails"));
701  }
702 
718  {
719  return internalRequestProperty(QLatin1String("CurrentPresence"));
720  }
721 
750  {
751  return internalRequestProperty(QLatin1String("RequestedPresence"));
752  }
753 
782  {
783  return internalSetProperty(QLatin1String("RequestedPresence"), QVariant::fromValue(newValue));
784  }
785 
828  {
829  return internalRequestProperty(QLatin1String("ChangingPresence"));
830  }
831 
870  {
871  return internalRequestProperty(QLatin1String("NormalizedName"));
872  }
873 
889  {
890  return internalRequestProperty(QLatin1String("HasBeenOnline"));
891  }
892 
926  {
927  return internalRequestProperty(QLatin1String("Supersedes"));
928  }
929 
963  {
964  return internalSetProperty(QLatin1String("Supersedes"), QVariant::fromValue(newValue));
965  }
966 
974  {
975  return internalRequestAllProperties();
976  }
977 
978 public Q_SLOTS:
989  inline QDBusPendingReply<> Remove(int timeout = -1)
990  {
991  if (!invalidationReason().isEmpty()) {
992  return QDBusPendingReply<>(QDBusMessage::createError(
993  invalidationReason(),
994  invalidationMessage()
995  ));
996  }
997 
998  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
999  this->staticInterfaceName(), QLatin1String("Remove"));
1000  return this->connection().asyncCall(callMessage, timeout);
1001  }
1002 
1073  inline QDBusPendingReply<QStringList> UpdateParameters(const QVariantMap& set, const QStringList& unset, int timeout = -1)
1074  {
1075  if (!invalidationReason().isEmpty()) {
1076  return QDBusPendingReply<QStringList>(QDBusMessage::createError(
1077  invalidationReason(),
1078  invalidationMessage()
1079  ));
1080  }
1081 
1082  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
1083  this->staticInterfaceName(), QLatin1String("UpdateParameters"));
1084  callMessage << QVariant::fromValue(set) << QVariant::fromValue(unset);
1085  return this->connection().asyncCall(callMessage, timeout);
1086  }
1087 
1129  inline QDBusPendingReply<> Reconnect(int timeout = -1)
1130  {
1131  if (!invalidationReason().isEmpty()) {
1132  return QDBusPendingReply<>(QDBusMessage::createError(
1133  invalidationReason(),
1134  invalidationMessage()
1135  ));
1136  }
1137 
1138  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
1139  this->staticInterfaceName(), QLatin1String("Reconnect"));
1140  return this->connection().asyncCall(callMessage, timeout);
1141  }
1142 
1143 Q_SIGNALS:
1153  void Removed();
1154 
1169  void AccountPropertyChanged(const QVariantMap& properties);
1170 
1171 protected:
1172  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
1173 };
1174 
1183 {
1184  Q_OBJECT
1185 
1186 public:
1193  static inline QLatin1String staticInterfaceName()
1194  {
1195  return QLatin1String("org.freedesktop.Telepathy.Account.Interface.Addressing");
1196  }
1197 
1206  const QString& busName,
1207  const QString& objectPath,
1208  QObject* parent = 0
1209  );
1210 
1220  const QDBusConnection& connection,
1221  const QString& busName,
1222  const QString& objectPath,
1223  QObject* parent = 0
1224  );
1225 
1233 
1242 
1250  AccountInterfaceAddressingInterface(const Tp::Client::AccountInterface& mainInterface, QObject* parent);
1251 
1273  {
1274  return internalRequestProperty(QLatin1String("URISchemes"));
1275  }
1276 
1284  {
1285  return internalRequestAllProperties();
1286  }
1287 
1288 public Q_SLOTS:
1309  inline QDBusPendingReply<> SetURISchemeAssociation(const QString& URIScheme, bool association, int timeout = -1)
1310  {
1311  if (!invalidationReason().isEmpty()) {
1312  return QDBusPendingReply<>(QDBusMessage::createError(
1313  invalidationReason(),
1314  invalidationMessage()
1315  ));
1316  }
1317 
1318  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
1319  this->staticInterfaceName(), QLatin1String("SetURISchemeAssociation"));
1320  callMessage << QVariant::fromValue(URIScheme) << QVariant::fromValue(association);
1321  return this->connection().asyncCall(callMessage, timeout);
1322  }
1323 
1324 protected:
1325  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
1326 };
1327 
1336 {
1337  Q_OBJECT
1338 
1339 public:
1346  static inline QLatin1String staticInterfaceName()
1347  {
1348  return QLatin1String("org.freedesktop.Telepathy.Account.Interface.Avatar");
1349  }
1350 
1359  const QString& busName,
1360  const QString& objectPath,
1361  QObject* parent = 0
1362  );
1363 
1373  const QDBusConnection& connection,
1374  const QString& busName,
1375  const QString& objectPath,
1376  QObject* parent = 0
1377  );
1378 
1386 
1394  explicit AccountInterfaceAvatarInterface(const Tp::Client::AccountInterface& mainInterface);
1395 
1403  AccountInterfaceAvatarInterface(const Tp::Client::AccountInterface& mainInterface, QObject* parent);
1404 
1419  {
1420  return internalRequestProperty(QLatin1String("Avatar"));
1421  }
1422 
1437  {
1438  return internalSetProperty(QLatin1String("Avatar"), QVariant::fromValue(newValue));
1439  }
1440 
1448  {
1449  return internalRequestAllProperties();
1450  }
1451 
1452 Q_SIGNALS:
1461  void AvatarChanged();
1462 
1463 protected:
1464  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
1465 };
1466 
1475 {
1476  Q_OBJECT
1477 
1478 public:
1485  static inline QLatin1String staticInterfaceName()
1486  {
1487  return QLatin1String("org.freedesktop.Telepathy.Account.Interface.Storage");
1488  }
1489 
1498  const QString& busName,
1499  const QString& objectPath,
1500  QObject* parent = 0
1501  );
1502 
1512  const QDBusConnection& connection,
1513  const QString& busName,
1514  const QString& objectPath,
1515  QObject* parent = 0
1516  );
1517 
1525 
1533  explicit AccountInterfaceStorageInterface(const Tp::Client::AccountInterface& mainInterface);
1534 
1542  AccountInterfaceStorageInterface(const Tp::Client::AccountInterface& mainInterface, QObject* parent);
1543 
1563  {
1564  return internalRequestProperty(QLatin1String("StorageProvider"));
1565  }
1566 
1595  {
1596  return internalRequestProperty(QLatin1String("StorageIdentifier"));
1597  }
1598 
1632  {
1633  return internalRequestProperty(QLatin1String("StorageSpecificInformation"));
1634  }
1635 
1653  {
1654  return internalRequestProperty(QLatin1String("StorageRestrictions"));
1655  }
1656 
1664  {
1665  return internalRequestAllProperties();
1666  }
1667 
1668 protected:
1669  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
1670 };
1671 }
1672 }
1673 Q_DECLARE_METATYPE(Tp::Client::AccountInterface*)
Tp::PendingVariant * requestPropertyURISchemes() const
Definition: cli-account.h:1272
Tp::PendingVariant * requestPropertyStorageIdentifier() const
Definition: cli-account.h:1594
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-account.h:105
Tp::PendingVariant * requestPropertyAutomaticPresence() const
Definition: cli-account.h:493
Tp::PendingVariant * requestPropertyStorageProvider() const
Definition: cli-account.h:1562
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-account.h:1663
QDBusPendingReply< QStringList > UpdateParameters(const QVariantMap &set, const QStringList &unset, int timeout=-1)
Definition: cli-account.h:1073
Tp::PendingVariant * requestPropertyEnabled() const
Definition: cli-account.h:242
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-account.h:1283
static QLatin1String staticInterfaceName()
Definition: cli-account.h:1485
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-account.h:973
Tp::PendingVariant * requestPropertyConnectionStatus() const
Definition: cli-account.h:617
Definition: build/TelepathyQt/_gen/types.h:249
Tp::PendingVariant * requestPropertyRequestedPresence() const
Definition: cli-account.h:749
Tp::PendingOperation * setPropertyNickname(QString newValue)
Definition: cli-account.h:329
QDBusPendingReply Remove(int timeout=-1)
Definition: cli-account.h:989
Definition: build/TelepathyQt/_gen/types.h:84
Tp::PendingVariant * requestPropertyConnectAutomatically() const
Definition: cli-account.h:549
Tp::PendingVariant * requestPropertyStorageRestrictions() const
Definition: cli-account.h:1652
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::PendingVariant * requestPropertySupersedes() const
Definition: cli-account.h:925
Tp::PendingVariant * requestPropertyStorageSpecificInformation() const
Definition: cli-account.h:1631
Tp::PendingVariant * requestPropertyChangingPresence() const
Definition: cli-account.h:827
Tp::PendingOperation * setPropertyDisplayName(QString newValue)
Definition: cli-account.h:141
static QLatin1String staticInterfaceName()
Definition: cli-account.h:55
QDBusPendingReply Reconnect(int timeout=-1)
Definition: cli-account.h:1129
Tp::PendingVariant * requestPropertyService() const
Definition: cli-account.h:381
Tp::PendingVariant * requestPropertyConnectionError() const
Definition: cli-account.h:669
static QLatin1String staticInterfaceName()
Definition: cli-account.h:1346
QDBusPendingReply SetURISchemeAssociation(const QString &URIScheme, bool association, int timeout=-1)
Definition: cli-account.h:1309
Tp::PendingVariant * requestPropertyDisplayName() const
Definition: cli-account.h:123
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Tp::PendingVariant * requestPropertyConnectionStatusReason() const
Definition: cli-account.h:634
Definition: cli-account.h:44
Tp::PendingOperation * setPropertySupersedes(Tp::ObjectPathList newValue)
Definition: cli-account.h:962
Tp::PendingOperation * setPropertyIcon(QString newValue)
Definition: cli-account.h:175
Definition: cli-account.h:1474
Tp::PendingVariant * requestPropertyCurrentPresence() const
Definition: cli-account.h:717
Tp::PendingOperation * setPropertyRequestedPresence(Tp::SimplePresence newValue)
Definition: cli-account.h:781
Tp::PendingVariant * requestPropertyConnectionErrorDetails() const
Definition: cli-account.h:698
Definition: abstract-adaptor.cpp:31
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-account.h:1447
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::PendingOperation * setPropertyConnectAutomatically(bool newValue)
Definition: cli-account.h:569
Definition: build/TelepathyQt/_gen/types.h:2742
Tp::PendingVariant * requestPropertyNickname() const
Definition: cli-account.h:307
Tp::PendingOperation * setPropertyAutomaticPresence(Tp::SimplePresence newValue)
Definition: cli-account.h:529
Tp::PendingVariant * requestPropertyValid() const
Definition: cli-account.h:199
Tp::PendingVariant * requestPropertyAvatar() const
Definition: cli-account.h:1418
static QLatin1String staticInterfaceName()
Definition: cli-account.h:1193
Tp::PendingOperation * setPropertyEnabled(bool newValue)
Definition: cli-account.h:285
Tp::PendingOperation * setPropertyAvatar(Tp::Avatar newValue)
Definition: cli-account.h:1436
Tp::PendingVariant * requestPropertyHasBeenOnline() const
Definition: cli-account.h:888
Definition: cli-account.h:1335
Tp::PendingVariant * requestPropertyNormalizedName() const
Definition: cli-account.h:869
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::PendingOperation * setPropertyService(QString newValue)
Definition: cli-account.h:433
Tp::PendingVariant * requestPropertyParameters() const
Definition: cli-account.h:457
Tp::PendingVariant * requestPropertyIcon() const
Definition: cli-account.h:158
Tp::PendingVariant * requestPropertyConnection() const
Definition: cli-account.h:595


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