vdr  1.7.27
sourceparams.h
Go to the documentation of this file.
00001 /*
00002  * sourceparams.h: Source parameter handling
00003  *
00004  * See the main source file 'vdr.c' for copyright information and
00005  * how to reach the author.
00006  *
00007  * $Id: sourceparams.h 1.1 2010/02/28 11:58:03 kls Exp $
00008  */
00009 
00010 #ifndef __SOURCEPARAMS_H
00011 #define __SOURCEPARAMS_H
00012 
00013 #include "channels.h"
00014 #include "osdbase.h"
00015 #include "tools.h"
00016 
00017 class cSourceParam : public cListObject {
00018 private:
00019   char source;
00020 public:
00021   cSourceParam(char Source, const char *Description);
00031   char Source(void) const { return source; }
00032   virtual void SetData(cChannel *Channel) = 0;
00035   virtual void GetData(cChannel *Channel) = 0;
00037   virtual cOsdItem *GetOsdItem(void) = 0;
00044   };
00045 
00046 class cSourceParams : public cList<cSourceParam> {
00047 public:
00048   cSourceParam *Get(char Source) const;
00049   };
00050 
00051 extern cSourceParams SourceParams;
00052 
00053 #endif //__SOURCEPARAMS_H