23 #ifndef _TelepathyQt_simple_stream_tube_handler_h_HEADER_GUARD_
24 #define _TelepathyQt_simple_stream_tube_handler_h_HEADER_GUARD_
26 #include <TelepathyQt/AbstractClientHandler>
27 #include <TelepathyQt/ChannelRequestHints>
28 #include <TelepathyQt/RefCounted>
29 #include <TelepathyQt/Types>
32 #include <QLinkedList>
40 class PendingOperation;
50 const QStringList &p2pServices,
51 const QStringList &roomServices,
53 bool monitorConnections,
54 bool bypassApproval =
false);
59 return mMonitorConnections;
64 return mBypassApproval;
67 void handleChannels(
const MethodInvocationContextPtr<> &context,
68 const AccountPtr &account,
69 const ConnectionPtr &connection,
70 const QList<ChannelPtr> &channels,
71 const QList<ChannelRequestPtr> &requestsSatisfied,
72 const QDateTime &userActionTime,
73 const HandlerInfo &handlerInfo);
77 const Tp::AccountPtr &account,
78 const Tp::StreamTubeChannelPtr &tube,
79 const QDateTime &userActionTime,
82 const Tp::AccountPtr &account,
83 const Tp::StreamTubeChannelPtr &tube,
84 const QString &errorName,
85 const QString &errorMessage);
89 void onTubeInvalidated(
Tp::DBusProxy *,
const QString &,
const QString &);
93 const QStringList &p2pServices,
94 const QStringList &roomServices,
96 bool monitorConnections,
99 bool mMonitorConnections;
102 InvocationData() : readyOp(0) {}
104 PendingOperation *readyOp;
105 QString error, message;
107 MethodInvocationContextPtr<> ctx;
109 QList<StreamTubeChannelPtr> tubes;
111 ChannelRequestHints hints;
113 QLinkedList<SharedPtr<InvocationData> > mInvocations;
114 QHash<StreamTubeChannelPtr, AccountPtr> mTubes;
115 bool mBypassApproval;
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
The ChannelRequestHints class represents a dictionary of metadata provided by the channel requester w...
Definition: channel-request.h:121
bool bypassApproval() const
Definition: simple-stream-tube-handler.h:62
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
The SharedPtr class is a pointer to an explicitly shared object.
Definition: shared-ptr.h:39
Definition: simple-stream-tube-handler.h:42
The RefCounted class is a base class for shared objects used by SharedPtr.
Definition: shared-ptr.h:42
The AbstractClientHandler class represents a Telepathy handler.
Definition: abstract-client.h:140
bool monitorsConnections() const
Definition: simple-stream-tube-handler.h:57