MythTV master
mythscreensaver.h
Go to the documentation of this file.
1#ifndef MYTH_SCREENSAVER_H
2#define MYTH_SCREENSAVER_H
3
4// Qt
5#include <QObject>
6
7// Std
8#include <vector>
9
10class MythDisplay;
11class MythMainWindow;
12
14class MythScreenSaver : public QObject
15{
16 Q_OBJECT
17
18 public:
19 explicit MythScreenSaver(QObject* Parent) : QObject(Parent) {}
20 ~MythScreenSaver() override = default;
21
22 public slots:
23 virtual void Disable() = 0;
24 virtual void Restore() = 0;
25 virtual void Reset() = 0;
26 virtual bool Asleep() = 0;
27
28 private:
29 Q_DISABLE_COPY(MythScreenSaver)
30};
31
33class MythScreenSaverControl : public QObject
34{
35 Q_OBJECT
36
37 public:
39 ~MythScreenSaverControl() override = default;
40
41 signals:
42 void Disable();
43 void Restore();
44 void Reset();
45
46 public slots:
47 bool Asleep();
48
49 private:
50 Q_DISABLE_COPY(MythScreenSaverControl)
52};
53
54#endif
Controls all instances of the screensaver.
~MythScreenSaverControl() override=default
MythScreenSaverControl(MythMainWindow *MainWin, MythDisplay *mDisplay)
std::vector< MythScreenSaver * > m_screenSavers
Base Class for screensavers.
~MythScreenSaver() override=default
virtual void Restore()=0
virtual void Reset()=0
virtual void Disable()=0
virtual bool Asleep()=0
MythScreenSaver(QObject *Parent)
STL namespace.