cli-account.h Source File

| 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
67 AccountInterface(
68 const QString& busName,
69 const QString& objectPath,
70 QObject* parent = 0
71 );
72
81 AccountInterface(
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
85 QObject* parent = 0
86 );
87
94 AccountInterface(Tp::DBusProxy *proxy);
95
105 inline Tp::PendingVariant *requestPropertyInterfaces() const
106 {
107 return internalRequestProperty(QLatin1String("Interfaces"));
108 }
109
123 inline Tp::PendingVariant *requestPropertyDisplayName() const
124 {
125 return internalRequestProperty(QLatin1String("DisplayName"));
126 }
127
141 inline Tp::PendingOperation *setPropertyDisplayName(QString newValue)
142 {
143 return internalSetProperty(QLatin1String("DisplayName"), QVariant::fromValue(newValue));
144 }
145
158 inline Tp::PendingVariant *requestPropertyIcon() const
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
199 inline Tp::PendingVariant *requestPropertyValid() const
200 {
201 return internalRequestProperty(QLatin1String("Valid"));
202 }
203
242 inline Tp::PendingVariant *requestPropertyEnabled() const
243 {
244 return internalRequestProperty(QLatin1String("Enabled"));
245 }
246
285 inline Tp::PendingOperation *setPropertyEnabled(bool newValue)
286 {
287 return internalSetProperty(QLatin1String("Enabled"), QVariant::fromValue(newValue));
288 }
289
307 inline Tp::PendingVariant *requestPropertyNickname() const
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
381 inline Tp::PendingVariant *requestPropertyService() const
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
457 inline Tp::PendingVariant *requestPropertyParameters() const
458 {
459 return internalRequestProperty(QLatin1String("Parameters"));
460 }
461
493 inline Tp::PendingVariant *requestPropertyAutomaticPresence() const
494 {
495 return internalRequestProperty(QLatin1String("AutomaticPresence"));
496 }
497
529 inline Tp::PendingOperation *setPropertyAutomaticPresence(Tp::SimplePresence newValue)
530 {
531 return internalSetProperty(QLatin1String("AutomaticPresence"), QVariant::fromValue(newValue));
532 }
533
549 inline Tp::PendingVariant *requestPropertyConnectAutomatically() const
550 {
551 return internalRequestProperty(QLatin1String("ConnectAutomatically"));
552 }
553
569 inline Tp::PendingOperation *setPropertyConnectAutomatically(bool newValue)
570 {
571 return internalSetProperty(QLatin1String("ConnectAutomatically"), QVariant::fromValue(newValue));
572 }
573
595 inline Tp::PendingVariant *requestPropertyConnection() const
596 {
597 return internalRequestProperty(QLatin1String("Connection"));
598 }
599
617 inline Tp::PendingVariant *requestPropertyConnectionStatus() const
618 {
619 return internalRequestProperty(QLatin1String("ConnectionStatus"));
620 }
621
634 inline Tp::PendingVariant *requestPropertyConnectionStatusReason() const
635 {
636 return internalRequestProperty(QLatin1String("ConnectionStatusReason"));
637 }
638
669 inline Tp::PendingVariant *requestPropertyConnectionError() const
670 {
671 return internalRequestProperty(QLatin1String("ConnectionError"));
672 }
673
698 inline Tp::PendingVariant *requestPropertyConnectionErrorDetails() const
699 {
700 return internalRequestProperty(QLatin1String("ConnectionErrorDetails"));
701 }
702
717 inline Tp::PendingVariant *requestPropertyCurrentPresence() const
718 {
719 return internalRequestProperty(QLatin1String("CurrentPresence"));
720 }
721
749 inline Tp::PendingVariant *requestPropertyRequestedPresence() const
750 {
751 return internalRequestProperty(QLatin1String("RequestedPresence"));
752 }
753
781 inline Tp::PendingOperation *setPropertyRequestedPresence(Tp::SimplePresence newValue)
782 {
783 return internalSetProperty(QLatin1String("RequestedPresence"), QVariant::fromValue(newValue));
784 }
785
827 inline Tp::PendingVariant *requestPropertyChangingPresence() const
828 {
829 return internalRequestProperty(QLatin1String("ChangingPresence"));
830 }
831
869 inline Tp::PendingVariant *requestPropertyNormalizedName() const
870 {
871 return internalRequestProperty(QLatin1String("NormalizedName"));
872 }
873
888 inline Tp::PendingVariant *requestPropertyHasBeenOnline() const
889 {
890 return internalRequestProperty(QLatin1String("HasBeenOnline"));
891 }
892
925 inline Tp::PendingVariant *requestPropertySupersedes() const
926 {
927 return internalRequestProperty(QLatin1String("Supersedes"));
928 }
929
962 inline Tp::PendingOperation *setPropertySupersedes(Tp::ObjectPathList newValue)
963 {
964 return internalSetProperty(QLatin1String("Supersedes"), QVariant::fromValue(newValue));
965 }
966
973 Tp::PendingVariantMap *requestAllProperties() const
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
1182 class TP_QT_EXPORT AccountInterfaceAddressingInterface : public Tp::AbstractInterface
1183 {
1184 Q_OBJECT
1185
1186 public:
1193 static inline QLatin1String staticInterfaceName()
1194 {
1195 return QLatin1String("org.freedesktop.Telepathy.Account.Interface.Addressing");
1196 }
1197
1205 AccountInterfaceAddressingInterface(
1206 const QString& busName,
1207 const QString& objectPath,
1208 QObject* parent = 0
1209 );
1210
1219 AccountInterfaceAddressingInterface(
1220 const QDBusConnection& connection,
1221 const QString& busName,
1222 const QString& objectPath,
1223 QObject* parent = 0
1224 );
1225
1232 AccountInterfaceAddressingInterface(Tp::DBusProxy *proxy);
1233
1241 explicit AccountInterfaceAddressingInterface(const Tp::Client::AccountInterface& mainInterface);
1242
1250 AccountInterfaceAddressingInterface(const Tp::Client::AccountInterface& mainInterface, QObject* parent);
1251
1272 inline Tp::PendingVariant *requestPropertyURISchemes() const
1273 {
1274 return internalRequestProperty(QLatin1String("URISchemes"));
1275 }
1276
1283 Tp::PendingVariantMap *requestAllProperties() const
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
1335 class TP_QT_EXPORT AccountInterfaceAvatarInterface : public Tp::AbstractInterface
1336 {
1337 Q_OBJECT
1338
1339 public:
1346 static inline QLatin1String staticInterfaceName()
1347 {
1348 return QLatin1String("org.freedesktop.Telepathy.Account.Interface.Avatar");
1349 }
1350
1358 AccountInterfaceAvatarInterface(
1359 const QString& busName,
1360 const QString& objectPath,
1361 QObject* parent = 0
1362 );
1363
1372 AccountInterfaceAvatarInterface(
1373 const QDBusConnection& connection,
1374 const QString& busName,
1375 const QString& objectPath,
1376 QObject* parent = 0
1377 );
1378
1385 AccountInterfaceAvatarInterface(Tp::DBusProxy *proxy);
1386
1394 explicit AccountInterfaceAvatarInterface(const Tp::Client::AccountInterface& mainInterface);
1395
1403 AccountInterfaceAvatarInterface(const Tp::Client::AccountInterface& mainInterface, QObject* parent);
1404
1418 inline Tp::PendingVariant *requestPropertyAvatar() const
1419 {
1420 return internalRequestProperty(QLatin1String("Avatar"));
1421 }
1422
1436 inline Tp::PendingOperation *setPropertyAvatar(Tp::Avatar newValue)
1437 {
1438 return internalSetProperty(QLatin1String("Avatar"), QVariant::fromValue(newValue));
1439 }
1440
1447 Tp::PendingVariantMap *requestAllProperties() const
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
1474 class TP_QT_EXPORT AccountInterfaceStorageInterface : public Tp::AbstractInterface
1475 {
1476 Q_OBJECT
1477
1478 public:
1485 static inline QLatin1String staticInterfaceName()
1486 {
1487 return QLatin1String("org.freedesktop.Telepathy.Account.Interface.Storage");
1488 }
1489
1497 AccountInterfaceStorageInterface(
1498 const QString& busName,
1499 const QString& objectPath,
1500 QObject* parent = 0
1501 );
1502
1511 AccountInterfaceStorageInterface(
1512 const QDBusConnection& connection,
1513 const QString& busName,
1514 const QString& objectPath,
1515 QObject* parent = 0
1516 );
1517
1524 AccountInterfaceStorageInterface(Tp::DBusProxy *proxy);
1525
1533 explicit AccountInterfaceStorageInterface(const Tp::Client::AccountInterface& mainInterface);
1534
1542 AccountInterfaceStorageInterface(const Tp::Client::AccountInterface& mainInterface, QObject* parent);
1543
1562 inline Tp::PendingVariant *requestPropertyStorageProvider() const
1563 {
1564 return internalRequestProperty(QLatin1String("StorageProvider"));
1565 }
1566
1594 inline Tp::PendingVariant *requestPropertyStorageIdentifier() const
1595 {
1596 return internalRequestProperty(QLatin1String("StorageIdentifier"));
1597 }
1598
1631 inline Tp::PendingVariant *requestPropertyStorageSpecificInformation() const
1632 {
1633 return internalRequestProperty(QLatin1String("StorageSpecificInformation"));
1634 }
1635
1652 inline Tp::PendingVariant *requestPropertyStorageRestrictions() const
1653 {
1654 return internalRequestProperty(QLatin1String("StorageRestrictions"));
1655 }
1656
1663 Tp::PendingVariantMap *requestAllProperties() const
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*)
1674 Q_DECLARE_METATYPE(Tp::Client::AccountInterfaceAddressingInterface*)
1675 Q_DECLARE_METATYPE(Tp::Client::AccountInterfaceAvatarInterface*)
1676 Q_DECLARE_METATYPE(Tp::Client::AccountInterfaceStorageInterface*)
Tp::Client::AccountInterface::requestPropertyValid
Tp::PendingVariant * requestPropertyValid() const
Definition: cli-account.h:199
Tp::Client::AccountInterface::requestPropertyNormalizedName
Tp::PendingVariant * requestPropertyNormalizedName() const
Definition: cli-account.h:869
Tp::Client::AccountInterfaceStorageInterface::requestPropertyStorageIdentifier
Tp::PendingVariant * requestPropertyStorageIdentifier() const
Definition: cli-account.h:1594
Tp::SimplePresence
Definition: build/TelepathyQt/_gen/types.h:2733
Tp::Client::AccountInterface::requestPropertyEnabled
Tp::PendingVariant * requestPropertyEnabled() const
Definition: cli-account.h:242
Tp::DBusProxy
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::Client::AccountInterfaceAddressingInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-account.h:1193
Tp::Client::AccountInterface::requestPropertySupersedes
Tp::PendingVariant * requestPropertySupersedes() const
Definition: cli-account.h:925
Tp::Client::AccountInterface
Definition: cli-account.h:44
Tp::Client::AccountInterfaceAddressingInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-account.h:1283
Tp::Client::AccountInterface::requestPropertyDisplayName
Tp::PendingVariant * requestPropertyDisplayName() const
Definition: cli-account.h:123
Tp::Client::AccountInterfaceStorageInterface
Definition: cli-account.h:1474
Tp::Client::AccountInterfaceAvatarInterface::requestPropertyAvatar
Tp::PendingVariant * requestPropertyAvatar() const
Definition: cli-account.h:1418
Tp::Client::AccountInterfaceAvatarInterface::setPropertyAvatar
Tp::PendingOperation * setPropertyAvatar(Tp::Avatar newValue)
Definition: cli-account.h:1436
Tp::Client::AccountInterface::requestPropertyInterfaces
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-account.h:105
Tp::Client::AccountInterface::setPropertySupersedes
Tp::PendingOperation * setPropertySupersedes(Tp::ObjectPathList newValue)
Definition: cli-account.h:962
Tp::Client::AccountInterface::Reconnect
QDBusPendingReply Reconnect(int timeout=-1)
Definition: cli-account.h:1129
Tp::Client::AccountInterfaceAddressingInterface::requestPropertyURISchemes
Tp::PendingVariant * requestPropertyURISchemes() const
Definition: cli-account.h:1272
Tp::Client::AccountInterface::requestPropertyConnectAutomatically
Tp::PendingVariant * requestPropertyConnectAutomatically() const
Definition: cli-account.h:549
Tp::PendingOperation
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
Tp::Client::AccountInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-account.h:973
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::AccountInterface::requestPropertyConnection
Tp::PendingVariant * requestPropertyConnection() const
Definition: cli-account.h:595
Tp::Client::AccountInterface::requestPropertyConnectionError
Tp::PendingVariant * requestPropertyConnectionError() const
Definition: cli-account.h:669
Tp::Client::AccountInterface::Remove
QDBusPendingReply Remove(int timeout=-1)
Definition: cli-account.h:989
Tp::Client::AccountInterface::requestPropertyConnectionStatusReason
Tp::PendingVariant * requestPropertyConnectionStatusReason() const
Definition: cli-account.h:634
Tp::Client::AccountInterface::setPropertyConnectAutomatically
Tp::PendingOperation * setPropertyConnectAutomatically(bool newValue)
Definition: cli-account.h:569
Tp::Client::AccountInterface::setPropertyDisplayName
Tp::PendingOperation * setPropertyDisplayName(QString newValue)
Definition: cli-account.h:141
Tp::Client::AccountInterface::requestPropertyParameters
Tp::PendingVariant * requestPropertyParameters() const
Definition: cli-account.h:457
Tp::Client::AccountInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-account.h:55
Tp::ObjectPathList
Definition: build/TelepathyQt/_gen/types.h:81
Tp::Client::AccountInterface::setPropertyAutomaticPresence
Tp::PendingOperation * setPropertyAutomaticPresence(Tp::SimplePresence newValue)
Definition: cli-account.h:529
Tp::Client::AccountInterfaceStorageInterface::requestPropertyStorageRestrictions
Tp::PendingVariant * requestPropertyStorageRestrictions() const
Definition: cli-account.h:1652
Tp::Client::AccountInterface::requestPropertyConnectionStatus
Tp::PendingVariant * requestPropertyConnectionStatus() const
Definition: cli-account.h:617
Tp::Client::AccountInterfaceAvatarInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-account.h:1447
Tp::Client::AccountInterfaceAvatarInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-account.h:1346
Tp::Client::AccountInterface::requestPropertyNickname
Tp::PendingVariant * requestPropertyNickname() const
Definition: cli-account.h:307
Tp::Client::AccountInterfaceAvatarInterface
Definition: cli-account.h:1335
Tp::Client::AccountInterface::UpdateParameters
QDBusPendingReply< QStringList > UpdateParameters(const QVariantMap &set, const QStringList &unset, int timeout=-1)
Definition: cli-account.h:1073
Tp::Client::AccountInterface::setPropertyService
Tp::PendingOperation * setPropertyService(QString newValue)
Definition: cli-account.h:433
Tp::PendingVariant
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::Client::AccountInterface::setPropertyEnabled
Tp::PendingOperation * setPropertyEnabled(bool newValue)
Definition: cli-account.h:285
Tp::Client::AccountInterface::setPropertyRequestedPresence
Tp::PendingOperation * setPropertyRequestedPresence(Tp::SimplePresence newValue)
Definition: cli-account.h:781
Tp::Client::AccountInterfaceStorageInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-account.h:1485
Tp::Client::AccountInterface::requestPropertyConnectionErrorDetails
Tp::PendingVariant * requestPropertyConnectionErrorDetails() const
Definition: cli-account.h:698
Tp::Client::AccountInterface::requestPropertyRequestedPresence
Tp::PendingVariant * requestPropertyRequestedPresence() const
Definition: cli-account.h:749
Tp::Avatar
Definition: build/TelepathyQt/_gen/types.h:240
Tp::Client::AccountInterfaceAddressingInterface
Definition: cli-account.h:1182
Tp::Client::AccountInterface::requestPropertyService
Tp::PendingVariant * requestPropertyService() const
Definition: cli-account.h:381
Tp::Client::AccountInterfaceAddressingInterface::SetURISchemeAssociation
QDBusPendingReply SetURISchemeAssociation(const QString &URIScheme, bool association, int timeout=-1)
Definition: cli-account.h:1309
Tp::Client::AccountInterfaceStorageInterface::requestPropertyStorageProvider
Tp::PendingVariant * requestPropertyStorageProvider() const
Definition: cli-account.h:1562
Tp::Client::AccountInterface::requestPropertyChangingPresence
Tp::PendingVariant * requestPropertyChangingPresence() const
Definition: cli-account.h:827
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::AccountInterface::requestPropertyCurrentPresence
Tp::PendingVariant * requestPropertyCurrentPresence() const
Definition: cli-account.h:717
Tp::Client::AccountInterface::requestPropertyHasBeenOnline
Tp::PendingVariant * requestPropertyHasBeenOnline() const
Definition: cli-account.h:888
Tp::Client::AccountInterfaceStorageInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-account.h:1663
Tp::Client::AccountInterfaceStorageInterface::requestPropertyStorageSpecificInformation
Tp::PendingVariant * requestPropertyStorageSpecificInformation() const
Definition: cli-account.h:1631
Tp::Client::AccountInterface::setPropertyNickname
Tp::PendingOperation * setPropertyNickname(QString newValue)
Definition: cli-account.h:329
Tp::Client::AccountInterface::requestPropertyIcon
Tp::PendingVariant * requestPropertyIcon() const
Definition: cli-account.h:158
Tp::Client::AccountInterface::setPropertyIcon
Tp::PendingOperation * setPropertyIcon(QString newValue)
Definition: cli-account.h:175
Tp::Client::AccountInterface::requestPropertyAutomaticPresence
Tp::PendingVariant * requestPropertyAutomaticPresence() const
Definition: cli-account.h:493