00001
00022 #ifndef _TelepathyQt_Farstream_channel_h_HEADER_GUARD_
00023 #define _TelepathyQt_Farstream_channel_h_HEADER_GUARD_
00024
00025 #ifndef IN_TP_QT_FARSTREAM_HEADER
00026 #error IN_TP_QT_FARSTREAM_HEADER
00027 #endif
00028
00029 #include <TelepathyQt/Farstream/Global>
00030 #include <TelepathyQt/Types>
00031
00032 #include <TelepathyQt/PendingOperation>
00033 #include <TelepathyQt/RefCounted>
00034
00035 typedef struct _TfChannel TfChannel;
00036
00037 namespace Tp
00038 {
00039 namespace Farstream
00040 {
00041
00042 class TP_QT_FS_EXPORT PendingChannel : public Tp::PendingOperation
00043 {
00044 Q_OBJECT
00045 Q_DISABLE_COPY(PendingChannel)
00046
00047 public:
00048 ~PendingChannel();
00049
00050 TfChannel *tfChannel() const;
00051 CallChannelPtr callChannel() const;
00052
00053 private:
00054 TP_QT_FS_NO_EXPORT PendingChannel(const CallChannelPtr &channel);
00055
00056 friend PendingChannel *createChannel(const CallChannelPtr &channel);
00057
00058 struct Private;
00059 friend struct Private;
00060 Private *mPriv;
00061 };
00062
00063 TP_QT_FS_EXPORT PendingChannel *createChannel(const CallChannelPtr &channel);
00064
00065 }
00066 }
00067
00068 #endif