Home · All Classes · All Namespaces · Modules · Functions · Files
pending-channel-request.h
1 
23 #ifndef _TelepathyQt_pending_channel_request_h_HEADER_GUARD_
24 #define _TelepathyQt_pending_channel_request_h_HEADER_GUARD_
25 
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29 
30 #include <TelepathyQt/Global>
31 #include <TelepathyQt/PendingOperation>
32 #include <TelepathyQt/Types>
33 
34 #include <QDateTime>
35 #include <QString>
36 #include <QVariantMap>
37 
38 class QDBusPendingCallWatcher;
39 
40 namespace Tp
41 {
42 
43 class Account;
44 class ChannelRequestHints;
45 
46 class TP_QT_EXPORT PendingChannelRequest : public PendingOperation
47 {
48  Q_OBJECT
49  Q_DISABLE_COPY(PendingChannelRequest)
50 
51 public:
53 
54  AccountPtr account() const;
55 
56  ChannelRequestPtr channelRequest() const;
57 
58  PendingOperation *cancel();
59 
60 Q_SIGNALS:
61  void channelRequestCreated(const Tp::ChannelRequestPtr &channelRequest);
62 
63 private Q_SLOTS:
64  TP_QT_NO_EXPORT void onWatcherFinished(QDBusPendingCallWatcher *watcher);
65  TP_QT_NO_EXPORT void onProceedOperationFinished(Tp::PendingOperation *op);
66  TP_QT_NO_EXPORT void onCancelOperationFinished(Tp::PendingOperation *op);
67 
68 private:
69  friend class Account;
70 
71  TP_QT_NO_EXPORT PendingChannelRequest(const AccountPtr &account,
72  const QVariantMap &requestedProperties, const QDateTime &userActionTime,
73  const QString &preferredHandler, bool create, const ChannelRequestHints &hints);
74  TP_QT_NO_EXPORT PendingChannelRequest(const AccountPtr &account,
75  const QString &errorName, const QString &errorMessage);
76 
77  struct Private;
78  friend struct Private;
79  Private *mPriv;
80 };
81 
82 } // Tp
83 
84 #endif
The ChannelRequestHints class represents a dictionary of metadata provided by the channel requester w...
Definition: channel-request.h:121
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
The PendingChannelRequest class represents the parameters of and the reply to an asynchronous Channel...
Definition: pending-channel-request.h:46
The Account class represents a Telepathy account.
Definition: account.h:68


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.6.1