8 #ifndef IN_TP_QT_HEADER 12 #include <TelepathyQt/Types> 20 #include <QDBusPendingReply> 22 #include <TelepathyQt/AbstractInterface> 23 #include <TelepathyQt/DBusProxy> 24 #include <TelepathyQt/Global> 29 class PendingOperation;
57 return QLatin1String(
"org.freedesktop.Telepathy.Account");
68 const QString& busName,
69 const QString& objectPath,
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
107 return internalRequestProperty(QLatin1String(
"Interfaces"));
125 return internalRequestProperty(QLatin1String(
"DisplayName"));
143 return internalSetProperty(QLatin1String(
"DisplayName"), QVariant::fromValue(newValue));
160 return internalRequestProperty(QLatin1String(
"Icon"));
177 return internalSetProperty(QLatin1String(
"Icon"), QVariant::fromValue(newValue));
201 return internalRequestProperty(QLatin1String(
"Valid"));
244 return internalRequestProperty(QLatin1String(
"Enabled"));
287 return internalSetProperty(QLatin1String(
"Enabled"), QVariant::fromValue(newValue));
309 return internalRequestProperty(QLatin1String(
"Nickname"));
331 return internalSetProperty(QLatin1String(
"Nickname"), QVariant::fromValue(newValue));
383 return internalRequestProperty(QLatin1String(
"Service"));
435 return internalSetProperty(QLatin1String(
"Service"), QVariant::fromValue(newValue));
459 return internalRequestProperty(QLatin1String(
"Parameters"));
495 return internalRequestProperty(QLatin1String(
"AutomaticPresence"));
531 return internalSetProperty(QLatin1String(
"AutomaticPresence"), QVariant::fromValue(newValue));
551 return internalRequestProperty(QLatin1String(
"ConnectAutomatically"));
571 return internalSetProperty(QLatin1String(
"ConnectAutomatically"), QVariant::fromValue(newValue));
597 return internalRequestProperty(QLatin1String(
"Connection"));
619 return internalRequestProperty(QLatin1String(
"ConnectionStatus"));
636 return internalRequestProperty(QLatin1String(
"ConnectionStatusReason"));
671 return internalRequestProperty(QLatin1String(
"ConnectionError"));
700 return internalRequestProperty(QLatin1String(
"ConnectionErrorDetails"));
719 return internalRequestProperty(QLatin1String(
"CurrentPresence"));
751 return internalRequestProperty(QLatin1String(
"RequestedPresence"));
783 return internalSetProperty(QLatin1String(
"RequestedPresence"), QVariant::fromValue(newValue));
829 return internalRequestProperty(QLatin1String(
"ChangingPresence"));
871 return internalRequestProperty(QLatin1String(
"NormalizedName"));
890 return internalRequestProperty(QLatin1String(
"HasBeenOnline"));
927 return internalRequestProperty(QLatin1String(
"Supersedes"));
964 return internalSetProperty(QLatin1String(
"Supersedes"), QVariant::fromValue(newValue));
975 return internalRequestAllProperties();
989 inline QDBusPendingReply<>
Remove(
int timeout = -1)
991 if (!invalidationReason().isEmpty()) {
992 return QDBusPendingReply<>(QDBusMessage::createError(
993 invalidationReason(),
994 invalidationMessage()
998 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
999 this->staticInterfaceName(), QLatin1String(
"Remove"));
1000 return this->connection().asyncCall(callMessage, timeout);
1073 inline QDBusPendingReply<QStringList>
UpdateParameters(
const QVariantMap&
set,
const QStringList& unset,
int timeout = -1)
1075 if (!invalidationReason().isEmpty()) {
1076 return QDBusPendingReply<QStringList>(QDBusMessage::createError(
1077 invalidationReason(),
1078 invalidationMessage()
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);
1131 if (!invalidationReason().isEmpty()) {
1132 return QDBusPendingReply<>(QDBusMessage::createError(
1133 invalidationReason(),
1134 invalidationMessage()
1138 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
1139 this->staticInterfaceName(), QLatin1String(
"Reconnect"));
1140 return this->connection().asyncCall(callMessage, timeout);
1169 void AccountPropertyChanged(
const QVariantMap& properties);
1172 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
1195 return QLatin1String(
"org.freedesktop.Telepathy.Account.Interface.Addressing");
1206 const QString& busName,
1207 const QString& objectPath,
1220 const QDBusConnection& connection,
1221 const QString& busName,
1222 const QString& objectPath,
1274 return internalRequestProperty(QLatin1String(
"URISchemes"));
1285 return internalRequestAllProperties();
1311 if (!invalidationReason().isEmpty()) {
1312 return QDBusPendingReply<>(QDBusMessage::createError(
1313 invalidationReason(),
1314 invalidationMessage()
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);
1325 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
1348 return QLatin1String(
"org.freedesktop.Telepathy.Account.Interface.Avatar");
1359 const QString& busName,
1360 const QString& objectPath,
1373 const QDBusConnection& connection,
1374 const QString& busName,
1375 const QString& objectPath,
1420 return internalRequestProperty(QLatin1String(
"Avatar"));
1438 return internalSetProperty(QLatin1String(
"Avatar"), QVariant::fromValue(newValue));
1449 return internalRequestAllProperties();
1461 void AvatarChanged();
1464 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
1487 return QLatin1String(
"org.freedesktop.Telepathy.Account.Interface.Storage");
1498 const QString& busName,
1499 const QString& objectPath,
1512 const QDBusConnection& connection,
1513 const QString& busName,
1514 const QString& objectPath,
1564 return internalRequestProperty(QLatin1String(
"StorageProvider"));
1596 return internalRequestProperty(QLatin1String(
"StorageIdentifier"));
1633 return internalRequestProperty(QLatin1String(
"StorageSpecificInformation"));
1654 return internalRequestProperty(QLatin1String(
"StorageRestrictions"));
1665 return internalRequestAllProperties();
1669 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
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
Definition: cli-account.h:1182
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