#include <faith/timer.h>
Inheritance diagram for Faith::Timer:

Signals | |
| void | timeout () |
Public Member Functions | |
| Timer (Object *parent=0, const char *name=0) | |
| bool | isActive () const |
| void | start (int msec, bool singleshot=false) |
| void | changeInterval (int msec) |
| void | stop () |
Static Public Member Functions | |
| static void | singleShot (int msec, Object *receiver, const char *member) |
Protected Member Functions | |
| void | timerEvent (TimerEvent *) |
a Timer can be used for getting events in regular time intervals
| Faith::Timer::Timer | ( | Object * | parent = 0, |
|
| const char * | name = 0 | |||
| ) |
| void Faith::Timer::changeInterval | ( | int | msec | ) |
Same as calling if (isActive()) start(msec, [singleshot])
| bool Faith::Timer::isActive | ( | ) | const |
| static void Faith::Timer::singleShot | ( | int | msec, | |
| Object * | receiver, | |||
| const char * | member | |||
| ) | [static] |
A handy function to have a slot called after a specified amount of time without any further action
| msec | is the approximate number of milliseconds until your slot will be called | |
| receiver | is the object with the slot | |
| member | is the slot you want called after the time specified |
// Calls this->later() in 1 second Faith::Timer::singleShot(1000, this, SLOT(later()))
| void Faith::Timer::start | ( | int | msec, | |
| bool | singleshot = false | |||
| ) |
| void Faith::Timer::stop | ( | ) |
| void Faith::Timer::timeout | ( | ) | [signal] |
| void Faith::Timer::timerEvent | ( | TimerEvent * | ) | [protected, virtual] |
Receives timer events as created by startTimer
Reimplemented from Faith::Object.
1.4.7