vdr  2.2.0
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 3.0 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 
17 extern int SlideShowDelay;
18 
19 cString HandleUnderscores(const char *s);
20 
21 class cPicturePlayer;
22 
23 class cPictureControl : public cControl {
24 private:
25  static int active;
33  bool slideShow;
35  void NextPicture(int Direction);
36  void NextDirectory(int Direction);
37  void DisplayCaption(void);
38  virtual void Hide(void) {}
39 public:
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
virtual eOSState ProcessKey(eKeys Key)
void NextPicture(int Direction)
eOSState
Definition: osdbase.h:18
static const char * LastDisplayed(void)
virtual cString GetHeader(void)
This can be used by players that don&#39;t play a cRecording, but rather do something completely differen...
The cOsd class is the interface to the "On Screen Display".
Definition: osd.h:720
cString HandleUnderscores(const char *s)
const cPictureEntry * pictureEntry
cPictureControl(cPictureEntry *Pictures, const cPictureEntry *PictureEntry, bool SlideShow=false)
Definition: tools.h:333
void NextDirectory(int Direction)
eKeys
Definition: keys.h:16
Definition: tools.h:168