vdr  2.2.0
sourceparams.h
Go to the documentation of this file.
1 /*
2  * sourceparams.h: Source parameter handling
3  *
4  * See the main source file 'vdr.c' for copyright information and
5  * how to reach the author.
6  *
7  * $Id: sourceparams.h 3.0 2010/02/28 11:58:03 kls Exp $
8  */
9 
10 #ifndef __SOURCEPARAMS_H
11 #define __SOURCEPARAMS_H
12 
13 #include "channels.h"
14 #include "osdbase.h"
15 #include "tools.h"
16 
17 class cSourceParam : public cListObject {
18 private:
19  char source;
20 public:
21  cSourceParam(char Source, const char *Description);
31  char Source(void) const { return source; }
32  virtual void SetData(cChannel *Channel) = 0;
35  virtual void GetData(cChannel *Channel) = 0;
37  virtual cOsdItem *GetOsdItem(void) = 0;
44  };
45 
46 class cSourceParams : public cList<cSourceParam> {
47 public:
48  cSourceParam *Get(char Source) const;
49  };
50 
52 
53 #endif //__SOURCEPARAMS_H
virtual void GetData(cChannel *Channel)=0
Copies all source specific parameters to the given Channel.
Definition: tools.h:489
virtual cOsdItem * GetOsdItem(void)=0
Returns all the OSD items necessary for editing the source specific parameters of the channel that wa...
cSourceParam(char Source, const char *Description)
Sets up a parameter handler for the given Source.
Definition: sourceparams.c:15
char Source(void) const
Definition: sourceparams.h:31
cSourceParams SourceParams
Definition: sourceparams.c:34
virtual void SetData(cChannel *Channel)=0
Sets all source specific parameters to those of the given Channel.