Screensaver: add option to show current time instead images

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0b3576b4a7
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-12-27 (Sun, 27 Dec 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2015-12-27 22:26:23 +01:00
parent 1dedce338b
commit 165cabba18
9 changed files with 90 additions and 27 deletions

View File

@@ -28,12 +28,14 @@
#include <driver/framebuffer.h>
#include <vector>
#include <string>
#include <gui/components/cc.h>
class CScreenSaver : public sigc::trackable
{
private:
CFrameBuffer *m_frameBuffer;
CPictureViewer *m_viewer;
CComponentsFrmClock *scr_clock;
pthread_t thrScreenSaver;
static void* ScreenSaverPrg(void *arg);
vector<string> v_bg_files;
@@ -42,9 +44,14 @@ class CScreenSaver : public sigc::trackable
bool status_mute;
bool ReadDir();
void PaintPicture();
void paint();
public:
enum
{
SCR_MODE_IMAGE,
SCR_MODE_CLOCK
};
CScreenSaver();
~CScreenSaver();
static CScreenSaver* getInstance();