00001 00008 #ifndef CETONCHANNEL_H 00009 #define CETONCHANNEL_H 00010 00011 // Qt headers 00012 #include <QString> 00013 00014 // MythTV headers 00015 #include "dtvchannel.h" 00016 00017 class CetonChannel; 00018 class CetonStreamHandler; 00019 00020 class CetonChannel : public DTVChannel 00021 { 00022 friend class CetonSignalMonitor; 00023 friend class CetonRecorder; 00024 00025 public: 00026 CetonChannel(TVRec *parent, const QString &device); 00027 ~CetonChannel(void); 00028 00029 bool Open(void); 00030 void Close(void); 00031 bool EnterPowerSavingMode(void); 00032 00033 // Gets 00034 bool IsOpen(void) const; 00035 QString GetDevice(void) const { return _device_id; } 00036 virtual vector<DTVTunerType> GetTunerTypes(void) const 00037 { return _tuner_types; } 00038 00039 // Sets 00040 virtual bool SetChannelByString(const QString &channum); 00041 00042 // ATSC/DVB scanning/tuning stuff 00043 bool Tune(const DTVMultiplex &tuning, QString inputname); 00044 00045 // Virtual tuning 00046 bool Tune(const QString &freqid, int /*finetune*/); 00047 00048 private: 00049 QString _device_id; 00050 CetonStreamHandler *_stream_handler; 00051 vector<DTVTunerType> _tuner_types; 00052 }; 00053 00054 #endif
1.6.3