2 // C++ Interface: powermanager
4 // Author: Oliver Groß <z.o.gross@gmx.de>, (C) 2008
6 // Copyright: See COPYING file that comes with this distribution
8 #ifndef QBAT_POWERMANAGER_H
9 #define QBAT_POWERMANAGER_H
15 #include <QSystemTrayIcon>
21 class CPowerManager
: public QObject
{
25 bool m_CriticalHandled
;
29 QSettings m_SettingsFile
;
33 QHash
<QString
, CBatteryIcon
*> m_BatteryIcons
;
34 QSystemTrayIcon m_DefaultTrayIcon
;
36 inline void readSettings();
37 inline void writeSettings();
39 void timerEvent(QTimerEvent
* event
);
41 CPowerManager(QObject
* parent
= 0);