summaryrefslogtreecommitdiff
path: root/dvbdevice.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-02-28 12:19:50 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-02-28 12:19:50 +0100
commit1eb033576f1829b4466ac27825af91e662e7b17f (patch)
treee02d623302de293070fe381db71f712207372606 /dvbdevice.h
parentd255ad785d7a9f258097e6bba55c950d516b6a67 (diff)
downloadvdr-1eb033576f1829b4466ac27825af91e662e7b17f.tar.gz
vdr-1eb033576f1829b4466ac27825af91e662e7b17f.tar.bz2
Added plugin-defined sources
Diffstat (limited to 'dvbdevice.h')
-rw-r--r--dvbdevice.h67
1 files changed, 66 insertions, 1 deletions
diff --git a/dvbdevice.h b/dvbdevice.h
index 4f7c6e57..dceedd13 100644
--- a/dvbdevice.h
+++ b/dvbdevice.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbdevice.h 2.12 2010/02/06 14:36:24 kls Exp $
+ * $Id: dvbdevice.h 2.13 2010/02/21 14:06:08 kls Exp $
*/
#ifndef __DVBDEVICE_H
@@ -31,6 +31,71 @@
#define DEV_DVB_AUDIO "audio"
#define DEV_DVB_CA "ca"
+struct tDvbParameterMap {
+ int userValue;
+ int driverValue;
+ const char *userString;
+ };
+
+int MapToUser(int Value, const tDvbParameterMap *Map, const char **String = NULL);
+int MapToDriver(int Value, const tDvbParameterMap *Map);
+int UserIndex(int Value, const tDvbParameterMap *Map);
+int DriverIndex(int Value, const tDvbParameterMap *Map);
+
+extern const tDvbParameterMap InversionValues[];
+extern const tDvbParameterMap BandwidthValues[];
+extern const tDvbParameterMap CoderateValues[];
+extern const tDvbParameterMap ModulationValues[];
+extern const tDvbParameterMap SystemValues[];
+extern const tDvbParameterMap TransmissionValues[];
+extern const tDvbParameterMap GuardValues[];
+extern const tDvbParameterMap HierarchyValues[];
+extern const tDvbParameterMap RollOffValues[];
+
+class cDvbTransponderParameters {
+friend class cDvbSourceParam;
+private:
+ char polarization;
+ int inversion;
+ int bandwidth;
+ int coderateH;
+ int coderateL;
+ int modulation;
+ int system;
+ int transmission;
+ int guard;
+ int hierarchy;
+ int rollOff;
+ int PrintParameter(char *p, char Name, int Value) const;
+ const char *ParseParameter(const char *s, int &Value, const tDvbParameterMap *Map);
+public:
+ cDvbTransponderParameters(const char *Parameters = NULL);
+ char Polarization(void) const { return polarization; }
+ int Inversion(void) const { return inversion; }
+ int Bandwidth(void) const { return bandwidth; }
+ int CoderateH(void) const { return coderateH; }
+ int CoderateL(void) const { return coderateL; }
+ int Modulation(void) const { return modulation; }
+ int System(void) const { return system; }
+ int Transmission(void) const { return transmission; }
+ int Guard(void) const { return guard; }
+ int Hierarchy(void) const { return hierarchy; }
+ int RollOff(void) const { return rollOff; }
+ void SetPolarization(char Polarization) { polarization = Polarization; }
+ void SetInversion(int Inversion) { inversion = Inversion; }
+ void SetBandwidth(int Bandwidth) { bandwidth = Bandwidth; }
+ void SetCoderateH(int CoderateH) { coderateH = CoderateH; }
+ void SetCoderateL(int CoderateL) { coderateL = CoderateL; }
+ void SetModulation(int Modulation) { modulation = Modulation; }
+ void SetSystem(int System) { system = System; }
+ void SetTransmission(int Transmission) { transmission = Transmission; }
+ void SetGuard(int Guard) { guard = Guard; }
+ void SetHierarchy(int Hierarchy) { hierarchy = Hierarchy; }
+ void SetRollOff(int RollOff) { rollOff = RollOff; }
+ cString ToString(char Type) const;
+ bool Parse(const char *s);
+ };
+
class cDvbTuner;
/// The cDvbDevice implements a DVB device which can be accessed through the Linux DVB driver API.