Provides a timer executing a block or runnable each time it fires on a given queue. More...
 Inheritance diagram for QDispatchTimer:
 Inheritance diagram for QDispatchTimer:| Public Slots | |
| void | start () | 
| Starts the timer. | |
| void | stop () | 
| Stops the timer. | |
| Public Member Functions | |
| QDispatchTimer (int msec, QObject *parent=NULL) | |
| Constructs a new timer firing every msec milliseconds. | |
| QDispatchTimer (const QDispatchTimer &) | |
| QDispatchTimer (const xdispatch::timer &, QObject *parent=NULL) | |
| ~QDispatchTimer () | |
| void | setInterval (int msec) | 
| Changes the interval of the timer to msec. | |
| void | setQueue (const xdispatch::queue &) | 
| Sets the queue the timer will execute on. | |
| void | setHandler (QRunnable *) | 
| Sets the runnable that will be executed every time the timer fires. | |
| void | setHandler (dispatch_block_t) | 
| Sets a block that will be executed every time the timer fires. | |
| void | setLatency (int usec) | 
| Sets the latency, i.e. | |
| bool | operator== (const QDispatchTimer &) | 
| Static Public Member Functions | |
| static void | singleShot (dispatch_time_t, const xdispatch::queue &, QRunnable *) | 
| Creates a single shot timer executing the given runnable on the given queue at the given time. | |
| static void | singleShot (const QTime &, const xdispatch::queue &, QRunnable *) | 
| Creates a single shot timer executing the given runnable on the given queue at the given time. | |
| static void | singleShot (dispatch_time_t, const xdispatch::queue &, dispatch_block_t) | 
| Creates a single shot timer executing the given block on the given queue at the given time. | |
| static void | singleShot (const QTime &, const xdispatch::queue &, dispatch_block_t) | 
| Creates a single shot timer executing the given block on the given queue at the given time. | |
| static QDispatchTimer * | current () | 
Provides a timer executing a block or runnable each time it fires on a given queue.
The default queue for dispatch timers is the global queue.
The timer may have a divergence from the exact interval, the allowed size of this divergence can be influenced by using setLatency().
| QDispatchTimer::QDispatchTimer | ( | int | msec, | 
| QObject * | parent = NULL | ||
| ) | 
Constructs a new timer firing every msec milliseconds.
The timer will be constructed in a stopped state, use start() to launch it.
| QDispatchTimer::QDispatchTimer | ( | const QDispatchTimer & | ) | 
| QDispatchTimer::QDispatchTimer | ( | const xdispatch::timer & | , | 
| QObject * | parent = NULL | ||
| ) | 
| QDispatchTimer::~QDispatchTimer | ( | ) | 
| static QDispatchTimer* QDispatchTimer::current | ( | ) |  [static] | 
Reimplemented from xdispatch::timer.
| bool QDispatchTimer::operator== | ( | const QDispatchTimer & | ) | 
| void QDispatchTimer::setHandler | ( | QRunnable * | ) | 
Sets the runnable that will be executed every time the timer fires.
| void QDispatchTimer::setHandler | ( | dispatch_block_t | ) | 
Sets a block that will be executed every time the timer fires.
| void QDispatchTimer::setInterval | ( | int | msec | ) | 
Changes the interval of the timer to msec.
| void QDispatchTimer::setLatency | ( | int | usec | ) | 
Sets the latency, i.e.
the divergence the timer may have. Please note that this can only be regarded as a hint and is not garuanted to be followed strictly.
| void QDispatchTimer::setQueue | ( | const xdispatch::queue & | ) | 
Sets the queue the timer will execute on.
| static void QDispatchTimer::singleShot | ( | const QTime & | , | 
| const xdispatch::queue & | , | ||
| QRunnable * | |||
| ) |  [static] | 
Creates a single shot timer executing the given runnable on the given queue at the given time.
This is quite similar to using QDispatchQueue::after()
| static void QDispatchTimer::singleShot | ( | dispatch_time_t | , | 
| const xdispatch::queue & | , | ||
| dispatch_block_t | |||
| ) |  [static] | 
Creates a single shot timer executing the given block on the given queue at the given time.
This is quite similar to using QDispatchQueue::after()
| static void QDispatchTimer::singleShot | ( | const QTime & | , | 
| const xdispatch::queue & | , | ||
| dispatch_block_t | |||
| ) |  [static] | 
Creates a single shot timer executing the given block on the given queue at the given time.
This is quite similar to using QDispatchQueue::after()
| static void QDispatchTimer::singleShot | ( | dispatch_time_t | , | 
| const xdispatch::queue & | , | ||
| QRunnable * | |||
| ) |  [static] | 
Creates a single shot timer executing the given runnable on the given queue at the given time.
This is quite similar to using QDispatchQueue::after()
| void QDispatchTimer::start | ( | ) |  [slot] | 
| void QDispatchTimer::stop | ( | ) |  [slot] | 
Stops the timer.
Reimplemented from xdispatch::timer.