qconupdater.h 819 Bytes
Newer Older
Alexander Steffens's avatar
Alexander Steffens committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
#ifndef QCONUPDATER_H
#define QCONUPDATER_H

#include <QThread>
#include <QMutex>
#include "qconcentrator.h"
#include "concentrator_def.h"


class QConcentrator;

class QConUpdater : public QThread
{
    Q_OBJECT

public:
    explicit QConUpdater(QObject *parent, QMutex *mutex);

    bool    _StopWorker;

signals:
    void    OUpdaterFinished(int mode);
    void    OUpdaterStarted(int mode);
    void    OUpdaterReady();
    void    OUpdateGrafik(bool update, bool resetauto);
    void    OSetValue(int,int,QVariant);

public slots:
    void    IUpdaterStop();
    void    IUpdaterStart(int mode);

protected:
    QMutex              *_Mutex;

private:
    void run();


    QConcentrator       *_Partner;
    int                 _WorkerMode;

};

#endif // QCONUPDATER_H