QTfrontend/util/frontlibpoller.h
author unc0rr
Sun, 16 Dec 2012 12:05:32 +0400
branchflibqtfrontend
changeset 8282 1f81bcce3ee6
parent 8092 08960209db8c
permissions -rw-r--r--
Implement some more callbacks

#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