vdr  2.0.4
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 
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
49