Home · Modules · All Classes · All Namespaces
cli-channel-dispatcher.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 
45 {
46  Q_OBJECT
47 
48 public:
55  static inline QLatin1String staticInterfaceName()
56  {
57  return QLatin1String("org.freedesktop.Telepathy.ChannelDispatcher");
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 
106  {
107  return internalRequestProperty(QLatin1String("Interfaces"));
108  }
109 
124  {
125  return internalRequestProperty(QLatin1String("SupportsRequestHints"));
126  }
127 
135  {
136  return internalRequestAllProperties();
137  }
138 
139 public Q_SLOTS:
197  inline QDBusPendingReply<QDBusObjectPath> CreateChannel(const QDBusObjectPath& account, const QVariantMap& requestedProperties, qlonglong userActionTime, const QString& preferredHandler, int timeout = -1)
198  {
199  if (!invalidationReason().isEmpty()) {
200  return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
201  invalidationReason(),
202  invalidationMessage()
203  ));
204  }
205 
206  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
207  this->staticInterfaceName(), QLatin1String("CreateChannel"));
208  callMessage << QVariant::fromValue(account) << QVariant::fromValue(requestedProperties) << QVariant::fromValue(userActionTime) << QVariant::fromValue(preferredHandler);
209  return this->connection().asyncCall(callMessage, timeout);
210  }
211 
267  inline QDBusPendingReply<QDBusObjectPath> EnsureChannel(const QDBusObjectPath& account, const QVariantMap& requestedProperties, qlonglong userActionTime, const QString& preferredHandler, int timeout = -1)
268  {
269  if (!invalidationReason().isEmpty()) {
270  return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
271  invalidationReason(),
272  invalidationMessage()
273  ));
274  }
275 
276  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
277  this->staticInterfaceName(), QLatin1String("EnsureChannel"));
278  callMessage << QVariant::fromValue(account) << QVariant::fromValue(requestedProperties) << QVariant::fromValue(userActionTime) << QVariant::fromValue(preferredHandler);
279  return this->connection().asyncCall(callMessage, timeout);
280  }
281 
414  inline QDBusPendingReply<QDBusObjectPath> CreateChannelWithHints(const QDBusObjectPath& account, const QVariantMap& requestedProperties, qlonglong userActionTime, const QString& preferredHandler, const QVariantMap& hints, int timeout = -1)
415  {
416  if (!invalidationReason().isEmpty()) {
417  return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
418  invalidationReason(),
419  invalidationMessage()
420  ));
421  }
422 
423  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
424  this->staticInterfaceName(), QLatin1String("CreateChannelWithHints"));
425  callMessage << QVariant::fromValue(account) << QVariant::fromValue(requestedProperties) << QVariant::fromValue(userActionTime) << QVariant::fromValue(preferredHandler) << QVariant::fromValue(hints);
426  return this->connection().asyncCall(callMessage, timeout);
427  }
428 
534  inline QDBusPendingReply<QDBusObjectPath> EnsureChannelWithHints(const QDBusObjectPath& account, const QVariantMap& requestedProperties, qlonglong userActionTime, const QString& preferredHandler, const QVariantMap& hints, int timeout = -1)
535  {
536  if (!invalidationReason().isEmpty()) {
537  return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
538  invalidationReason(),
539  invalidationMessage()
540  ));
541  }
542 
543  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
544  this->staticInterfaceName(), QLatin1String("EnsureChannelWithHints"));
545  callMessage << QVariant::fromValue(account) << QVariant::fromValue(requestedProperties) << QVariant::fromValue(userActionTime) << QVariant::fromValue(preferredHandler) << QVariant::fromValue(hints);
546  return this->connection().asyncCall(callMessage, timeout);
547  }
548 
628  inline QDBusPendingReply<Tp::ObjectPathList, Tp::NotDelegatedMap> DelegateChannels(const Tp::ObjectPathList& channels, qlonglong userActionTime, const QString& preferredHandler, int timeout = -1)
629  {
630  if (!invalidationReason().isEmpty()) {
631  return QDBusPendingReply<Tp::ObjectPathList, Tp::NotDelegatedMap>(QDBusMessage::createError(
632  invalidationReason(),
633  invalidationMessage()
634  ));
635  }
636 
637  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
638  this->staticInterfaceName(), QLatin1String("DelegateChannels"));
639  callMessage << QVariant::fromValue(channels) << QVariant::fromValue(userActionTime) << QVariant::fromValue(preferredHandler);
640  return this->connection().asyncCall(callMessage, timeout);
641  }
642 
678  inline QDBusPendingReply<> PresentChannel(const QDBusObjectPath& channel, qlonglong userActionTime, int timeout = -1)
679  {
680  if (!invalidationReason().isEmpty()) {
681  return QDBusPendingReply<>(QDBusMessage::createError(
682  invalidationReason(),
683  invalidationMessage()
684  ));
685  }
686 
687  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
688  this->staticInterfaceName(), QLatin1String("PresentChannel"));
689  callMessage << QVariant::fromValue(channel) << QVariant::fromValue(userActionTime);
690  return this->connection().asyncCall(callMessage, timeout);
691  }
692 
693 protected:
694  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
695 };
696 
705 {
706  Q_OBJECT
707 
708 public:
715  static inline QLatin1String staticInterfaceName()
716  {
717  return QLatin1String("org.freedesktop.Telepathy.ChannelDispatcher.Interface.Messages1");
718  }
719 
728  const QString& busName,
729  const QString& objectPath,
730  QObject* parent = 0
731  );
732 
742  const QDBusConnection& connection,
743  const QString& busName,
744  const QString& objectPath,
745  QObject* parent = 0
746  );
747 
755 
764 
773 
781  {
782  return internalRequestAllProperties();
783  }
784 
785 public Q_SLOTS:
873  inline QDBusPendingReply<QString> SendMessage(const QDBusObjectPath& account, const QString& targetID, const Tp::MessagePartList& message, uint flags, int timeout = -1)
874  {
875  if (!invalidationReason().isEmpty()) {
876  return QDBusPendingReply<QString>(QDBusMessage::createError(
877  invalidationReason(),
878  invalidationMessage()
879  ));
880  }
881 
882  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
883  this->staticInterfaceName(), QLatin1String("SendMessage"));
884  callMessage << QVariant::fromValue(account) << QVariant::fromValue(targetID) << QVariant::fromValue(message) << QVariant::fromValue(flags);
885  return this->connection().asyncCall(callMessage, timeout);
886  }
887 
888 protected:
889  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
890 };
891 }
892 }
893 Q_DECLARE_METATYPE(Tp::Client::ChannelDispatcherInterface*)
QDBusPendingReply< QDBusObjectPath > CreateChannel(const QDBusObjectPath &account, const QVariantMap &requestedProperties, qlonglong userActionTime, const QString &preferredHandler, int timeout=-1)
Definition: cli-channel-dispatcher.h:197
QDBusPendingReply< QString > SendMessage(const QDBusObjectPath &account, const QString &targetID, const Tp::MessagePartList &message, uint flags, int timeout=-1)
Definition: cli-channel-dispatcher.h:873
QList< MessagePart > MessagePartList
Definition: build/TelepathyQt/_gen/types.h:2068
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-channel-dispatcher.h:780
static QLatin1String staticInterfaceName()
Definition: cli-channel-dispatcher.h:715
QDBusPendingReply< Tp::ObjectPathList, Tp::NotDelegatedMap > DelegateChannels(const Tp::ObjectPathList &channels, qlonglong userActionTime, const QString &preferredHandler, int timeout=-1)
Definition: cli-channel-dispatcher.h:628
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-channel-dispatcher.h:134
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
static QLatin1String staticInterfaceName()
Definition: cli-channel-dispatcher.h:55
Definition: cli-channel-dispatcher.h:704
QDBusPendingReply< QDBusObjectPath > EnsureChannelWithHints(const QDBusObjectPath &account, const QVariantMap &requestedProperties, qlonglong userActionTime, const QString &preferredHandler, const QVariantMap &hints, int timeout=-1)
Definition: cli-channel-dispatcher.h:534
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-channel-dispatcher.h:105
Tp::PendingVariant * requestPropertySupportsRequestHints() const
Definition: cli-channel-dispatcher.h:123
QDBusPendingReply PresentChannel(const QDBusObjectPath &channel, qlonglong userActionTime, int timeout=-1)
Definition: cli-channel-dispatcher.h:678
QDBusPendingReply< QDBusObjectPath > CreateChannelWithHints(const QDBusObjectPath &account, const QVariantMap &requestedProperties, qlonglong userActionTime, const QString &preferredHandler, const QVariantMap &hints, int timeout=-1)
Definition: cli-channel-dispatcher.h:414
Definition: build/TelepathyQt/_gen/types.h:85
Definition: cli-channel-dispatcher.h:44
QDBusPendingReply< QDBusObjectPath > EnsureChannel(const QDBusObjectPath &account, const QVariantMap &requestedProperties, qlonglong userActionTime, const QString &preferredHandler, int timeout=-1)
Definition: cli-channel-dispatcher.h:267
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
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