mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user