ScummVM API documentation
PowerManager Class Reference
Inheritance diagram for PowerManager:
Common::Singleton< PowerManager > Common::NonCopyable

Public Types

enum  { Error = -1, NotBlocked = 0, Blocked = 1 }
 
enum  PauseState { UNPAUSED = 0, PAUSING, PAUSED }
 

Public Member Functions

int blockOnSuspend ()
 
bool beginCriticalSection ()
 
void endCriticalSection ()
 
bool registerForSuspend (Suspendable *item)
 
bool unregisterForSuspend (Suspendable *item)
 
void suspend ()
 
void resume ()
 
void pollPauseEngine ()
 
int getPMStatus () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Common::Singleton< PowerManager >
static bool hasInstance ()
 
static PowerManagerinstance ()
 
static void destroy ()
 
- Protected Types inherited from Common::Singleton< PowerManager >
typedef PowerManager SingletonBaseType
 
- Static Protected Attributes inherited from Common::Singleton< PowerManager >
static PowerManager_singleton
 

The documentation for this class was generated from the following file: