QTfrontend/util/frontlibpoller.h
author Drew Gottlieb
Wed, 05 Dec 2012 18:12:07 +0100
branchflibqtfrontend
changeset 8222 d3dc08500fc0
parent 8092 08960209db8c
permissions -rw-r--r--
GCI2012: Remove Quit Prompt On Mouse Click
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