author | Drew Gottlieb |
Wed, 05 Dec 2012 18:12:07 +0100 | |
branch | flibqtfrontend |
changeset 8222 | d3dc08500fc0 |
parent 8092 | 08960209db8c |
permissions | -rw-r--r-- |
8092 | 1 |
#ifndef FRONTLIBPOLLER_H |
2 |
#define FRONTLIBPOLLER_H |
|
3 |
||
4 |
#include <QObject> |
|
5 |
#include <QBasicTimer> |
|
6 |
||
7 |
class FrontLibPoller : public QObject |
|
8 |
{ |
|
9 |
Q_OBJECT |
|
10 |
public: |
|
11 |
explicit FrontLibPoller(void (*poll)(void *), void * data, QObject *parent = 0); |
|
12 |
||
13 |
private: |
|
14 |
QBasicTimer m_timer; |
|
15 |
||
16 |
void (*m_poll)(void *); |
|
17 |
void * m_data; |
|
18 |
||
19 |
void timerEvent(QTimerEvent *event); |
|
20 |
}; |
|
21 |
||
22 |
#endif // FRONTLIBPOLLER_H |