| Home · All Classes · All Namespaces · Modules · Functions · Files

cli-client.h
1 /*
2 * This file contains D-Bus client proxy classes generated by qt-client-gen.py.
3 *
4 * This file can be distributed under the same terms as the specification from
5 * which it was generated.
6 */
7
8 #ifndef IN_TP_QT_HEADER
9 #error IN_TP_QT_HEADER
10 #endif
11
12 #include <TelepathyQt/Types>
13
14 #include <QtGlobal>
15
16 #include <QString>
17 #include <QObject>
18 #include <QVariant>
19
20 #include <QDBusPendingReply>
21
22 #include <TelepathyQt/AbstractInterface>
23 #include <TelepathyQt/DBusProxy>
24 #include <TelepathyQt/Global>
25
26 namespace Tp
27 {
28 class PendingVariant;
29 class PendingOperation;
30 }
31
32 namespace Tp
33 {
34 namespace Client
35 {
36
44 class TP_QT_EXPORT ClientInterface : public Tp::AbstractInterface
45 {
46 Q_OBJECT
47
48 public:
55 static inline QLatin1String staticInterfaceName()
56 {
57 return QLatin1String("org.freedesktop.Telepathy.Client");
58 }
59
67 ClientInterface(
68 const QString& busName,
69 const QString& objectPath,
70 QObject* parent = 0
71 );
72
81 ClientInterface(
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
85 QObject* parent = 0
86 );
87
94 ClientInterface(Tp::DBusProxy *proxy);
95
118 inline Tp::PendingVariant *requestPropertyInterfaces() const
119 {
120 return internalRequestProperty(QLatin1String("Interfaces"));
121 }
122
129 Tp::PendingVariantMap *requestAllProperties() const
130 {
131 return internalRequestAllProperties();
132 }
133
134 protected:
135 virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
136 };
137
145 class TP_QT_EXPORT ClientApproverInterface : public Tp::AbstractInterface
146 {
147 Q_OBJECT
148
149 public:
156 static inline QLatin1String staticInterfaceName()
157 {
158 return QLatin1String("org.freedesktop.Telepathy.Client.Approver");
159 }
160
168 ClientApproverInterface(
169 const QString& busName,
170 const QString& objectPath,
171 QObject* parent = 0
172 );
173
182 ClientApproverInterface(
183 const QDBusConnection& connection,
184 const QString& busName,
185 const QString& objectPath,
186 QObject* parent = 0
187 );
188
195 ClientApproverInterface(Tp::DBusProxy *proxy);
196
204 explicit ClientApproverInterface(const Tp::Client::ClientInterface& mainInterface);
205
213 ClientApproverInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
214
240 inline Tp::PendingVariant *requestPropertyApproverChannelFilter() const
241 {
242 return internalRequestProperty(QLatin1String("ApproverChannelFilter"));
243 }
244
251 Tp::PendingVariantMap *requestAllProperties() const
252 {
253 return internalRequestAllProperties();
254 }
255
256 public Q_SLOTS:
339 inline QDBusPendingReply<> AddDispatchOperation(const Tp::ChannelDetailsList& channels, const QDBusObjectPath& dispatchOperation, const QVariantMap& properties, int timeout = -1)
340 {
341 if (!invalidationReason().isEmpty()) {
342 return QDBusPendingReply<>(QDBusMessage::createError(
343 invalidationReason(),
344 invalidationMessage()
345 ));
346 }
347
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);
352 }
353
354 protected:
355 virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
356 };
357
365 class TP_QT_EXPORT ClientHandlerInterface : public Tp::AbstractInterface
366 {
367 Q_OBJECT
368
369 public:
376 static inline QLatin1String staticInterfaceName()
377 {
378 return QLatin1String("org.freedesktop.Telepathy.Client.Handler");
379 }
380
388 ClientHandlerInterface(
389 const QString& busName,
390 const QString& objectPath,
391 QObject* parent = 0
392 );
393
402 ClientHandlerInterface(
403 const QDBusConnection& connection,
404 const QString& busName,
405 const QString& objectPath,
406 QObject* parent = 0
407 );
408
415 ClientHandlerInterface(Tp::DBusProxy *proxy);
416
424 explicit ClientHandlerInterface(const Tp::Client::ClientInterface& mainInterface);
425
433 ClientHandlerInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
434
459 inline Tp::PendingVariant *requestPropertyHandlerChannelFilter() const
460 {
461 return internalRequestProperty(QLatin1String("HandlerChannelFilter"));
462 }
463
499 inline Tp::PendingVariant *requestPropertyBypassApproval() const
500 {
501 return internalRequestProperty(QLatin1String("BypassApproval"));
502 }
503
551 inline Tp::PendingVariant *requestPropertyCapabilities() const
552 {
553 return internalRequestProperty(QLatin1String("Capabilities"));
554 }
555
593 inline Tp::PendingVariant *requestPropertyHandledChannels() const
594 {
595 return internalRequestProperty(QLatin1String("HandledChannels"));
596 }
597
604 Tp::PendingVariantMap *requestAllProperties() const
605 {
606 return internalRequestAllProperties();
607 }
608
609 public Q_SLOTS:
715 inline QDBusPendingReply<> HandleChannels(const QDBusObjectPath& account, const QDBusObjectPath& connection, const Tp::ChannelDetailsList& channels, const Tp::ObjectPathList& requestsSatisfied, qulonglong userActionTime, const QVariantMap& handlerInfo, int timeout = -1)
716 {
717 if (!invalidationReason().isEmpty()) {
718 return QDBusPendingReply<>(QDBusMessage::createError(
719 invalidationReason(),
720 invalidationMessage()
721 ));
722 }
723
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);
728 }
729
730 protected:
731 virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
732 };
733
741 class TP_QT_EXPORT ClientInterfaceRequestsInterface : public Tp::AbstractInterface
742 {
743 Q_OBJECT
744
745 public:
752 static inline QLatin1String staticInterfaceName()
753 {
754 return QLatin1String("org.freedesktop.Telepathy.Client.Interface.Requests");
755 }
756
764 ClientInterfaceRequestsInterface(
765 const QString& busName,
766 const QString& objectPath,
767 QObject* parent = 0
768 );
769
778 ClientInterfaceRequestsInterface(
779 const QDBusConnection& connection,
780 const QString& busName,
781 const QString& objectPath,
782 QObject* parent = 0
783 );
784
791 ClientInterfaceRequestsInterface(Tp::DBusProxy *proxy);
792
800 explicit ClientInterfaceRequestsInterface(const Tp::Client::ClientInterface& mainInterface);
801
809 ClientInterfaceRequestsInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
810
817 Tp::PendingVariantMap *requestAllProperties() const
818 {
819 return internalRequestAllProperties();
820 }
821
822 public Q_SLOTS:
905 inline QDBusPendingReply<> AddRequest(const QDBusObjectPath& request, const QVariantMap& properties, int timeout = -1)
906 {
907 if (!invalidationReason().isEmpty()) {
908 return QDBusPendingReply<>(QDBusMessage::createError(
909 invalidationReason(),
910 invalidationMessage()
911 ));
912 }
913
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);
918 }
919
960 inline QDBusPendingReply<> RemoveRequest(const QDBusObjectPath& request, const QString& error, const QString& message, int timeout = -1)
961 {
962 if (!invalidationReason().isEmpty()) {
963 return QDBusPendingReply<>(QDBusMessage::createError(
964 invalidationReason(),
965 invalidationMessage()
966 ));
967 }
968
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);
973 }
974
975 protected:
976 virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
977 };
978
986 class TP_QT_EXPORT ClientObserverInterface : public Tp::AbstractInterface
987 {
988 Q_OBJECT
989
990 public:
997 static inline QLatin1String staticInterfaceName()
998 {
999 return QLatin1String("org.freedesktop.Telepathy.Client.Observer");
1000 }
1001
1009 ClientObserverInterface(
1010 const QString& busName,
1011 const QString& objectPath,
1012 QObject* parent = 0
1013 );
1014
1023 ClientObserverInterface(
1024 const QDBusConnection& connection,
1025 const QString& busName,
1026 const QString& objectPath,
1027 QObject* parent = 0
1028 );
1029
1036 ClientObserverInterface(Tp::DBusProxy *proxy);
1037
1045 explicit ClientObserverInterface(const Tp::Client::ClientInterface& mainInterface);
1046
1054 ClientObserverInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
1055
1148 inline Tp::PendingVariant *requestPropertyObserverChannelFilter() const
1149 {
1150 return internalRequestProperty(QLatin1String("ObserverChannelFilter"));
1151 }
1152
1194 inline Tp::PendingVariant *requestPropertyRecover() const
1195 {
1196 return internalRequestProperty(QLatin1String("Recover"));
1197 }
1198
1242 inline Tp::PendingVariant *requestPropertyDelayApprovers() const
1243 {
1244 return internalRequestProperty(QLatin1String("DelayApprovers"));
1245 }
1246
1253 Tp::PendingVariantMap *requestAllProperties() const
1254 {
1255 return internalRequestAllProperties();
1256 }
1257
1258 public Q_SLOTS:
1383 inline 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)
1384 {
1385 if (!invalidationReason().isEmpty()) {
1386 return QDBusPendingReply<>(QDBusMessage::createError(
1387 invalidationReason(),
1388 invalidationMessage()
1389 ));
1390 }
1391
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);
1396 }
1397
1398 protected:
1399 virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
1400 };
1401 }
1402 }
1403 Q_DECLARE_METATYPE(Tp::Client::ClientInterface*)
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*)
Tp::ChannelDetailsList
QList< ChannelDetails > ChannelDetailsList
Definition: build/TelepathyQt/_gen/types.h:820
Tp::Client::ClientApproverInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-client.h:251
Tp::Client::ClientInterfaceRequestsInterface::AddRequest
QDBusPendingReply AddRequest(const QDBusObjectPath &request, const QVariantMap &properties, int timeout=-1)
Definition: cli-client.h:905
Tp::Client::ClientObserverInterface::requestPropertyRecover
Tp::PendingVariant * requestPropertyRecover() const
Definition: cli-client.h:1194
Tp::Client::ClientHandlerInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-client.h:376
Tp::DBusProxy
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::Client::ClientInterface::requestPropertyInterfaces
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-client.h:118
Tp::Client::ClientHandlerInterface
Definition: cli-client.h:365
Tp::Client::ClientHandlerInterface::requestPropertyCapabilities
Tp::PendingVariant * requestPropertyCapabilities() const
Definition: cli-client.h:551
Tp::Client::ClientObserverInterface
Definition: cli-client.h:986
Tp::Client::ClientObserverInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-client.h:1253
Tp::Client::ClientApproverInterface::requestPropertyApproverChannelFilter
Tp::PendingVariant * requestPropertyApproverChannelFilter() const
Definition: cli-client.h:240
Tp::Client::ClientHandlerInterface::requestPropertyBypassApproval
Tp::PendingVariant * requestPropertyBypassApproval() const
Definition: cli-client.h:499
Tp::Client::ClientInterfaceRequestsInterface::RemoveRequest
QDBusPendingReply RemoveRequest(const QDBusObjectPath &request, const QString &error, const QString &message, int timeout=-1)
Definition: cli-client.h:960
Tp::Client::ClientApproverInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-client.h:156
Tp::Client::ClientObserverInterface::requestPropertyDelayApprovers
Tp::PendingVariant * requestPropertyDelayApprovers() const
Definition: cli-client.h:1242
Tp::Client::ClientApproverInterface
Definition: cli-client.h:145
Tp::AbstractInterface
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::Client::ClientHandlerInterface::HandleChannels
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
Tp::Client::ClientInterfaceRequestsInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-client.h:752
Tp::Client::ClientObserverInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-client.h:997
Tp::Client::ClientHandlerInterface::requestPropertyHandlerChannelFilter
Tp::PendingVariant * requestPropertyHandlerChannelFilter() const
Definition: cli-client.h:459
Tp::Client::ClientInterfaceRequestsInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-client.h:817
Tp::Client::ClientInterfaceRequestsInterface
Definition: cli-client.h:741
Tp::ObjectPathList
Definition: build/TelepathyQt/_gen/types.h:81
Tp::Client::ClientObserverInterface::ObserveChannels
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
Tp::PendingVariant
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::Client::ClientApproverInterface::AddDispatchOperation
QDBusPendingReply AddDispatchOperation(const Tp::ChannelDetailsList &channels, const QDBusObjectPath &dispatchOperation, const QVariantMap &properties, int timeout=-1)
Definition: cli-client.h:339
Tp::Client::ClientInterface
Definition: cli-client.h:44
Tp::Client::ClientHandlerInterface::requestPropertyHandledChannels
Tp::PendingVariant * requestPropertyHandledChannels() const
Definition: cli-client.h:593
Tp::Client::ClientObserverInterface::requestPropertyObserverChannelFilter
Tp::PendingVariant * requestPropertyObserverChannelFilter() const
Definition: cli-client.h:1148
Tp::Client::ClientHandlerInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-client.h:604
Tp::PendingVariantMap
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Tp::Client::ClientInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-client.h:55
Tp::Client::ClientInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-client.h:129