neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::i_power Class Referenceabstract

#include <i_power.hpp>

Inheritance diagram for neolib::i_power:
neolib::services::i_service neolib::power

Public Member Functions

virtual power_mode active_mode () const =0
 
virtual void register_activity ()=0
 
virtual std::chrono::seconds activity_timeout () const =0
 
virtual void set_activity_timeout (std::chrono::seconds aTimeout)=0
 
virtual bool is_green_mode_enabled () const =0
 
virtual void enable_green_mode ()=0
 
virtual void disable_green_mode ()=0
 
bool green_mode_active () const
 
bool turbo_mode_active () const
 
bool is_turbo_mode_enabled () const
 
void enable_turbo_mode ()
 
void disable_turbo_mode ()
 
- Public Member Functions inherited from neolib::services::i_service
virtual ~i_service ()=default
 

Static Public Member Functions

static uuid constiid ()
 

Detailed Description

Definition at line 52 of file i_power.hpp.

Member Function Documentation

◆ active_mode()

virtual power_mode neolib::i_power::active_mode ( ) const
pure virtual

Implemented in neolib::power.

◆ activity_timeout()

virtual std::chrono::seconds neolib::i_power::activity_timeout ( ) const
pure virtual

Implemented in neolib::power.

◆ disable_green_mode()

virtual void neolib::i_power::disable_green_mode ( )
pure virtual

Implemented in neolib::power.

◆ disable_turbo_mode()

void neolib::i_power::disable_turbo_mode ( )
inline

Definition at line 93 of file i_power.hpp.

◆ enable_green_mode()

virtual void neolib::i_power::enable_green_mode ( )
pure virtual

Implemented in neolib::power.

◆ enable_turbo_mode()

void neolib::i_power::enable_turbo_mode ( )
inline

Definition at line 89 of file i_power.hpp.

◆ green_mode_active()

bool neolib::i_power::green_mode_active ( ) const
inline

Definition at line 77 of file i_power.hpp.

◆ iid()

static uuid const & neolib::i_power::iid ( )
inlinestatic

Definition at line 98 of file i_power.hpp.

◆ is_green_mode_enabled()

virtual bool neolib::i_power::is_green_mode_enabled ( ) const
pure virtual

Implemented in neolib::power.

◆ is_turbo_mode_enabled()

bool neolib::i_power::is_turbo_mode_enabled ( ) const
inline

Definition at line 85 of file i_power.hpp.

◆ register_activity()

virtual void neolib::i_power::register_activity ( )
pure virtual

Implemented in neolib::power.

◆ set_activity_timeout()

virtual void neolib::i_power::set_activity_timeout ( std::chrono::seconds  aTimeout)
pure virtual

Implemented in neolib::power.

◆ turbo_mode_active()

bool neolib::i_power::turbo_mode_active ( ) const
inline

Definition at line 81 of file i_power.hpp.


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