00001 00007 #ifndef _IPTV_CHANNEL_H_ 00008 #define _IPTV_CHANNEL_H_ 00009 00010 #include "dtvchannel.h" 00011 #include "iptvchannelinfo.h" 00012 00013 #include <qmutex.h> 00014 00015 class IPTVFeederWrapper; 00016 00017 class IPTVChannel : public DTVChannel 00018 { 00019 public: 00020 IPTVChannel(TVRec *parent, const QString &videodev); 00021 ~IPTVChannel(); 00022 00023 bool Open(void); 00024 void Close(void); 00025 00026 bool IsOpen(void) const; 00027 00028 bool SetChannelByString(const QString &channum); 00029 bool TuneMultiplex(uint /*mplexid*/, QString /*sourceid*/) 00030 { return false; } // TODO 00031 bool Tune(const DTVMultiplex &/*tuning*/, QString /*inputname*/) 00032 { return false; } // TODO 00033 00034 IPTVChannelInfo GetCurrentChanInfo(void) const 00035 { return GetChanInfo(curchannelname); } 00036 00037 IPTVFeederWrapper *GetFeeder(void) { return m_feeder; } 00038 const IPTVFeederWrapper *GetFeeder(void) const { return m_feeder; } 00039 00040 private: 00041 IPTVChannelInfo GetChanInfo( 00042 const QString &channum, uint sourceid = 0) const; 00043 00044 QString m_videodev; 00045 fbox_chan_map_t m_freeboxchannels; 00046 IPTVFeederWrapper *m_feeder; 00047 mutable QMutex m_lock; 00048 00049 private: 00050 IPTVChannel &operator=(const IPTVChannel&); //< avoid default impl 00051 IPTVChannel(const IPTVChannel&); //< avoid default impl 00052 IPTVChannel(); //< avoid default impl 00053 }; 00054 00055 #endif // _IPTV_CHANNEL_H_ 00056 00057 /* vim: set expandtab tabstop=4 shiftwidth=4: */
1.5.5