1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 13:37:03 +02:00
vdr-plugin-iptv/sidscanner.h

36 lines
776 B
C
Raw Permalink Normal View History

2007-09-28 23:23:12 +00:00
/*
2007-10-01 18:14:57 +00:00
* sidscanner.h: IPTV plugin for the Video Disk Recorder
2007-09-28 23:23:12 +00:00
*
* See the README file for copyright information and how to reach the author.
*
*/
2007-10-01 18:14:57 +00:00
#ifndef __SIDSCANNER_H
#define __SIDSCANNER_H
2007-09-28 23:23:12 +00:00
#include <vdr/channels.h>
#include <vdr/filter.h>
2015-03-08 14:33:18 +02:00
#include "log.h"
2007-10-01 18:14:57 +00:00
class cSidScanner : public cFilter {
2007-09-28 23:23:12 +00:00
private:
2013-02-23 15:31:11 +02:00
tChannelID channelIdM;
bool sidFoundM;
bool nidFoundM;
bool tidFoundM;
2013-02-26 00:34:45 +02:00
bool isActiveM;
2007-09-28 23:23:12 +00:00
protected:
2013-02-23 15:31:11 +02:00
virtual void Process(u_short pidP, u_char tidP, const u_char *dataP, int lengthP);
2007-09-28 23:23:12 +00:00
public:
2007-10-01 18:14:57 +00:00
cSidScanner(void);
~cSidScanner();
2013-02-23 15:31:11 +02:00
void SetChannel(const tChannelID &channelIdP);
2015-03-08 14:33:18 +02:00
void Open() { debug1("%s", __PRETTY_FUNCTION__); isActiveM = true; }
void Close() { debug1("%s", __PRETTY_FUNCTION__); isActiveM = false; }
2007-09-28 23:23:12 +00:00
};
2007-10-01 18:14:57 +00:00
#endif // __SIDSCANNER_H