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
{
28 bool m_CriticalHandled
;
32 QSettings m_SettingsFile
;
36 QHash
<QString
, CBatteryIcon
*> m_BatteryIcons
;
37 CBatteryIcon
* m_DefaultIcon
;
39 inline void readSettings();
40 inline void writeSettings();
42 void timerEvent(QTimerEvent
* event
);
44 CPowerManager(QObject
* parent
= 0);
47 /* void updateMerged(QStringList & powerSupplies, bool & acPlug, int & relativeCapacity);
48 void updateSeparated(QStringList & powerSupplies, bool & acPlug, int & relativeCapacity);*/
49 void updateSupplies();
50 void updateMergedData();
53 void updateBatteryData();