vdr
2.0.4
Main Page
Namespaces
Classes
Files
File List
File Members
vdrttxtsubshooks.h
Go to the documentation of this file.
1
/*
2
* vdr-ttxtsubs - A plugin for the Linux Video Disk Recorder
3
* Copyright (c) 2003 - 2008 Ragnar Sundblad <ragge@nada.kth.se>
4
*
5
* This program is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License as published by the
7
* Free Software Foundation; either version 2 of the License, or (at your option)
8
* any later version.
9
*
10
* This program is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13
* details.
14
*
15
* You should have received a copy of the GNU General Public License along with
16
* this program; if not, write to the Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*
19
*/
20
21
#ifndef __VDRTTXTSUBSHOOKS_H
22
#define __VDRTTXTSUBSHOOKS_H
23
24
#define TTXTSUBSVERSNUM 2
25
26
class
cDevice
;
27
class
cChannel
;
28
struct
tTeletextSubtitlePage
;
29
30
class
cVDRTtxtsubsHookListener
{
31
public
:
32
cVDRTtxtsubsHookListener
(
void
) {};
33
virtual
~cVDRTtxtsubsHookListener
();
34
35
void
HookAttach
(
void
);
36
37
virtual
void
HideOSD
(
void
) {};
38
virtual
void
ShowOSD
(
void
) {};
39
virtual
void
PlayerTeletextData
(uint8_t *p,
int
length,
bool
IsPesRecording =
true
,
const
struct
tTeletextSubtitlePage
teletextSubtitlePages[] = NULL,
int
pageCount = 0) {};
40
virtual
int
ManualPageNumber
(
const
cChannel
*channel) {
return
0; };
41
42
// used by VDR to call hook listeners
43
static
cVDRTtxtsubsHookListener
*
Hook
(
void
);
44
};
45
46
#endif
47
Generated by
1.8.3.1