QTfrontend/util/frontlibpoller.h
author unc0rr
Wed, 05 Dec 2012 23:55:22 +0400
branchflibqtfrontend
changeset 8233 d3966a555e5e
parent 8092 08960209db8c
permissions -rw-r--r--
Show others if spectator is in game
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