00001 00008 #ifndef CETONRECORDER_H_ 00009 #define CETONRECORDER_H_ 00010 00011 // Qt includes 00012 #include <QString> 00013 00014 // MythTV includes 00015 #include "dtvrecorder.h" 00016 00017 class CetonChannel; 00018 class CetonStreamHandler; 00019 00020 class CetonRecorder : public DTVRecorder 00021 { 00022 public: 00023 CetonRecorder(TVRec *rec, CetonChannel *channel); 00024 00025 void run(void); 00026 00027 bool Open(void); 00028 void Close(void); 00029 00030 bool IsOpen(void) const { return _stream_handler; } 00031 00032 QString GetSIStandard(void) const; 00033 00034 private: 00035 void ReaderPaused(int fd); 00036 bool PauseAndWait(int timeout = 100); 00037 00038 private: 00039 CetonChannel *_channel; 00040 CetonStreamHandler *_stream_handler; 00041 }; 00042 00043 #endif
1.6.3