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.ConnectionManager");
68 const QString& busName,
69 const QString& objectPath,
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
122 return internalRequestProperty(QLatin1String(
"Protocols"));
154 return internalRequestProperty(QLatin1String(
"Interfaces"));
165 return internalRequestAllProperties();
194 inline QDBusPendingReply<Tp::ParamSpecList>
GetParameters(
const QString& protocol,
int timeout = -1)
196 if (!invalidationReason().isEmpty()) {
197 return QDBusPendingReply<Tp::ParamSpecList>(QDBusMessage::createError(
198 invalidationReason(),
199 invalidationMessage()
203 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
204 this->staticInterfaceName(), QLatin1String(
"GetParameters"));
205 callMessage << QVariant::fromValue(protocol);
206 return this->connection().asyncCall(callMessage, timeout);
226 if (!invalidationReason().isEmpty()) {
227 return QDBusPendingReply<QStringList>(QDBusMessage::createError(
228 invalidationReason(),
229 invalidationMessage()
233 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
234 this->staticInterfaceName(), QLatin1String(
"ListProtocols"));
235 return this->connection().asyncCall(callMessage, timeout);
315 inline QDBusPendingReply<QString, QDBusObjectPath>
RequestConnection(
const QString& protocol,
const QVariantMap& parameters,
int timeout = -1)
317 if (!invalidationReason().isEmpty()) {
318 return QDBusPendingReply<QString, QDBusObjectPath>(QDBusMessage::createError(
319 invalidationReason(),
320 invalidationMessage()
324 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
325 this->staticInterfaceName(), QLatin1String(
"RequestConnection"));
326 callMessage << QVariant::fromValue(protocol) << QVariant::fromValue(parameters);
327 return this->connection().asyncCall(callMessage, timeout);
348 void NewConnection(
const QString& busName,
const QDBusObjectPath& objectPath,
const QString& protocol);
351 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
374 return QLatin1String(
"org.freedesktop.Telepathy.Protocol");
385 const QString& busName,
386 const QString& objectPath,
399 const QDBusConnection& connection,
400 const QString& busName,
401 const QString& objectPath,
456 return internalRequestProperty(QLatin1String(
"Interfaces"));
487 return internalRequestProperty(QLatin1String(
"Parameters"));
516 return internalRequestProperty(QLatin1String(
"ConnectionInterfaces"));
586 return internalRequestProperty(QLatin1String(
"RequestableChannelClasses"));
640 return internalRequestProperty(QLatin1String(
"VCardField"));
683 return internalRequestProperty(QLatin1String(
"EnglishName"));
717 return internalRequestProperty(QLatin1String(
"Icon"));
767 return internalRequestProperty(QLatin1String(
"AuthenticationTypes"));
778 return internalRequestAllProperties();
819 inline QDBusPendingReply<QString>
IdentifyAccount(
const QVariantMap& parameters,
int timeout = -1)
821 if (!invalidationReason().isEmpty()) {
822 return QDBusPendingReply<QString>(QDBusMessage::createError(
823 invalidationReason(),
824 invalidationMessage()
828 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
829 this->staticInterfaceName(), QLatin1String(
"IdentifyAccount"));
830 callMessage << QVariant::fromValue(parameters);
831 return this->connection().asyncCall(callMessage, timeout);
888 inline QDBusPendingReply<QString>
NormalizeContact(
const QString& contactID,
int timeout = -1)
890 if (!invalidationReason().isEmpty()) {
891 return QDBusPendingReply<QString>(QDBusMessage::createError(
892 invalidationReason(),
893 invalidationMessage()
897 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
898 this->staticInterfaceName(), QLatin1String(
"NormalizeContact"));
899 callMessage << QVariant::fromValue(contactID);
900 return this->connection().asyncCall(callMessage, timeout);
904 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
927 return QLatin1String(
"org.freedesktop.Telepathy.Protocol.Interface.Addressing");
938 const QString& busName,
939 const QString& objectPath,
952 const QDBusConnection& connection,
953 const QString& busName,
954 const QString& objectPath,
1048 return internalRequestProperty(QLatin1String(
"AddressableVCardFields"));
1132 return internalRequestProperty(QLatin1String(
"AddressableURISchemes"));
1143 return internalRequestAllProperties();
1189 inline QDBusPendingReply<QString>
NormalizeVCardAddress(
const QString& VCardField,
const QString& VCardAddress,
int timeout = -1)
1191 if (!invalidationReason().isEmpty()) {
1192 return QDBusPendingReply<QString>(QDBusMessage::createError(
1193 invalidationReason(),
1194 invalidationMessage()
1198 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
1199 this->staticInterfaceName(), QLatin1String(
"NormalizeVCardAddress"));
1200 callMessage << QVariant::fromValue(VCardField) << QVariant::fromValue(VCardAddress);
1201 return this->connection().asyncCall(callMessage, timeout);
1266 if (!invalidationReason().isEmpty()) {
1267 return QDBusPendingReply<QString>(QDBusMessage::createError(
1268 invalidationReason(),
1269 invalidationMessage()
1273 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
1274 this->staticInterfaceName(), QLatin1String(
"NormalizeContactURI"));
1275 callMessage << QVariant::fromValue(URI);
1276 return this->connection().asyncCall(callMessage, timeout);
1280 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
1303 return QLatin1String(
"org.freedesktop.Telepathy.Protocol.Interface.Avatars");
1314 const QString& busName,
1315 const QString& objectPath,
1328 const QDBusConnection& connection,
1329 const QString& busName,
1330 const QString& objectPath,
1373 return internalRequestProperty(QLatin1String(
"SupportedAvatarMIMETypes"));
1389 return internalRequestProperty(QLatin1String(
"MinimumAvatarHeight"));
1405 return internalRequestProperty(QLatin1String(
"MinimumAvatarWidth"));
1421 return internalRequestProperty(QLatin1String(
"RecommendedAvatarHeight"));
1437 return internalRequestProperty(QLatin1String(
"RecommendedAvatarWidth"));
1453 return internalRequestProperty(QLatin1String(
"MaximumAvatarHeight"));
1469 return internalRequestProperty(QLatin1String(
"MaximumAvatarWidth"));
1485 return internalRequestProperty(QLatin1String(
"MaximumAvatarBytes"));
1496 return internalRequestAllProperties();
1500 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
1523 return QLatin1String(
"org.freedesktop.Telepathy.Protocol.Interface.Presence");
1534 const QString& busName,
1535 const QString& objectPath,
1548 const QDBusConnection& connection,
1549 const QString& busName,
1550 const QString& objectPath,
1595 return internalRequestProperty(QLatin1String(
"Statuses"));
1606 return internalRequestAllProperties();
1610 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
Tp::PendingVariant * requestPropertyAddressableVCardFields() const
Definition: cli-connection-manager.h:1046
Tp::PendingVariant * requestPropertyRecommendedAvatarWidth() const
Definition: cli-connection-manager.h:1435
Tp::PendingVariant * requestPropertyMinimumAvatarHeight() const
Definition: cli-connection-manager.h:1387
Definition: cli-connection-manager.h:44
Definition: cli-connection-manager.h:361
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-connection-manager.h:454
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:776
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-connection-manager.h:152
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:1604
Tp::PendingVariant * requestPropertyMaximumAvatarWidth() const
Definition: cli-connection-manager.h:1467
Tp::PendingVariant * requestPropertyStatuses() const
Definition: cli-connection-manager.h:1593
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 * requestPropertyRequestableChannelClasses() const
Definition: cli-connection-manager.h:584
Tp::PendingVariant * requestPropertyVCardField() const
Definition: cli-connection-manager.h:638
Tp::PendingVariant * requestPropertyAddressableURISchemes() const
Definition: cli-connection-manager.h:1130
Tp::PendingVariant * requestPropertyParameters() const
Definition: cli-connection-manager.h:485
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:1494
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:163
Tp::PendingVariant * requestPropertyRecommendedAvatarHeight() const
Definition: cli-connection-manager.h:1419
QDBusPendingReply< QStringList > ListProtocols(int timeout=-1)
Definition: cli-connection-manager.h:224
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:925
QDBusPendingReply< QString > IdentifyAccount(const QVariantMap ¶meters, int timeout=-1)
Definition: cli-connection-manager.h:819
Tp::PendingVariant * requestPropertyProtocols() const
Definition: cli-connection-manager.h:120
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
QDBusPendingReply< QString > NormalizeContactURI(const QString &URI, int timeout=-1)
Definition: cli-connection-manager.h:1264
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:1141
Tp::PendingVariant * requestPropertyMinimumAvatarWidth() const
Definition: cli-connection-manager.h:1403
Definition: cli-connection-manager.h:914
QDBusPendingReply< QString > NormalizeVCardAddress(const QString &VCardField, const QString &VCardAddress, int timeout=-1)
Definition: cli-connection-manager.h:1189
QDBusPendingReply< QString, QDBusObjectPath > RequestConnection(const QString &protocol, const QVariantMap ¶meters, int timeout=-1)
Definition: cli-connection-manager.h:315
Tp::PendingVariant * requestPropertyAuthenticationTypes() const
Definition: cli-connection-manager.h:765
Tp::PendingVariant * requestPropertyMaximumAvatarBytes() const
Definition: cli-connection-manager.h:1483
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:1521
QDBusPendingReply< QString > NormalizeContact(const QString &contactID, int timeout=-1)
Definition: cli-connection-manager.h:888
Definition: abstract-adaptor.cpp:31
Tp::PendingVariant * requestPropertyIcon() const
Definition: cli-connection-manager.h:715
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::PendingVariant * requestPropertyMaximumAvatarHeight() const
Definition: cli-connection-manager.h:1451
Definition: cli-connection-manager.h:1510
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:55
Tp::PendingVariant * requestPropertyConnectionInterfaces() const
Definition: cli-connection-manager.h:514
Tp::PendingVariant * requestPropertyEnglishName() const
Definition: cli-connection-manager.h:681
Definition: cli-connection-manager.h:1290
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:372
QDBusPendingReply< Tp::ParamSpecList > GetParameters(const QString &protocol, int timeout=-1)
Definition: cli-connection-manager.h:194
Tp::PendingVariant * requestPropertySupportedAvatarMIMETypes() const
Definition: cli-connection-manager.h:1371
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:1301