2007-09-29 01:23:12 +02:00
|
|
|
/*
|
2007-10-01 20:14:57 +02:00
|
|
|
* sidscanner.h: IPTV plugin for the Video Disk Recorder
|
2007-09-29 01:23:12 +02:00
|
|
|
*
|
|
|
|
* See the README file for copyright information and how to reach the author.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2007-10-01 20:14:57 +02:00
|
|
|
#ifndef __SIDSCANNER_H
|
|
|
|
#define __SIDSCANNER_H
|
2007-09-29 01:23:12 +02:00
|
|
|
|
|
|
|
#include <vdr/channels.h>
|
|
|
|
#include <vdr/filter.h>
|
|
|
|
|
2007-10-01 20:14:57 +02:00
|
|
|
class cSidScanner : public cFilter {
|
2007-09-29 01:23:12 +02:00
|
|
|
private:
|
2010-11-29 20:09:17 +01:00
|
|
|
tChannelID channelId;
|
2010-07-02 14:54:32 +02:00
|
|
|
bool sidFound;
|
|
|
|
bool nidFound;
|
|
|
|
bool tidFound;
|
2007-09-29 01:23:12 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length);
|
2009-03-20 23:56:37 +01:00
|
|
|
virtual void SetStatus(bool On);
|
2007-09-29 01:23:12 +02:00
|
|
|
|
|
|
|
public:
|
2007-10-01 20:14:57 +02:00
|
|
|
cSidScanner(void);
|
2010-11-29 20:09:17 +01:00
|
|
|
~cSidScanner();
|
|
|
|
void SetChannel(const tChannelID &ChannelId);
|
2009-03-20 23:56:37 +01:00
|
|
|
void Open() { SetStatus(true); }
|
|
|
|
void Close() { SetStatus(false); }
|
2007-09-29 01:23:12 +02:00
|
|
|
};
|
|
|
|
|
2007-10-01 20:14:57 +02:00
|
|
|
#endif // __SIDSCANNER_H
|