vdr
2.0.2
Main Page
Namespaces
Classes
Files
File List
File Members
PLUGINS
src
epgtableid0
epgtableid0.c
Go to the documentation of this file.
1
/*
2
* epgtableid0.c: A plugin for the Video Disk Recorder
3
*
4
* See the README file for copyright information and how to reach the author.
5
*
6
* $Id: epgtableid0.c 1.4 2013/03/31 09:30:18 kls Exp $
7
*/
8
9
#include <vdr/epg.h>
10
#include <vdr/plugin.h>
11
12
static
const
char
*
VERSION
=
"2.0.0"
;
13
static
const
char
*
DESCRIPTION
=
"EPG handler for events with table id 0x00"
;
14
15
// --- cTable0Handler --------------------------------------------------------
16
17
class
cTable0Handler
:
public
cEpgHandler
{
18
private
:
19
bool
Ignore
(
cEvent
*Event) {
return
Event->
TableID
() == 0x00; }
20
public
:
21
virtual
bool
SetEventID
(
cEvent
*Event,
tEventID
EventID);
22
virtual
bool
SetStartTime
(
cEvent
*Event, time_t StartTime);
23
virtual
bool
SetDuration
(
cEvent
*Event,
int
Duration);
24
virtual
bool
SetTitle
(
cEvent
*Event,
const
char
*Title);
25
virtual
bool
SetShortText
(
cEvent
*Event,
const
char
*ShortText);
26
virtual
bool
SetDescription
(
cEvent
*Event,
const
char
*Description);
27
virtual
bool
SetContents
(
cEvent
*Event,
uchar
*Contents);
28
virtual
bool
SetParentalRating
(
cEvent
*Event,
int
ParentalRating);
29
virtual
bool
SetVps
(
cEvent
*Event, time_t Vps);
30
virtual
bool
FixEpgBugs
(
cEvent
*Event);
31
};
32
33
bool
cTable0Handler::SetEventID
(
cEvent
*Event,
tEventID
EventID)
34
{
35
return
Ignore
(Event);
36
}
37
38
bool
cTable0Handler::SetStartTime
(
cEvent
*Event, time_t StartTime)
39
{
40
return
Ignore
(Event);
41
}
42
43
bool
cTable0Handler::SetDuration
(
cEvent
*Event,
int
Duration)
44
{
45
return
Ignore
(Event);
46
}
47
48
bool
cTable0Handler::SetTitle
(
cEvent
*Event,
const
char
*Title)
49
{
50
return
Ignore
(Event);
51
}
52
53
bool
cTable0Handler::SetShortText
(
cEvent
*Event,
const
char
*ShortText)
54
{
55
return
Ignore
(Event);
56
}
57
58
bool
cTable0Handler::SetDescription
(
cEvent
*Event,
const
char
*Description)
59
{
60
return
Ignore
(Event);
61
}
62
63
bool
cTable0Handler::SetContents
(
cEvent
*Event,
uchar
*Contents)
64
{
65
return
Ignore
(Event);
66
}
67
68
bool
cTable0Handler::SetParentalRating
(
cEvent
*Event,
int
ParentalRating)
69
{
70
return
Ignore
(Event);
71
}
72
73
bool
cTable0Handler::SetVps
(
cEvent
*Event, time_t Vps)
74
{
75
return
Ignore
(Event);
76
}
77
78
bool
cTable0Handler::FixEpgBugs
(
cEvent
*Event)
79
{
80
return
Ignore
(Event);
81
}
82
83
// --- cPluginEpgtableid0 ----------------------------------------------------
84
85
class
cPluginEpgtableid0
:
public
cPlugin
{
86
public
:
87
virtual
const
char
*
Version
(
void
) {
return
VERSION
; }
88
virtual
const
char
*
Description
(
void
) {
return
DESCRIPTION
; }
89
virtual
bool
Initialize
(
void
);
90
};
91
92
bool
cPluginEpgtableid0::Initialize
(
void
)
93
{
94
new
cTable0Handler
;
95
return
true
;
96
}
97
98
VDRPLUGINCREATOR
(
cPluginEpgtableid0
);
// Don't touch this!
99
Generated by
1.8.3.1