From 1eb033576f1829b4466ac27825af91e662e7b17f Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 28 Feb 2010 12:19:50 +0100 Subject: Added plugin-defined sources --- sources.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sources.h') diff --git a/sources.h b/sources.h index ae941f84..3d00d2cf 100644 --- a/sources.h +++ b/sources.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: sources.h 1.4 2005/05/14 09:30:41 kls Exp $ + * $Id: sources.h 2.1 2010/02/21 16:11:19 kls Exp $ */ #ifndef __SOURCES_H @@ -15,19 +15,19 @@ class cSource : public cListObject { public: enum eSourceType { - stNone = 0x0000, - stCable = 0x4000, - stSat = 0x8000, - stTerr = 0xC000, - st_Mask = 0xC000, - st_Neg = 0x0800, - st_Pos = 0x07FF, + stNone = 0x00000000, + stCable = ('C' << 24), + stSat = ('S' << 24), + stTerr = ('T' << 24), + st_Mask = 0xFF000000, + st_Pos = 0x0000FFFF, }; private: int code; char *description; public: cSource(void); + cSource(char Source, const char *Description); ~cSource(); int Code(void) const { return code; } const char *Description(void) const { return description; } -- cgit v1.2.3