QTfrontend/util/frontlibpoller.h
author unc0rr
Sun, 25 Nov 2012 22:17:11 +0400
branchflibqtfrontend
changeset 8103 c247346d296f
parent 8092 08960209db8c
permissions -rw-r--r--
Convert HWTeam to be a wrapper to flib_team
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8092
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
     1
#ifndef FRONTLIBPOLLER_H
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
     2
#define FRONTLIBPOLLER_H
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
     3
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
     4
#include <QObject>
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
     5
#include <QBasicTimer>
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
     6
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
     7
class FrontLibPoller : public QObject
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
     8
{
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
     9
    Q_OBJECT
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
    10
public:
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
    11
    explicit FrontLibPoller(void (*poll)(void *), void * data, QObject *parent = 0);
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
    12
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
    13
private:
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
    14
    QBasicTimer m_timer;
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
    15
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
    16
    void (*m_poll)(void *);
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
    17
    void * m_data;
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
    18
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
    19
    void timerEvent(QTimerEvent *event);
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
    20
};
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
    21
08960209db8c Try to use map preview facilities:
unc0rr
parents:
diff changeset
    22
#endif // FRONTLIBPOLLER_H