author | Mitchell Kember <mk12360@gmail.com> |
Tue, 04 Dec 2012 16:53:47 -0500 | |
branch | flibqtfrontend |
changeset 8248 | 34d1aceb31aa |
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 |