vdr  2.7.6
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 5.1 2025/03/02 11:03:35 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) override {}
39 public:
40  cPictureControl(cPictureEntry *Pictures, const cPictureEntry *PictureEntry, bool SlideShow = false);
41  virtual ~cPictureControl() override;
42  virtual cString GetHeader(void) override;
43  virtual eOSState ProcessKey(eKeys Key) override;
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 cString GetHeader(void) override
This can be used by players that don't play a cRecording, but rather do something completely differen...
virtual void Hide(void) override
static const char * LastDisplayed(void)
virtual eOSState ProcessKey(eKeys Key) override
void NextDirectory(int Direction)
virtual ~cPictureControl() override
cPictureControl(cPictureEntry *Pictures, const cPictureEntry *PictureEntry, bool SlideShow=false)
void NextPicture(int Direction)
const cPictureEntry * pictureEntry
Definition: tools.h:178
Definition: tools.h:404
eKeys
Definition: keys.h:16
eOSState
Definition: osdbase.h:18