author | unc0rr |
Sun, 25 Nov 2012 22:17:11 +0400 | |
branch | flibqtfrontend |
changeset 8103 | c247346d296f |
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 |