handled-channel-notifier.h Source File

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

handled-channel-notifier.h
1
23 #ifndef _TelepathyQt_handled_channel_notifier_h_HEADER_GUARD_
24 #define _TelepathyQt_handled_channel_notifier_h_HEADER_GUARD_
25
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29
30 #include <TelepathyQt/Channel>
31 #include <TelepathyQt/Types>
32
33 #include <QObject>
34
35 namespace Tp
36 {
37
38 class ChannelRequestHints;
39 class RequestTemporaryHandler;
40
41 class TP_QT_EXPORT HandledChannelNotifier : public QObject
42 {
43 Q_OBJECT
44 Q_DISABLE_COPY(HandledChannelNotifier)
45
46 public:
47 ~HandledChannelNotifier();
48
49 ChannelPtr channel() const;
50
51 Q_SIGNALS:
52 void handledAgain(const QDateTime &userActionTime, const Tp::ChannelRequestHints &requestHints);
53
54 protected:
55 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
56 void connectNotify(const QMetaMethod &signal);
57 #else
58 void connectNotify(const char *signal);
59 #endif
60
61 private Q_SLOTS:
62 TP_QT_NO_EXPORT void onChannelReceived(const Tp::ChannelPtr &channel,
63 const QDateTime &userActionTime, const Tp::ChannelRequestHints &requestHints);
64 TP_QT_NO_EXPORT void onChannelInvalidated();
65
66 private:
67 friend class PendingChannel;
68
69 HandledChannelNotifier(const ClientRegistrarPtr &cr,
70 const SharedPtr<RequestTemporaryHandler> &handler);
71
72 struct Private;
73 friend struct Private;
74 Private *mPriv;
75 };
76
77 } // Tp
78
79 #endif
Tp::HandledChannelNotifier
The HandledChannelNotifier class can be used to keep track of channel() being re-requested.
Definition: handled-channel-notifier.h:41
Tp::ChannelRequestHints
The ChannelRequestHints class represents a dictionary of metadata provided by the channel requester w...
Definition: channel-request.h:121
Tp::SharedPtr< RequestTemporaryHandler >
Tp::PendingChannel
The PendingChannel class represents the parameters of and the reply to an asynchronous channel reques...
Definition: pending-channel.h:44