00001 #ifndef QRK_BATTERY_STATE_H 00002 #define QRK_BATTERY_STATE_H 00003 00013 #include <memory> 00014 #include <cstddef> 00015 00016 00017 namespace qrk 00018 { 00020 class BatteryState 00021 { 00022 public: 00023 BatteryState(void); 00024 ~BatteryState(void); 00025 00026 00033 bool isAvailable(void) const; 00034 00035 00042 bool isCharging(void) const; 00043 00044 00050 size_t remainingPercent(void) const; 00051 00052 00058 size_t remainingSecond(void) const; 00059 00060 private: 00061 BatteryState(const BatteryState& rhs); 00062 BatteryState& operator = (const BatteryState& rhs); 00063 00064 struct pImpl; 00065 std::auto_ptr<pImpl> pimpl; 00066 }; 00067 } 00068 00069 #endif /* !QRK_BATTERY_STATE_H */
1.7.6.1-20120122