forked from Aloshi/EmulationStation
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from hex007/move-pstimeout
PowerSaver Updates
- Loading branch information
Showing
6 changed files
with
82 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
class PowerSaver | ||
{ | ||
public: | ||
enum ps_state : int { ps_disabled = -1, ps_instant = 200, ps_enhanced = 3000, ps_default = 10000 }; | ||
static void init(bool state = true); | ||
enum mode : int { DISABLED = -1, INSTANT = 200, ENHANCED = 3000, DEFAULT = 10000 }; | ||
|
||
static void init(); | ||
|
||
static int getTimeout(); | ||
static void updateTimeout(); | ||
static void updateTimeouts(); | ||
|
||
static mode getMode(); | ||
static void updateMode(); | ||
|
||
static bool getState(); | ||
static void setState(bool state); | ||
|
||
|
||
static void runningScreenSaver(bool state); | ||
|
||
private: | ||
static bool mState; | ||
static int mTimeout; | ||
static bool mRunningScreenSaver; | ||
|
||
static mode mMode; | ||
static int mPlayNextTimeout; | ||
static int mScreenSaverTimeout; | ||
}; |