00001 00007 #ifndef HDHOMERUNCHANNEL_H 00008 #define HDHOMERUNCHANNEL_H 00009 00010 // Qt headers 00011 #include <QString> 00012 00013 // MythTV headers 00014 #include "dtvchannel.h" 00015 00016 class HDHRChannel; 00017 class HDHRStreamHandler; 00018 class ProgramMapTable; 00019 00020 class HDHRChannel : public DTVChannel 00021 { 00022 friend class HDHRSignalMonitor; 00023 friend class HDHRRecorder; 00024 00025 public: 00026 HDHRChannel(TVRec *parent, const QString &device); 00027 ~HDHRChannel(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 virtual bool IsMaster(void) const; 00039 00040 // Sets 00041 virtual bool SetChannelByString(const QString &channum); 00042 00043 // ATSC/DVB scanning/tuning stuff 00044 bool Tune(const DTVMultiplex &tuning, QString inputname); 00045 00046 // Virtual tuning 00047 bool Tune(const QString &freqid, int /*finetune*/); 00048 00049 private: 00050 QString _device_id; 00051 HDHRStreamHandler *_stream_handler; 00052 vector<DTVTunerType> _tuner_types; 00053 }; 00054 00055 #endif
1.6.3