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

#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