vdr  1.7.27
player.h
Go to the documentation of this file.
00001 /*
00002  * player.h: A player for still pictures
00003  *
00004  * See the README file for copyright information and how to reach the author.
00005  *
00006  * $Id: player.h 2.0 2008/01/12 16:21:57 kls Exp $
00007  */
00008 
00009 #ifndef _PLAYER_H
00010 #define _PLAYER_H
00011 
00012 #include <vdr/osd.h>
00013 #include <vdr/player.h>
00014 #include <vdr/tools.h>
00015 #include "entry.h"
00016 
00017 extern int SlideShowDelay;
00018 
00019 cString HandleUnderscores(const char *s);
00020 
00021 class cPicturePlayer;
00022 
00023 class cPictureControl : public cControl {
00024 private:
00025   static int active;
00026   static cString lastDisplayed;
00027   cPictureEntry *pictures;
00028   const cPictureEntry *pictureEntry;
00029   cPicturePlayer *player;
00030   cOsd *osd;
00031   cString lastPath;
00032   cTimeMs slideShowDelay;
00033   bool slideShow;
00034   bool alwaysDisplayCaption;
00035   void NextPicture(int Direction);
00036   void NextDirectory(int Direction);
00037   void DisplayCaption(void);
00038   virtual void Hide(void) {}
00039 public:
00040   cPictureControl(cPictureEntry *Pictures, const cPictureEntry *PictureEntry, bool SlideShow = false);
00041   virtual ~cPictureControl();
00042   virtual eOSState ProcessKey(eKeys Key);
00043   static bool Active(void) { return active > 0; }
00044   static const char *LastDisplayed(void);
00045   };
00046 
00047 #endif //_PLAYER_H