1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00
vdr/sections.h

46 lines
1014 B
C
Raw Normal View History

/*
* sections.h: Section data handling
*
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: sections.h 1.1 2003/12/21 14:37:00 kls Exp $
*/
#ifndef __SECTIONS_H
#define __SECTIONS_H
#include "filter.h"
#include "thread.h"
#include "tools.h"
class cDevice;
class cFilterHandle;
class cSectionHandler : public cThread {
friend class cFilter;
private:
cDevice *device;
bool active;
int source;
int transponder;
int statusCount;
bool on;
cList<cFilter> filters;
cList<cFilterHandle> filterHandles;
void Add(const cFilterData *FilterData);
void Del(const cFilterData *FilterData);
virtual void Action(void);
public:
cSectionHandler(cDevice *Device);
virtual ~cSectionHandler();
int Source(void) { return source; }
int Transponder(void) { return transponder; }
void Attach(cFilter *Filter);
void Detach(cFilter *Filter);
void SetSource(int Source, int Transponder);
void SetStatus(bool On);
};
#endif //__SECTIONS_H