23 #ifndef _TelepathyQt_channel_dispatch_operation_h_HEADER_GUARD_ 24 #define _TelepathyQt_channel_dispatch_operation_h_HEADER_GUARD_ 26 #ifndef IN_TP_QT_HEADER 27 #error IN_TP_QT_HEADER 30 #include <TelepathyQt/_gen/cli-channel-dispatch-operation.h> 32 #include <TelepathyQt/Constants> 33 #include <TelepathyQt/DBus> 34 #include <TelepathyQt/DBusProxy> 35 #include <TelepathyQt/Feature> 36 #include <TelepathyQt/OptionalInterfaceFactory> 37 #include <TelepathyQt/ReadinessHelper> 38 #include <TelepathyQt/Types> 39 #include <TelepathyQt/SharedPtr> 42 #include <QStringList> 43 #include <QVariantMap> 48 class PendingOperation;
59 static ChannelDispatchOperationPtr create(
const QDBusConnection &bus,
60 const QString &objectPath,
const QVariantMap &immutableProperties,
61 const QList<ChannelPtr> &initialChannels,
62 const AccountFactoryConstPtr &accountFactory,
63 const ConnectionFactoryConstPtr &connectionFactory,
64 const ChannelFactoryConstPtr &channelFactory,
65 const ContactFactoryConstPtr &contactFactory);
68 ConnectionPtr connection()
const;
70 AccountPtr account()
const;
72 QList<ChannelPtr> channels()
const;
74 QStringList possibleHandlers()
const;
82 void channelLost(
const Tp::ChannelPtr &channel,
const QString &errorName,
83 const QString &errorMessage);
87 const QString &objectPath,
const QVariantMap &immutableProperties,
88 const QList<ChannelPtr> &initialChannels,
89 const AccountFactoryConstPtr &accountFactory,
90 const ConnectionFactoryConstPtr &connectionFactory,
91 const ChannelFactoryConstPtr &channelFactory,
92 const ContactFactoryConstPtr &contactFactory);
97 TP_QT_NO_EXPORT
void onFinished();
98 TP_QT_NO_EXPORT
void gotMainProperties(QDBusPendingCallWatcher *watcher);
99 TP_QT_NO_EXPORT
void onChannelLost(
const QDBusObjectPath &channelObjectPath,
100 const QString &errorName,
const QString &errorMessage);
105 friend class PendingClaim;
108 friend struct Private;
The StatefulDBusProxy class is a base class representing a remote object whose API is stateful.
Definition: dbus-proxy.h:96
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
static const Feature FeatureCore
Definition: channel-dispatch-operation.h:57
The OptionalInterfaceFactory class is a helper class for high-level D-Bus proxy classes willing to of...
Definition: optional-interface-factory.h:65
Definition: cli-channel-dispatch-operation.h:44
The ChannelDispatchOperation class represents a Telepathy channel dispatch operation.
Definition: channel-dispatch-operation.h:50
Definition: abstract-adaptor.cpp:31
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45