cli-channel-dispatcher.h Source File

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

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
44 class TP_QT_EXPORT ChannelDispatcherInterface : public Tp::AbstractInterface
45 {
46 Q_OBJECT
47
48 public:
55 static inline QLatin1String staticInterfaceName()
56 {
57 return QLatin1String("org.freedesktop.Telepathy.ChannelDispatcher");
58 }
59
67 ChannelDispatcherInterface(
68 const QString& busName,
69 const QString& objectPath,
70 QObject* parent = 0
71 );
72
81 ChannelDispatcherInterface(
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
85 QObject* parent = 0
86 );
87
94 ChannelDispatcherInterface(Tp::DBusProxy *proxy);
95
105 inline Tp::PendingVariant *requestPropertyInterfaces() const
106 {
107 return internalRequestProperty(QLatin1String("Interfaces"));
108 }
109
123 inline Tp::PendingVariant *requestPropertySupportsRequestHints() const
124 {
125 return internalRequestProperty(QLatin1String("SupportsRequestHints"));
126 }
127
134 Tp::PendingVariantMap *requestAllProperties() const
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
704 class TP_QT_EXPORT ChannelDispatcherInterfaceMessages1Interface : public Tp::AbstractInterface
705 {
706 Q_OBJECT
707
708 public:
715 static inline QLatin1String staticInterfaceName()
716 {
717 return QLatin1String("org.freedesktop.Telepathy.ChannelDispatcher.Interface.Messages1");
718 }
719
727 ChannelDispatcherInterfaceMessages1Interface(
728 const QString& busName,
729 const QString& objectPath,
730 QObject* parent = 0
731 );
732
741 ChannelDispatcherInterfaceMessages1Interface(
742 const QDBusConnection& connection,
743 const QString& busName,
744 const QString& objectPath,
745 QObject* parent = 0
746 );
747
754 ChannelDispatcherInterfaceMessages1Interface(Tp::DBusProxy *proxy);
755
763 explicit ChannelDispatcherInterfaceMessages1Interface(const Tp::Client::ChannelDispatcherInterface& mainInterface);
764
772 ChannelDispatcherInterfaceMessages1Interface(const Tp::Client::ChannelDispatcherInterface& mainInterface, QObject* parent);
773
780 Tp::PendingVariantMap *requestAllProperties() const
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*)
894 Q_DECLARE_METATYPE(Tp::Client::ChannelDispatcherInterfaceMessages1Interface*)
Tp::Client::ChannelDispatcherInterfaceMessages1Interface::SendMessage
QDBusPendingReply< QString > SendMessage(const QDBusObjectPath &account, const QString &targetID, const Tp::MessagePartList &message, uint flags, int timeout=-1)
Definition: cli-channel-dispatcher.h:873
Tp::Client::ChannelDispatcherInterface::CreateChannelWithHints
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
Tp::Client::ChannelDispatcherInterface::EnsureChannel
QDBusPendingReply< QDBusObjectPath > EnsureChannel(const QDBusObjectPath &account, const QVariantMap &requestedProperties, qlonglong userActionTime, const QString &preferredHandler, int timeout=-1)
Definition: cli-channel-dispatcher.h:267
Tp::DBusProxy
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::Client::ChannelDispatcherInterface::requestPropertySupportsRequestHints
Tp::PendingVariant * requestPropertySupportsRequestHints() const
Definition: cli-channel-dispatcher.h:123
Tp::Client::ChannelDispatcherInterface::CreateChannel
QDBusPendingReply< QDBusObjectPath > CreateChannel(const QDBusObjectPath &account, const QVariantMap &requestedProperties, qlonglong userActionTime, const QString &preferredHandler, int timeout=-1)
Definition: cli-channel-dispatcher.h:197
Tp::Client::ChannelDispatcherInterfaceMessages1Interface
Definition: cli-channel-dispatcher.h:704
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::ChannelDispatcherInterface::DelegateChannels
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::Client::ChannelDispatcherInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-channel-dispatcher.h:134
Tp::MessagePartList
QList< MessagePart > MessagePartList
Definition: build/TelepathyQt/_gen/types.h:2031
Tp::Client::ChannelDispatcherInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-channel-dispatcher.h:55
Tp::ObjectPathList
Definition: build/TelepathyQt/_gen/types.h:81
Tp::Client::ChannelDispatcherInterfaceMessages1Interface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-channel-dispatcher.h:780
Tp::Client::ChannelDispatcherInterface
Definition: cli-channel-dispatcher.h:44
Tp::PendingVariant
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::Client::ChannelDispatcherInterface::EnsureChannelWithHints
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::Client::ChannelDispatcherInterface::PresentChannel
QDBusPendingReply PresentChannel(const QDBusObjectPath &channel, qlonglong userActionTime, int timeout=-1)
Definition: cli-channel-dispatcher.h:678
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::ChannelDispatcherInterfaceMessages1Interface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-channel-dispatcher.h:715
Tp::Client::ChannelDispatcherInterface::requestPropertyInterfaces
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-channel-dispatcher.h:105