vdr
2.4.1
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
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);
49
};
50
51
extern
cSourceParams
SourceParams
;
52
53
#endif //__SOURCEPARAMS_H
SourceParams
cSourceParams SourceParams
Definition:
sourceparams.c:34
cOsdItem
Definition:
osdbase.h:48
cSourceParam::GetData
virtual void GetData(cChannel *Channel)=0
Copies all source specific parameters to the given Channel.
cSourceParam::GetOsdItem
virtual cOsdItem * GetOsdItem(void)=0
Returns all the OSD items necessary for editing the source specific parameters of the channel that wa...
cSourceParams
Definition:
sourceparams.h:46
channels.h
cListObject
Definition:
tools.h:493
cSourceParam::SetData
virtual void SetData(cChannel *Channel)=0
Sets all source specific parameters to those of the given Channel.
cList
Definition:
tools.h:594
cSourceParams::Get
cSourceParam * Get(char Source)
Definition:
sourceparams.c:36
cChannel
Definition:
channels.h:89
cSourceParam::Source
char Source(void) const
Definition:
sourceparams.h:31
cSourceParam::source
char source
Definition:
sourceparams.h:19
cSourceParam
Definition:
sourceparams.h:17
cSourceParam::cSourceParam
cSourceParam(char Source, const char *Description)
Sets up a parameter handler for the given Source.
Definition:
sourceparams.c:15
tools.h
osdbase.h
Generated by
1.8.18