diff options
author | Christian <zerov83@gmail.com> | 2016-04-02 23:39:03 +0200 |
---|---|---|
committer | Christian <zerov83@gmail.com> | 2016-04-02 23:39:03 +0200 |
commit | 6fc296295f0579d730a61070c40d5e05a34be787 (patch) | |
tree | 3607a483342185eddcbf67824624214a4ec59e75 /hlsPlayerControl.h | |
parent | f94b31e13127247160815c5902e75f7bcbf3d393 (diff) | |
download | vdr-plugin-plex-6fc296295f0579d730a61070c40d5e05a34be787.tar.gz vdr-plugin-plex-6fc296295f0579d730a61070c40d5e05a34be787.tar.bz2 |
Code reformating
Diffstat (limited to 'hlsPlayerControl.h')
-rw-r--r-- | hlsPlayerControl.h | 91 |
1 files changed, 51 insertions, 40 deletions
diff --git a/hlsPlayerControl.h b/hlsPlayerControl.h index c208502..b777c40 100644 --- a/hlsPlayerControl.h +++ b/hlsPlayerControl.h @@ -8,60 +8,71 @@ #include "MediaContainer.h" #include "PVideo.h" -class cStreamSelectMenu : public cOsdMenu -{ +class cStreamSelectMenu : public cOsdMenu { private: - plexclient::cVideo* pVideo; - void CreateMenu(); - bool SelectStream(); - + plexclient::cVideo *pVideo; + + void CreateMenu(); + + bool SelectStream(); + public: - cStreamSelectMenu(plexclient::cVideo* Video); - virtual eOSState ProcessKey(eKeys Keys); + cStreamSelectMenu(plexclient::cVideo *Video); + + virtual eOSState ProcessKey(eKeys Keys); }; -class cHlsPlayerControl : public cControl -{ +class cHlsPlayerControl : public cControl { private: - static volatile int active; - cHlsPlayer* player; - std::string m_title; - - cStreamSelectMenu* menu; - cSkinDisplayReplay *displayReplay; - bool visible, modeOnly, shown; - int lastCurrent, lastTotal; - bool lastPlay, lastForward; - int lastSpeed; - time_t timeoutShow; - - void ShowMode(void); - bool ShowProgress(bool Initial); - void ShowTimed(int Seconds = 0); + static volatile int active; + cHlsPlayer *player; + std::string m_title; + + cStreamSelectMenu *menu; + cSkinDisplayReplay *displayReplay; + bool visible, modeOnly, shown; + int lastCurrent, lastTotal; + bool lastPlay, lastForward; + int lastSpeed; + time_t timeoutShow; + + void ShowMode(void); + + bool ShowProgress(bool Initial); + + void ShowTimed(int Seconds = 0); protected: - //void ShowMode(); + //void ShowMode(); public: - plexclient::cVideo m_Video; + plexclient::cVideo m_Video; + + static cControl *Create(plexclient::cVideo Video); + + cHlsPlayerControl(cHlsPlayer *Player, plexclient::cVideo Video); + + virtual ~cHlsPlayerControl(); + + virtual void Show(void); + + virtual void Hide(void); + + virtual cString GetHeader(void); + + virtual eOSState ProcessKey(eKeys Key); + + bool Active(void); - static cControl* Create(plexclient::cVideo Video); - cHlsPlayerControl(cHlsPlayer* Player, plexclient::cVideo Video); - virtual ~cHlsPlayerControl(); + void Pause(void); - virtual void Show(void); - virtual void Hide(void); + void Play(void); - virtual cString GetHeader(void); - virtual eOSState ProcessKey(eKeys Key); + void Stop(void); - bool Active(void); + void SeekTo(int offset); - void Pause(void); - void Play(void); - void Stop(void); - void SeekTo(int offset); - void JumpRelative(int offset); + void JumpRelative(int offset); }; |