Initial commit
[qbat.git] / powermanager.h
blob85d2bcf698ef66fa7629fdc632961afb1e25b416
1 //
2 // C++ Interface: cpowermanager
3 //
4 // Author: Oliver Groß <z.o.gross@gmx.de>, (C) 2008
5 //
6 // Copyright: See COPYING file that comes with this distribution
7 //
8 #ifndef QBAT_POWERMANAGER_H
9 #define QBAT_POWERMANAGER_H
11 #include <QHash>
12 #include <QDir>
13 #include <QMenu>
14 #include "batteryicon.h"
16 namespace qbat {
17 class CPowerManager : public QObject {
18 Q_OBJECT
19 private:
20 void timerEvent(QTimerEvent * event);
21 int m_Timer;
22 QDir m_SysfsDir;
23 QMenu m_ContextMenu;
24 QHash<QString, CBatteryIcon *> m_BatteryIcons;
25 QSystemTrayIcon m_DefaultTrayIcon;
26 public:
27 CPowerManager(QObject * parent = 0);
28 ~CPowerManager();
32 #endif