QTfrontend/util/frontlibpoller.h
author unc0rr
Thu, 22 Nov 2012 23:19:01 +0400
branchflibqtfrontend
changeset 8094 6c5b4e69f03d
parent 8092 08960209db8c
permissions -rw-r--r--
Fix some frontlib bugs

#ifndef FRONTLIBPOLLER_H
#define FRONTLIBPOLLER_H

#include <QObject>
#include <QBasicTimer>

class FrontLibPoller : public QObject
{
    Q_OBJECT
public:
    explicit FrontLibPoller(void (*poll)(void *), void * data, QObject *parent = 0);

private:
    QBasicTimer m_timer;

    void (*m_poll)(void *);
    void * m_data;

    void timerEvent(QTimerEvent *event);
};

#endif // FRONTLIBPOLLER_H