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
{
28 QSettings m_SettingsFile
;
32 QHash
<QString
, CBatteryIcon
*> m_BatteryIcons
;
33 QSystemTrayIcon m_DefaultTrayIcon
;
35 void timerEvent(QTimerEvent
* event
);
37 inline void readSettings();
38 inline void writeSettings();
40 CPowerManager(QObject
* parent
= 0);