Movieplayer cleanup: remove unused code, move all time realted to CTimeOSD

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1964 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 2be4e1e21f
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2011-12-10 (Sat, 10 Dec 2011)
This commit is contained in:
[CST] Focus
2011-12-10 12:09:10 +00:00
parent fd7b1344b5
commit 63aec64d7c
4 changed files with 125 additions and 290 deletions

View File

@@ -27,6 +27,7 @@
#include <time.h>
#include <driver/framebuffer.h>
#include <gui/widget/progressbar.h>
class CTimeOSD
{
@@ -39,7 +40,8 @@ class CTimeOSD
private:
CFrameBuffer *frameBuffer;
time_t m_time_dis;
CProgressBar *timescale;
time_t m_time_show;
bool visible;
int m_xstart,m_xend,m_y,m_height, m_width, t1;
@@ -50,11 +52,13 @@ class CTimeOSD
CTimeOSD();
~CTimeOSD();
void show(time_t time_show);
void update(time_t time_show = 0);
void update(time_t time_show);
void updatePos(short runningPercent);
void hide();
bool IsVisible() {return visible;}
void SetMode(mode m) { m_mode = m;}
mode GetMode() { return m_mode;}
void update(int position, int duration);
void switchMode(int position, int duration);
};
#endif