summaryrefslogtreecommitdiff
path: root/sources.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-10-06 10:25:42 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-10-06 10:25:42 +0200
commit962596f4abc3790ac0f3f317079a3362210fff8f (patch)
treeb9428aea092f90731b389604fcc8540070dbf556 /sources.h
parentb7615a7ae144789da14d32019b2f86fc4bf6dcef (diff)
downloadvdr-962596f4abc3790ac0f3f317079a3362210fff8f.tar.gz
vdr-962596f4abc3790ac0f3f317079a3362210fff8f.tar.bz2
Modified channel handling; full DiSEqC support
Diffstat (limited to 'sources.h')
-rw-r--r--sources.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/sources.h b/sources.h
new file mode 100644
index 00000000..65d1bd6e
--- /dev/null
+++ b/sources.h
@@ -0,0 +1,45 @@
+/*
+ * sources.h: Source handling
+ *
+ * See the main source file 'vdr.c' for copyright information and
+ * how to reach the author.
+ *
+ * $Id: sources.h 1.1 2002/10/04 14:25:03 kls Exp $
+ */
+
+#ifndef __SOURCES_H
+#define __SOURCES_H
+
+#include "config.h"
+
+class cSource : public cListObject {
+public:
+ enum eSourceType {
+ stNone = 0x0000,
+ stCable = 0x4000,
+ stSat = 0x8000,
+ stTerr = 0xC000,
+ st_Mask = 0xC000,
+ st_Neg = 0x0800,
+ };
+private:
+ int code;
+ char *description;
+public:
+ cSource(void);
+ ~cSource();
+ int Code(void) const { return code; }
+ const char *Description(void) const { return description; }
+ bool Parse(const char *s);
+ static const char *ToString(int Code);
+ static int FromString(const char *s);
+ };
+
+class cSources : public cConfig<cSource> {
+public:
+ cSource *Get(int Code);
+ };
+
+extern cSources Sources;
+
+#endif //__SOURCES_H