00001 00007 #ifndef _IPTV_FEEDER_UDP_H_ 00008 #define _IPTV_FEEDER_UDP_H_ 00009 00010 // MythTV headers 00011 #include "iptvfeederlive.h" 00012 00013 class BasicUDPSource; 00014 class IPTVMediaSink; 00015 00016 00017 class IPTVFeederUDP : public IPTVFeederLive 00018 { 00019 public: 00020 IPTVFeederUDP(); 00021 virtual ~IPTVFeederUDP(); 00022 00023 bool CanHandle(const QString &url) const { return IsUDP(url); } 00024 bool IsOpen(void) const { return _source; } 00025 00026 bool Open(const QString &url); 00027 void Close(void); 00028 00029 void AddListener(TSDataListener*); 00030 void RemoveListener(TSDataListener*); 00031 00032 static bool IsUDP(const QString &url); 00033 00034 private: 00035 BasicUDPSource *_source; 00036 IPTVMediaSink *_sink; 00037 }; 00038 00039 #endif // _IPTV_FEEDER_UDP_H_
1.6.3