mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-07-02 18:32:20 +03:00
31 lines
438 B
C
31 lines
438 B
C
|
#ifndef __BATTERY_H__
|
||
|
#define __BATTERY_H__
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
class Surface;
|
||
|
class SurfaceCollection;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Keeps track of the battery status.
|
||
|
*/
|
||
|
class Battery {
|
||
|
public:
|
||
|
Battery(SurfaceCollection &sc);
|
||
|
|
||
|
/**
|
||
|
* Gets the icon that reflects the current battery status.
|
||
|
*/
|
||
|
const Surface &getIcon();
|
||
|
|
||
|
private:
|
||
|
void update();
|
||
|
|
||
|
SurfaceCollection ≻
|
||
|
std::string iconPath;
|
||
|
unsigned int lastUpdate;
|
||
|
};
|
||
|
|
||
|
#endif /* __BATTERY_H__ */
|