vdr 2.6.8
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 4.1 2015/08/02 11:56:25 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
17class cSourceParam : public cListObject {
18private:
19 char source;
20public:
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
46class cSourceParams : public cList<cSourceParam> {
47public:
48 cSourceParam *Get(char Source);
49 };
50
52
53#endif //__SOURCEPARAMS_H
Definition tools.h:644
virtual void SetData(cChannel *Channel)=0
Sets all source specific parameters to those of the given Channel.
virtual cOsdItem * GetOsdItem(void)=0
Returns all the OSD items necessary for editing the source specific parameters of the channel that wa...
virtual void GetData(cChannel *Channel)=0
Copies all source specific parameters to the given Channel.
char Source(void) const
cSourceParam(char Source, const char *Description)
Sets up a parameter handler for the given Source.
cSourceParam * Get(char Source)
cSourceParams SourceParams