QTfrontend/util/frontlibpoller.h
author unc0rr
Sun, 25 Nov 2012 22:17:11 +0400
branchflibqtfrontend
changeset 8103 c247346d296f
parent 8092 08960209db8c
permissions -rw-r--r--
Convert HWTeam to be a wrapper to flib_team

#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