QTfrontend/util/frontlibpoller.h
author Mitchell Kember <mk12360@gmail.com>
Tue, 04 Dec 2012 16:53:47 -0500
branchflibqtfrontend
changeset 8248 34d1aceb31aa
parent 8092 08960209db8c
permissions -rw-r--r--
Cleaned up frontend options a bit and added a couple WhatsThis messages.
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