diff options
author | etobi <git@e-tobi.net> | 2010-02-13 00:28:21 +0100 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2010-06-07 22:14:20 +0200 |
commit | 4cf2bdca0d81dc419315657cea0087bd905e078f (patch) | |
tree | bb56c7c58cd288924d03bfd2265702dde30ff799 /vdrttxtsubshooks.h | |
parent | e4224634d1f8a3a07cf5f2c3f6e43333f0c376c7 (diff) | |
download | vdr-patches-patches/ttxtsubs-vdr-1.7.15.tar.gz vdr-patches-patches/ttxtsubs-vdr-1.7.15.tar.bz2 |
Ttxtsubs plugin hookpatches/ttxtsubs-vdr-1.7.15
Diffstat (limited to 'vdrttxtsubshooks.h')
-rw-r--r-- | vdrttxtsubshooks.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/vdrttxtsubshooks.h b/vdrttxtsubshooks.h new file mode 100644 index 0000000..2f97969 --- /dev/null +++ b/vdrttxtsubshooks.h @@ -0,0 +1,46 @@ +/* + * vdr-ttxtsubs - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2003 - 2008 Ragnar Sundblad <ragge@nada.kth.se> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifndef __VDRTTXTSUBSHOOKS_H +#define __VDRTTXTSUBSHOOKS_H + +#define TTXTSUBSVERSNUM 2 + +class cDevice; +class cChannel; +struct tTeletextSubtitlePage; + +class cVDRTtxtsubsHookListener { + public: + cVDRTtxtsubsHookListener(void) {}; + virtual ~cVDRTtxtsubsHookListener(); + + void HookAttach(void); + + virtual void HideOSD(void) {}; + virtual void ShowOSD(void) {}; + virtual void PlayerTeletextData(uint8_t *p, int length, bool IsPesRecording = true, const struct tTeletextSubtitlePage teletextSubtitlePages[] = NULL, int pageCount = 0) {}; + virtual int ManualPageNumber(const cChannel *channel) { return 0; }; + + // used by VDR to call hook listeners + static cVDRTtxtsubsHookListener *Hook(void); +}; + +#endif |