diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2008-01-13 11:44:38 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2008-01-13 11:44:38 +0100 |
commit | d607265f695510e357c67d78e43d0c8138f8c588 (patch) | |
tree | 3ebc47cbd0c765cb85441dcefb73a13ade798932 /PLUGINS/src/pictures/player.h | |
parent | 0ec2063b5ad4a6b9574efa6365ac4bf026211e9d (diff) | |
download | vdr-d607265f695510e357c67d78e43d0c8138f8c588.tar.gz vdr-d607265f695510e357c67d78e43d0c8138f8c588.tar.bz2 |
Added the 'pictures' plugin
Diffstat (limited to 'PLUGINS/src/pictures/player.h')
-rw-r--r-- | PLUGINS/src/pictures/player.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PLUGINS/src/pictures/player.h b/PLUGINS/src/pictures/player.h new file mode 100644 index 00000000..ab201bd8 --- /dev/null +++ b/PLUGINS/src/pictures/player.h @@ -0,0 +1,47 @@ +/* + * player.h: A player for still pictures + * + * See the README file for copyright information and how to reach the author. + * + * $Id: player.h 1.1 2008/01/13 11:29:27 kls Exp $ + */ + +#ifndef _PLAYER_H +#define _PLAYER_H + +#include <vdr/osd.h> +#include <vdr/player.h> +#include <vdr/tools.h> +#include "entry.h" + +extern int SlideShowDelay; + +cString HandleUnderscores(const char *s); + +class cPicturePlayer; + +class cPictureControl : public cControl { +private: + static int active; + static cString lastDisplayed; + cPictureEntry *pictures; + const cPictureEntry *pictureEntry; + cPicturePlayer *player; + cOsd *osd; + cString lastPath; + cTimeMs slideShowDelay; + bool slideShow; + bool alwaysDisplayCaption; + void NextPicture(int Direction); + void NextDirectory(int Direction); + void DisplayCaption(void); + virtual void Hide(void) {} +public: + cPictureControl(cPictureEntry *Pictures, const cPictureEntry *PictureEntry, bool SlideShow = false); + virtual ~cPictureControl(); + virtual eOSState ProcessKey(eKeys Key); + static bool Active(void) { return active > 0; } + static const char *LastDisplayed(void); + }; + +#endif //_PLAYER_H |