mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
restart is now depending on previous status
Origin commit data
------------------
Branch: ni/coolstream
Commit: aea7e1f772
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-01-09 (Fri, 09 Jan 2015)
Origin message was:
------------------
- screensaver: fix restart of clock and mute;
restart is now depending on previous status
------------------
This commit was generated by Migit
58 lines
1.4 KiB
C++
58 lines
1.4 KiB
C++
/*
|
|
Neutrino-GUI - DBoxII-Project
|
|
|
|
Copyright (C) 2001 Steffen Hehn 'McClean'
|
|
Homepage: http://dbox.cyberphoria.org/
|
|
|
|
Copyright (C) 2012-2013 defans@bluepeercrew.us
|
|
|
|
License: GPL
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __CSCREENSAVER_H__
|
|
#define __CSCREENSAVER_H__
|
|
|
|
#include <driver/framebuffer.h>
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
class CScreenSaver
|
|
{
|
|
private:
|
|
CFrameBuffer *m_frameBuffer;
|
|
CPictureViewer *m_viewer;
|
|
pthread_t thrScreenSaver;
|
|
static void* ScreenSaverPrg(void *arg);
|
|
vector<string> v_bg_files;
|
|
unsigned int index;
|
|
|
|
bool status_mute;
|
|
bool status_clock;
|
|
|
|
bool ReadDir();
|
|
void PaintPicture();
|
|
|
|
public:
|
|
CScreenSaver();
|
|
~CScreenSaver();
|
|
static CScreenSaver* getInstance();
|
|
|
|
void Start();
|
|
void Stop();
|
|
};
|
|
|
|
#endif // __CSCREENSAVER_H__
|