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

#include <power.hpp>

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

Public Member Functions

 define_declared_event (ActivityRegistered, activity_registered) define_declared_event(GreenModeEnabled
 
green_mode_enabled define_declared_event (GreenModeDisabled, green_mode_disabled) define_declared_event(GreenModeEntered
 
green_mode_enabled green_mode_entered define_declared_event (GreenModeLeft, green_mode_left) define_declared_event(TurboModeEnabled
 
green_mode_enabled green_mode_entered turbo_mode_enabled define_declared_event (TurboModeDisabled, turbo_mode_disabled) define_declared_event(TurboModeEntered
 
power_mode active_mode () const override
 
void register_activity () override
 
std::chrono::seconds activity_timeout () const override
 
void set_activity_timeout (std::chrono::seconds aTimeout) override
 
bool is_green_mode_enabled () const override
 
void enable_green_mode () override
 
void disable_green_mode () override
 
- Public Member Functions inherited from neolib::i_power
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
 

Additional Inherited Members

- Static Public Member Functions inherited from neolib::i_power
static uuid constiid ()
 

Detailed Description

Definition at line 46 of file power.hpp.

Member Function Documentation

◆ active_mode()

power_mode neolib::power::active_mode ( ) const
overridevirtual

Implements neolib::i_power.

◆ activity_timeout()

std::chrono::seconds neolib::power::activity_timeout ( ) const
overridevirtual

Implements neolib::i_power.

◆ define_declared_event() [1/4]

neolib::power::define_declared_event ( ActivityRegistered  ,
activity_registered   
)

◆ define_declared_event() [2/4]

green_mode_enabled neolib::power::define_declared_event ( GreenModeDisabled  ,
green_mode_disabled   
)

◆ define_declared_event() [3/4]

green_mode_enabled green_mode_entered neolib::power::define_declared_event ( GreenModeLeft  ,
green_mode_left   
)

◆ define_declared_event() [4/4]

◆ disable_green_mode()

void neolib::power::disable_green_mode ( )
overridevirtual

Implements neolib::i_power.

◆ enable_green_mode()

void neolib::power::enable_green_mode ( )
overridevirtual

Implements neolib::i_power.

◆ is_green_mode_enabled()

bool neolib::power::is_green_mode_enabled ( ) const
overridevirtual

Implements neolib::i_power.

◆ register_activity()

void neolib::power::register_activity ( )
overridevirtual

Implements neolib::i_power.

◆ set_activity_timeout()

void neolib::power::set_activity_timeout ( std::chrono::seconds  aTimeout)
overridevirtual

Implements neolib::i_power.


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