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 
68  const QString& busName,
69  const QString& objectPath,
70  QObject* parent = 0
71  );
72 
82  const QDBusConnection& connection,
83  const QString& busName,
84  const QString& objectPath,
85  QObject* parent = 0
86  );
87 
95 
119  {
120  return internalRequestProperty(QLatin1String("Interfaces"));
121  }
122 
130  {
131  return internalRequestAllProperties();
132  }
133 
134 protected:
135  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
136 };
137 
146 {
147  Q_OBJECT
148 
149 public:
156  static inline QLatin1String staticInterfaceName()
157  {
158  return QLatin1String("org.freedesktop.Telepathy.Client.Approver");
159  }
160 
169  const QString& busName,
170  const QString& objectPath,
171  QObject* parent = 0
172  );
173 
183  const QDBusConnection& connection,
184  const QString& busName,
185  const QString& objectPath,
186  QObject* parent = 0
187  );
188 
196 
204  explicit ClientApproverInterface(const Tp::Client::ClientInterface& mainInterface);
205 
213  ClientApproverInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
214 
241  {
242  return internalRequestProperty(QLatin1String("ApproverChannelFilter"));
243  }
244 
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 
366 {
367  Q_OBJECT
368 
369 public:
376  static inline QLatin1String staticInterfaceName()
377  {
378  return QLatin1String("org.freedesktop.Telepathy.Client.Handler");
379  }
380 
389  const QString& busName,
390  const QString& objectPath,
391  QObject* parent = 0
392  );
393 
403  const QDBusConnection& connection,
404  const QString& busName,
405  const QString& objectPath,
406  QObject* parent = 0
407  );
408 
416 
424  explicit ClientHandlerInterface(const Tp::Client::ClientInterface& mainInterface);
425 
433  ClientHandlerInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
434 
460  {
461  return internalRequestProperty(QLatin1String("HandlerChannelFilter"));
462  }
463 
500  {
501  return internalRequestProperty(QLatin1String("BypassApproval"));
502  }
503 
552  {
553  return internalRequestProperty(QLatin1String("Capabilities"));
554  }
555 
594  {
595  return internalRequestProperty(QLatin1String("HandledChannels"));
596  }
597 
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 
742 {
743  Q_OBJECT
744 
745 public:
752  static inline QLatin1String staticInterfaceName()
753  {
754  return QLatin1String("org.freedesktop.Telepathy.Client.Interface.Requests");
755  }
756 
765  const QString& busName,
766  const QString& objectPath,
767  QObject* parent = 0
768  );
769 
779  const QDBusConnection& connection,
780  const QString& busName,
781  const QString& objectPath,
782  QObject* parent = 0
783  );
784 
792 
800  explicit ClientInterfaceRequestsInterface(const Tp::Client::ClientInterface& mainInterface);
801 
809  ClientInterfaceRequestsInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
810 
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 
987 {
988  Q_OBJECT
989 
990 public:
997  static inline QLatin1String staticInterfaceName()
998  {
999  return QLatin1String("org.freedesktop.Telepathy.Client.Observer");
1000  }
1001 
1010  const QString& busName,
1011  const QString& objectPath,
1012  QObject* parent = 0
1013  );
1014 
1024  const QDBusConnection& connection,
1025  const QString& busName,
1026  const QString& objectPath,
1027  QObject* parent = 0
1028  );
1029 
1037 
1045  explicit ClientObserverInterface(const Tp::Client::ClientInterface& mainInterface);
1046 
1054  ClientObserverInterface(const Tp::Client::ClientInterface& mainInterface, QObject* parent);
1055 
1149  {
1150  return internalRequestProperty(QLatin1String("ObserverChannelFilter"));
1151  }
1152 
1195  {
1196  return internalRequestProperty(QLatin1String("Recover"));
1197  }
1198 
1243  {
1244  return internalRequestProperty(QLatin1String("DelayApprovers"));
1245  }
1246 
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*)
1407 Q_DECLARE_METATYPE(Tp::Client::ClientObserverInterface*)
Tp::PendingVariant * requestPropertyRecover() const
Definition: cli-client.h:1194
Tp::PendingVariant * requestPropertyApproverChannelFilter() const
Definition: cli-client.h:240
Tp::PendingVariant * requestPropertyHandledChannels() const
Definition: cli-client.h:593
static QLatin1String staticInterfaceName()
Definition: cli-client.h:752
Tp::PendingVariant * requestPropertyHandlerChannelFilter() const
Definition: cli-client.h:459
QList< ChannelDetails > ChannelDetailsList
Definition: build/TelepathyQt/_gen/types.h:829
Definition: build/TelepathyQt/_gen/types.h:84
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 AddDispatchOperation(const Tp::ChannelDetailsList &channels, const QDBusObjectPath &dispatchOperation, const QVariantMap &properties, int timeout=-1)
Definition: cli-client.h:339
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::PendingVariantMap * requestAllProperties() const
Definition: cli-client.h:604
Tp::PendingVariant * requestPropertyCapabilities() const
Definition: cli-client.h:551
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-client.h:118
Tp::PendingVariant * requestPropertyObserverChannelFilter() const
Definition: cli-client.h:1148
Definition: cli-client.h:44
static QLatin1String staticInterfaceName()
Definition: cli-client.h:376
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Definition: cli-client.h:145
static QLatin1String staticInterfaceName()
Definition: cli-client.h:55
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-client.h:129
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 * 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
Tp::PendingVariant * requestPropertyDelayApprovers() const
Definition: cli-client.h:1242
static QLatin1String staticInterfaceName()
Definition: cli-client.h:997
Definition: abstract-adaptor.cpp:31
Definition: cli-client.h:365
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-client.h:817
static QLatin1String staticInterfaceName()
Definition: cli-client.h:156
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-client.h:1253
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
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Definition: cli-client.h:986


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.7