vdr 2.6.9
PLUGINS/src/pictures/player.h
Go to the documentation of this file.
1/*
2 * player.h: A player for still pictures
3 *
4 * See the README file for copyright information and how to reach the author.
5 *
6 * $Id: player.h 2.1 2012/04/28 11:56:01 kls Exp $
7 */
8
9#ifndef _PLAYER_H
10#define _PLAYER_H
11
12#include <vdr/osd.h>
13#include <vdr/player.h>
14#include <vdr/tools.h>
15#include "entry.h"
16
17extern int SlideShowDelay;
18
19cString HandleUnderscores(const char *s);
20
21class cPicturePlayer;
22
23class cPictureControl : public cControl {
24private:
25 static int active;
35 void NextPicture(int Direction);
36 void NextDirectory(int Direction);
37 void DisplayCaption(void);
38 virtual void Hide(void) {}
39public:
40 cPictureControl(cPictureEntry *Pictures, const cPictureEntry *PictureEntry, bool SlideShow = false);
41 virtual ~cPictureControl();
42 virtual cString GetHeader(void);
43 virtual eOSState ProcessKey(eKeys Key);
44 static bool Active(void) { return active > 0; }
45 static const char *LastDisplayed(void);
46 };
47
48#endif //_PLAYER_H
cString HandleUnderscores(const char *s)
The cOsd class is the interface to the "On Screen Display".
Definition osd.h:753
virtual eOSState ProcessKey(eKeys Key)
static const char * LastDisplayed(void)
void NextDirectory(int Direction)
cPictureControl(cPictureEntry *Pictures, const cPictureEntry *PictureEntry, bool SlideShow=false)
void NextPicture(int Direction)
virtual cString GetHeader(void)
This can be used by players that don't play a cRecording, but rather do something completely differen...
const cPictureEntry * pictureEntry
eKeys
Definition keys.h:16
eOSState
Definition osdbase.h:18