00001 00002 00003 #ifndef _ASI_CHANNEL_H_ 00004 #define _ASI_CHANNEL_H_ 00005 00006 #include <vector> 00007 using namespace std; 00008 00009 // Qt headers 00010 #include <QString> 00011 00012 // MythTV headers 00013 #include "dtvchannel.h" 00014 00015 class ASIStreamHandler; 00016 class ASIChannel; 00017 00018 class ASIChannel : public DTVChannel 00019 { 00020 public: 00021 ASIChannel(TVRec *parent, const QString &device); 00022 ~ASIChannel(void); 00023 00024 // Commands 00025 virtual bool Open(void); 00026 virtual void Close(void); 00027 virtual bool Tune(const DTVMultiplex&, QString) { return true; } 00028 virtual bool Tune(const QString&, int) { return true; } 00029 virtual bool Tune(uint64_t, QString) { return true; } 00030 00031 // Gets 00032 virtual bool IsOpen(void) const { return m_isopen; } 00033 virtual QString GetDevice(void) const { return m_device; } 00034 virtual vector<DTVTunerType> GetTunerTypes(void) const 00035 { return m_tuner_types; } 00036 virtual bool IsPIDTuningSupported(void) const { return true; } 00037 00038 private: 00039 vector<DTVTunerType> m_tuner_types; 00040 QString m_device; 00041 bool m_isopen; 00042 }; 00043 00044 #endif // _ASI_CHANNEL_H_
1.6.3