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.ChannelRequest");
68 const QString& busName,
69 const QString& objectPath,
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
107 return internalRequestProperty(QLatin1String(
"Account"));
127 return internalRequestProperty(QLatin1String(
"UserActionTime"));
150 return internalRequestProperty(QLatin1String(
"PreferredHandler"));
175 return internalRequestProperty(QLatin1String(
"Requests"));
190 return internalRequestProperty(QLatin1String(
"Interfaces"));
277 return internalRequestProperty(QLatin1String(
"Hints"));
288 return internalRequestAllProperties();
324 inline QDBusPendingReply<>
Proceed(
int timeout = -1)
326 if (!invalidationReason().isEmpty()) {
327 return QDBusPendingReply<>(QDBusMessage::createError(
328 invalidationReason(),
329 invalidationMessage()
333 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
334 this->staticInterfaceName(), QLatin1String(
"Proceed"));
335 return this->connection().asyncCall(callMessage, timeout);
380 inline QDBusPendingReply<>
Cancel(
int timeout = -1)
382 if (!invalidationReason().isEmpty()) {
383 return QDBusPendingReply<>(QDBusMessage::createError(
384 invalidationReason(),
385 invalidationMessage()
389 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
390 this->staticInterfaceName(), QLatin1String(
"Cancel"));
391 return this->connection().asyncCall(callMessage, timeout);
417 void Failed(
const QString& error,
const QString& message);
469 void SucceededWithChannel(
const QDBusObjectPath& connection,
const QVariantMap& connectionProperties,
const QDBusObjectPath& channel,
const QVariantMap& channelProperties);
472 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
Tp::PendingVariant * requestPropertyAccount() const
Definition: cli-channel-request.h:105
static QLatin1String staticInterfaceName()
Definition: cli-channel-request.h:55
QDBusPendingReply Cancel(int timeout=-1)
Definition: cli-channel-request.h:380
Tp::PendingVariant * requestPropertyRequests() const
Definition: cli-channel-request.h:173
QDBusPendingReply Proceed(int timeout=-1)
Definition: cli-channel-request.h:324
The AbstractInterface class is the base class for all client side D-Bus interfaces,...
Definition: abstract-interface.h:42
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-channel-request.h:286
Tp::PendingVariant * requestPropertyUserActionTime() const
Definition: cli-channel-request.h:125
Tp::PendingVariant * requestPropertyPreferredHandler() const
Definition: cli-channel-request.h:148
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Definition: cli-channel-request.h:44
Definition: abstract-adaptor.cpp:31
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-channel-request.h:188
Tp::PendingVariant * requestPropertyHints() const
Definition: cli-channel-request.h:275