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.ChannelDispatchOperation");
68 const QString& busName,
69 const QString& objectPath,
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
108 return internalRequestProperty(QLatin1String(
"Interfaces"));
125 return internalRequestProperty(QLatin1String(
"Connection"));
140 return internalRequestProperty(QLatin1String(
"Account"));
156 return internalRequestProperty(QLatin1String(
"Channels"));
178 return internalRequestProperty(QLatin1String(
"PossibleHandlers"));
189 return internalRequestAllProperties();
238 inline QDBusPendingReply<>
HandleWith(
const QString& handler,
int timeout = -1)
240 if (!invalidationReason().isEmpty()) {
241 return QDBusPendingReply<>(QDBusMessage::createError(
242 invalidationReason(),
243 invalidationMessage()
247 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
248 this->staticInterfaceName(), QLatin1String(
"HandleWith"));
249 callMessage << QVariant::fromValue(handler);
250 return this->connection().asyncCall(callMessage, timeout);
306 inline QDBusPendingReply<>
Claim(
int timeout = -1)
308 if (!invalidationReason().isEmpty()) {
309 return QDBusPendingReply<>(QDBusMessage::createError(
310 invalidationReason(),
311 invalidationMessage()
315 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
316 this->staticInterfaceName(), QLatin1String(
"Claim"));
317 return this->connection().asyncCall(callMessage, timeout);
350 inline QDBusPendingReply<>
HandleWithTime(
const QString& handler, qlonglong userActionTime,
int timeout = -1)
352 if (!invalidationReason().isEmpty()) {
353 return QDBusPendingReply<>(QDBusMessage::createError(
354 invalidationReason(),
355 invalidationMessage()
359 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
360 this->staticInterfaceName(), QLatin1String(
"HandleWithTime"));
361 callMessage << QVariant::fromValue(handler) << QVariant::fromValue(userActionTime);
362 return this->connection().asyncCall(callMessage, timeout);
411 void ChannelLost(
const QDBusObjectPath& channel,
const QString& error,
const QString& message);
458 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
Tp::PendingVariant * requestPropertyPossibleHandlers() const
Definition: cli-channel-dispatch-operation.h:176
static QLatin1String staticInterfaceName()
Definition: cli-channel-dispatch-operation.h:55
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-channel-dispatch-operation.h:187
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-channel-dispatch-operation.h:106
QDBusPendingReply HandleWith(const QString &handler, int timeout=-1)
Definition: cli-channel-dispatch-operation.h:238
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::PendingVariant * requestPropertyChannels() const
Definition: cli-channel-dispatch-operation.h:154
QDBusPendingReply Claim(int timeout=-1)
Definition: cli-channel-dispatch-operation.h:306
Tp::PendingVariant * requestPropertyAccount() const
Definition: cli-channel-dispatch-operation.h:138
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Tp::PendingVariant * requestPropertyConnection() const
Definition: cli-channel-dispatch-operation.h:123
Definition: cli-channel-dispatch-operation.h:44
QDBusPendingReply HandleWithTime(const QString &handler, qlonglong userActionTime, int timeout=-1)
Definition: cli-channel-dispatch-operation.h:350
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