diff options
| author | phintuka <phintuka> | 2010-12-19 14:44:15 +0000 |
|---|---|---|
| committer | phintuka <phintuka> | 2010-12-19 14:44:15 +0000 |
| commit | 92a02900f0d42d633c73209e6f55d41720e8a97b (patch) | |
| tree | a25da1273ef1a925243c018ab9532594ad111d20 | |
| parent | f60d221c4e589feb45f55480ef00ef7951c9aa30 (diff) | |
| download | xineliboutput-92a02900f0d42d633c73209e6f55d41720e8a97b.tar.gz xineliboutput-92a02900f0d42d633c73209e6f55d41720e8a97b.tar.bz2 | |
Hide cXinelibImagesControl
| -rw-r--r-- | media_player.c | 38 | ||||
| -rw-r--r-- | media_player.h | 43 |
2 files changed, 38 insertions, 43 deletions
diff --git a/media_player.c b/media_player.c index 67ea14da..f2d2dd88 100644 --- a/media_player.c +++ b/media_player.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: media_player.c,v 1.84 2010-12-09 13:24:55 phintuka Exp $ + * $Id: media_player.c,v 1.85 2010-12-19 14:44:15 phintuka Exp $ * */ @@ -1242,6 +1242,42 @@ bool cXinelibImagePlayer::ShowImage(const char *File) // cXinelibImagesControl // +class cXinelibImagesControl : public cControl +{ + private: + static cXinelibImagePlayer *m_Player; + static cMutex m_Lock; + + cSkinDisplayReplay *m_DisplayReplay; + + char **m_Files; + char *m_File; + int m_Index; + int m_Count; + int m_Speed; + int m_LastShowTime; + bool m_ShowModeOnly; + + static cXinelibImagePlayer *OpenPlayer(const char *File); + + protected: + void Seek(int Rel); + void Delete(void); + + public: + cXinelibImagesControl(char **Files, int Index, int Count); + virtual ~cXinelibImagesControl(); + + virtual void Show(void); + virtual void Hide(void); + virtual eOSState ProcessKey(eKeys Key); + + virtual cOsdObject *GetInfo(void); + + static void Close(void); + static bool IsOpen(void) { return m_Player != NULL; } +}; + cXinelibImagePlayer *cXinelibImagesControl::m_Player = NULL; cMutex cXinelibImagesControl::m_Lock; diff --git a/media_player.h b/media_player.h index 24202d2e..1ea24ff1 100644 --- a/media_player.h +++ b/media_player.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: media_player.h,v 1.21 2010-12-09 13:24:55 phintuka Exp $ + * $Id: media_player.h,v 1.22 2010-12-19 14:44:15 phintuka Exp $ * */ @@ -13,47 +13,6 @@ // --- Image player --------------------------------------------------------- -#include <vdr/player.h> - -class cXinelibImagePlayer; - -class cXinelibImagesControl : public cControl -{ - private: - static cXinelibImagePlayer *m_Player; - static cMutex m_Lock; - - cSkinDisplayReplay *m_DisplayReplay; - - char **m_Files; - char *m_File; - int m_Index; - int m_Count; - int m_Speed; - int m_LastShowTime; - bool m_ShowModeOnly; - - static cXinelibImagePlayer *OpenPlayer(const char *File); - - protected: - void Seek(int Rel); - void Delete(void); - - public: - cXinelibImagesControl(char **Files, int Index, int Count); - virtual ~cXinelibImagesControl(); - - virtual void Show(void); - virtual void Hide(void); - virtual eOSState ProcessKey(eKeys Key); - - virtual cOsdObject *GetInfo(void); - - static void Close(void); - static bool IsOpen(void) { return m_Player != NULL; } -}; - - class cPlaylist; class cPlayerFactory |
