Changeset View
Changeset View
Standalone View
Standalone View
src/rsiwidget.h
Show All 16 Lines | 1 | /* | |||
---|---|---|---|---|---|
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | 18 | | |||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef RSIWIDGET_H | 21 | #ifndef RSIWIDGET_H | ||
22 | #define RSIWIDGET_H | 22 | #define RSIWIDGET_H | ||
23 | 23 | | |||
24 | #include "rsitimer.h" | 24 | #include "rsitimer.h" | ||
25 | #include "notificator.h" | ||||
25 | 26 | | |||
26 | class RSIDock; | 27 | class RSIDock; | ||
27 | class RSIRelaxPopup; | 28 | class RSIRelaxPopup; | ||
28 | class BreakBase; | 29 | class BreakBase; | ||
29 | 30 | | |||
30 | class QLabel; | | |||
31 | | ||||
32 | /** | 31 | /** | ||
33 | * @class RSIObject | 32 | * @class RSIObject | ||
34 | * This controls all RSIBreak components | 33 | * This controls all RSIBreak components | ||
35 | * @author Tom Albers <toma.org> | 34 | * @author Tom Albers <toma.org> | ||
36 | */ | 35 | */ | ||
37 | class RSIObject : public QObject | 36 | class RSIObject : public QObject | ||
38 | { | 37 | { | ||
39 | Q_OBJECT | 38 | Q_OBJECT | ||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 79 | private: | |||
90 | 89 | | |||
91 | bool m_usePlasma; | 90 | bool m_usePlasma; | ||
92 | bool m_usePlasmaRO; | 91 | bool m_usePlasmaRO; | ||
93 | 92 | | |||
94 | RSIRelaxPopup* m_relaxpopup; | 93 | RSIRelaxPopup* m_relaxpopup; | ||
95 | 94 | | |||
96 | QString m_currentIcon; | 95 | QString m_currentIcon; | ||
97 | 96 | | |||
97 | Notificator m_notificator; | ||||
98 | 98 | | |||
99 | /* Available through D-Bus */ | 99 | /* Available through D-Bus */ | ||
100 | public Q_SLOTS: | 100 | public Q_SLOTS: | ||
101 | void resume(); | 101 | void resume(); | ||
102 | void suspend(); | 102 | void suspend(); | ||
103 | int idleTime() { | 103 | int idleTime() { | ||
104 | return timer()->idleTime(); | 104 | return timer()->idleTime(); | ||
105 | } | 105 | } | ||
Show All 12 Lines |