openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
eTimer Class Reference

Gives a callback after a specified timeout. More...

#include <ebase.h>

Inheritance diagram for eTimer:
iObject

Public Member Functions

 ~eTimer ()
 
bool isActive ()
 
timespec & getNextActivation ()
 
bool needsActivation (const timespec &now)
 
bool needsActivation ()
 
void start (long msec, bool b=false)
 
void stop ()
 
void changeInterval (long msek)
 
void startLongTimer (int seconds)
 
bool operator< (const eTimer &t) const
 

Static Public Member Functions

static eTimercreate (eMainloop *context=eApp)
 Constructs a timer. More...
 

Public Attributes

PSignal0< void > timeout
 

Friends

class eMainloop
 

Detailed Description

Gives a callback after a specified timeout.

This class emits the signal eTimer::timeout after the specified timeout.

Constructor & Destructor Documentation

◆ ~eTimer()

eTimer::~eTimer ( )
inline

Member Function Documentation

◆ changeInterval()

void eTimer::changeInterval ( long  msek)

◆ create()

static eTimer* eTimer::create ( eMainloop context = eApp)
inlinestatic

Constructs a timer.

The timer is not yet active, it has to be started with start.

Parameters
contextThe thread from which the signal should be emitted.

◆ getNextActivation()

timespec& eTimer::getNextActivation ( )
inline

◆ isActive()

bool eTimer::isActive ( )
inline

◆ needsActivation() [1/2]

bool eTimer::needsActivation ( )
inline

◆ needsActivation() [2/2]

bool eTimer::needsActivation ( const timespec &  now)
inline

◆ operator<()

bool eTimer::operator< ( const eTimer t) const
inline

◆ start()

void eTimer::start ( long  msec,
bool  b = false 
)

◆ startLongTimer()

void eTimer::startLongTimer ( int  seconds)

◆ stop()

void eTimer::stop ( )

Friends And Related Function Documentation

◆ eMainloop

friend class eMainloop
friend

Member Data Documentation

◆ timeout

PSignal0<void> eTimer::timeout

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