2 // C++ Interface: cpowermanager
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
{
24 enum messageType
{MSGT_INFORMATION
, MSGT_WARNING
};
27 bool m_CriticalHandled
;
31 QSettings m_SettingsFile
;
35 QHash
<QString
, CBatteryIcon
*> m_BatteryIcons
;
36 QSystemTrayIcon m_DefaultTrayIcon
;
38 inline void readSettings();
39 inline void writeSettings();
41 void timerEvent(QTimerEvent
* event
);
43 CPowerManager(QObject
* parent
= 0);