author | unc0rr |
Wed, 05 Dec 2012 23:55:22 +0400 | |
branch | flibqtfrontend |
changeset 8233 | d3966a555e5e |
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 |