Home · Modules · All Classes · All Namespaces
Farstream/channel.h
1 
22 #ifndef _TelepathyQt_Farstream_channel_h_HEADER_GUARD_
23 #define _TelepathyQt_Farstream_channel_h_HEADER_GUARD_
24 
25 #ifndef IN_TP_QT_FARSTREAM_HEADER
26 #error IN_TP_QT_FARSTREAM_HEADER
27 #endif
28 
29 #include <TelepathyQt/Farstream/Global>
30 #include <TelepathyQt/Types>
31 
32 #include <TelepathyQt/PendingOperation>
33 #include <TelepathyQt/RefCounted>
34 
35 typedef struct _TfChannel TfChannel;
36 
37 namespace Tp
38 {
39 namespace Farstream
40 {
41 
42 class TP_QT_FS_EXPORT PendingChannel : public Tp::PendingOperation
43 {
44  Q_OBJECT
45  Q_DISABLE_COPY(PendingChannel)
46 
47 public:
48  ~PendingChannel();
49 
50  TfChannel *tfChannel() const;
51  CallChannelPtr callChannel() const;
52 
53 private:
54  TP_QT_FS_NO_EXPORT PendingChannel(const CallChannelPtr &channel);
55 
56  friend PendingChannel *createChannel(const CallChannelPtr &channel);
57 
58  struct Private;
59  friend struct Private;
60  Private *mPriv;
61 };
62 
63 TP_QT_FS_EXPORT PendingChannel *createChannel(const CallChannelPtr &channel);
64 
65 } // Farstream
66 } // Tp
67 
68 #endif
Definition: Farstream/channel.h:42
PendingChannel * createChannel(const CallChannelPtr &channel)
Definition: Farstream/channel.cpp:159
Definition: abstract-adaptor.cpp:31
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45