summaryrefslogtreecommitdiff
path: root/sections.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-12-22 13:29:24 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2003-12-22 13:29:24 +0100
commit7ff59171e3f907a5584b72f0f8588ed65f22c0bd (patch)
tree801b1b65840c50a4f1d8abea806fa5c180051df1 /sections.h
parent84b99ea81095f421ec049dd6b5bd5f0f2fe679c1 (diff)
downloadvdr-7ff59171e3f907a5584b72f0f8588ed65f22c0bd.tar.gz
vdr-7ff59171e3f907a5584b72f0f8588ed65f22c0bd.tar.bz2
Changed section handling; replaced 'libdtv' with 'libsi'
Diffstat (limited to 'sections.h')
-rw-r--r--sections.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/sections.h b/sections.h
new file mode 100644
index 00000000..1f4f462b
--- /dev/null
+++ b/sections.h
@@ -0,0 +1,45 @@
+/*
+ * 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