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
14 #include <QSystemTrayIcon>
20 class CPowerManager
: public QObject
{
27 bool m_CriticalHandled
;
30 QSettings m_SettingsFile
;
34 QHash
<QString
, CBatteryIcon
*> m_BatteryIcons
;
35 CBatteryIcon
* m_DefaultIcon
;
37 inline void readSettings();
38 inline void writeSettings();
40 void timerEvent(QTimerEvent
* event
);
42 CPowerManager(QObject
* parent
= 0);
45 void updateSupplies();
46 void updateMergedData();
49 void updateBatteryData();