1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #ifndef PLATFORM_WINDOWS_POWER_WINDOWS_H_
- #define PLATFORM_WINDOWS_POWER_WINDOWS_H_
- #include "core/os/dir_access.h"
- #include "core/os/file_access.h"
- #include "core/os/os.h"
- #include <windows.h>
- class PowerWindows {
- private:
- int nsecs_left;
- int percent_left;
- OS::PowerState power_state;
- bool GetPowerInfo_Windows();
- public:
- PowerWindows();
- virtual ~PowerWindows();
- OS::PowerState get_power_state();
- int get_power_seconds_left();
- int get_power_percent_left();
- };
- #endif
|