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.Client");
68 const QString& busName,
69 const QString& objectPath,
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
120 return internalRequestProperty(QLatin1String(
"Interfaces"));
131 return internalRequestAllProperties();
135 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
158 return QLatin1String(
"org.freedesktop.Telepathy.Client.Approver");
169 const QString& busName,
170 const QString& objectPath,
183 const QDBusConnection& connection,
184 const QString& busName,
185 const QString& objectPath,
242 return internalRequestProperty(QLatin1String(
"ApproverChannelFilter"));
253 return internalRequestAllProperties();
341 if (!invalidationReason().isEmpty()) {
342 return QDBusPendingReply<>(QDBusMessage::createError(
343 invalidationReason(),
344 invalidationMessage()
348 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
349 this->staticInterfaceName(), QLatin1String(
"AddDispatchOperation"));
350 callMessage << QVariant::fromValue(channels) << QVariant::fromValue(dispatchOperation) << QVariant::fromValue(properties);
351 return this->connection().asyncCall(callMessage, timeout);
355 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
378 return QLatin1String(
"org.freedesktop.Telepathy.Client.Handler");
389 const QString& busName,
390 const QString& objectPath,
403 const QDBusConnection& connection,
404 const QString& busName,
405 const QString& objectPath,
461 return internalRequestProperty(QLatin1String(
"HandlerChannelFilter"));
501 return internalRequestProperty(QLatin1String(
"BypassApproval"));
553 return internalRequestProperty(QLatin1String(
"Capabilities"));
595 return internalRequestProperty(QLatin1String(
"HandledChannels"));
606 return internalRequestAllProperties();
717 if (!invalidationReason().isEmpty()) {
718 return QDBusPendingReply<>(QDBusMessage::createError(
719 invalidationReason(),
720 invalidationMessage()
724 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
725 this->staticInterfaceName(), QLatin1String(
"HandleChannels"));
726 callMessage << QVariant::fromValue(account) << QVariant::fromValue(connection) << QVariant::fromValue(channels) << QVariant::fromValue(requestsSatisfied) << QVariant::fromValue(userActionTime) << QVariant::fromValue(handlerInfo);
727 return this->connection().asyncCall(callMessage, timeout);
731 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
754 return QLatin1String(
"org.freedesktop.Telepathy.Client.Interface.Requests");
765 const QString& busName,
766 const QString& objectPath,
779 const QDBusConnection& connection,
780 const QString& busName,
781 const QString& objectPath,
819 return internalRequestAllProperties();
905 inline QDBusPendingReply<>
AddRequest(
const QDBusObjectPath& request,
const QVariantMap& properties,
int timeout = -1)
907 if (!invalidationReason().isEmpty()) {
908 return QDBusPendingReply<>(QDBusMessage::createError(
909 invalidationReason(),
910 invalidationMessage()
914 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
915 this->staticInterfaceName(), QLatin1String(
"AddRequest"));
916 callMessage << QVariant::fromValue(request) << QVariant::fromValue(properties);
917 return this->connection().asyncCall(callMessage, timeout);
960 inline QDBusPendingReply<>
RemoveRequest(
const QDBusObjectPath& request,
const QString& error,
const QString& message,
int timeout = -1)
962 if (!invalidationReason().isEmpty()) {
963 return QDBusPendingReply<>(QDBusMessage::createError(
964 invalidationReason(),
965 invalidationMessage()
969 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
970 this->staticInterfaceName(), QLatin1String(
"RemoveRequest"));
971 callMessage << QVariant::fromValue(request) << QVariant::fromValue(error) << QVariant::fromValue(message);
972 return this->connection().asyncCall(callMessage, timeout);
976 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
999 return QLatin1String(
"org.freedesktop.Telepathy.Client.Observer");
1010 const QString& busName,
1011 const QString& objectPath,
1024 const QDBusConnection& connection,
1025 const QString& busName,
1026 const QString& objectPath,
1150 return internalRequestProperty(QLatin1String(
"ObserverChannelFilter"));
1196 return internalRequestProperty(QLatin1String(
"Recover"));
1244 return internalRequestProperty(QLatin1String(
"DelayApprovers"));
1255 return internalRequestAllProperties();
1385 if (!invalidationReason().isEmpty()) {
1386 return QDBusPendingReply<>(QDBusMessage::createError(
1387 invalidationReason(),
1388 invalidationMessage()
1392 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
1393 this->staticInterfaceName(), QLatin1String(
"ObserveChannels"));
1394 callMessage << QVariant::fromValue(account) << QVariant::fromValue(connection) << QVariant::fromValue(channels) << QVariant::fromValue(dispatchOperation) << QVariant::fromValue(requestsSatisfied) << QVariant::fromValue(observerInfo);
1395 return this->connection().asyncCall(callMessage, timeout);
1399 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
1404 Q_DECLARE_METATYPE(Tp::Client::ClientApproverInterface*)
1405 Q_DECLARE_METATYPE(Tp::Client::ClientHandlerInterface*)
1406 Q_DECLARE_METATYPE(Tp::Client::ClientInterfaceRequestsInterface*)
1407 Q_DECLARE_METATYPE(Tp::Client::ClientObserverInterface*)
QList< ChannelDetails > ChannelDetailsList
Definition: build/TelepathyQt/_gen/types.h:820
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-client.h:251
QDBusPendingReply AddRequest(const QDBusObjectPath &request, const QVariantMap &properties, int timeout=-1)
Definition: cli-client.h:905
Tp::PendingVariant * requestPropertyRecover() const
Definition: cli-client.h:1194
static QLatin1String staticInterfaceName()
Definition: cli-client.h:376
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-client.h:118
Definition: cli-client.h:365
Tp::PendingVariant * requestPropertyCapabilities() const
Definition: cli-client.h:551
Definition: cli-client.h:986
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-client.h:1253
Tp::PendingVariant * requestPropertyApproverChannelFilter() const
Definition: cli-client.h:240
Tp::PendingVariant * requestPropertyBypassApproval() const
Definition: cli-client.h:499
QDBusPendingReply RemoveRequest(const QDBusObjectPath &request, const QString &error, const QString &message, int timeout=-1)
Definition: cli-client.h:960
static QLatin1String staticInterfaceName()
Definition: cli-client.h:156
Tp::PendingVariant * requestPropertyDelayApprovers() const
Definition: cli-client.h:1242
Definition: cli-client.h:145
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
QDBusPendingReply HandleChannels(const QDBusObjectPath &account, const QDBusObjectPath &connection, const Tp::ChannelDetailsList &channels, const Tp::ObjectPathList &requestsSatisfied, qulonglong userActionTime, const QVariantMap &handlerInfo, int timeout=-1)
Definition: cli-client.h:715
static QLatin1String staticInterfaceName()
Definition: cli-client.h:752
static QLatin1String staticInterfaceName()
Definition: cli-client.h:997
Tp::PendingVariant * requestPropertyHandlerChannelFilter() const
Definition: cli-client.h:459
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-client.h:817
Definition: cli-client.h:741
Definition: build/TelepathyQt/_gen/types.h:81
QDBusPendingReply ObserveChannels(const QDBusObjectPath &account, const QDBusObjectPath &connection, const Tp::ChannelDetailsList &channels, const QDBusObjectPath &dispatchOperation, const Tp::ObjectPathList &requestsSatisfied, const QVariantMap &observerInfo, int timeout=-1)
Definition: cli-client.h:1383
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
QDBusPendingReply AddDispatchOperation(const Tp::ChannelDetailsList &channels, const QDBusObjectPath &dispatchOperation, const QVariantMap &properties, int timeout=-1)
Definition: cli-client.h:339
Definition: cli-client.h:44
Tp::PendingVariant * requestPropertyHandledChannels() const
Definition: cli-client.h:593
Tp::PendingVariant * requestPropertyObserverChannelFilter() const
Definition: cli-client.h:1148
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-client.h:604
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
static QLatin1String staticInterfaceName()
Definition: cli-client.h:55
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-client.h:129