xbmc
Public Member Functions | List of all members
CSkinTimerManager Class Reference

CSkinTimerManager is the container and manager for Skin timers. Its role is that of checking if the timer boolean conditions are valid, start or stop timers and execute the respective builtin actions linked to the timer lifecycle. More...

#include <SkinTimerManager.h>

Public Member Functions

 CSkinTimerManager ()=default
 Skin timer manager constructor.
 
 ~CSkinTimerManager ()=default
 Default skin timer manager destructor.
 
void LoadTimers (const std::string &path)
 Loads all the skin timers. More...
 
void Stop ()
 Stops the manager.
 
bool TimerIsRunning (const std::string &timer) const
 Checks if the timer with name timer is running. More...
 
float GetTimerElapsedSeconds (const std::string &timer) const
 Get the elapsed seconds since the timer with name timer was started. More...
 
void TimerStart (const std::string &timer) const
 Starts/Enables a given skin timer. More...
 
void TimerStop (const std::string &timer) const
 Stops/Disables a given skin timer. More...
 
void Process ()
 Run the main manager processing loop.
 

Detailed Description

CSkinTimerManager is the container and manager for Skin timers. Its role is that of checking if the timer boolean conditions are valid, start or stop timers and execute the respective builtin actions linked to the timer lifecycle.

Note
This component should only be called by the main/rendering thread
See also
Skin_Timers
CSkinTimer

Member Function Documentation

◆ GetTimerElapsedSeconds()

float CSkinTimerManager::GetTimerElapsedSeconds ( const std::string &  timer) const

Get the elapsed seconds since the timer with name timer was started.

Parameters
timerthe name of the skin timer
Returns
the elapsed time in seconds the given timer is running (0 if not running or if it does not exist)

◆ LoadTimers()

void CSkinTimerManager::LoadTimers ( const std::string &  path)

Loads all the skin timers.

Parameters
path- the path for the skin Timers.xml file

◆ TimerIsRunning()

bool CSkinTimerManager::TimerIsRunning ( const std::string &  timer) const

Checks if the timer with name timer is running.

Parameters
timerthe name of the skin timer
Returns
true if the given timer exists and is running, false otherwise

◆ TimerStart()

void CSkinTimerManager::TimerStart ( const std::string &  timer) const

Starts/Enables a given skin timer.

Parameters
timerthe name of the skin timer

◆ TimerStop()

void CSkinTimerManager::TimerStop ( const std::string &  timer) const

Stops/Disables a given skin timer.

Parameters
timerthe name of the skin timer

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