summaryrefslogtreecommitdiffstats
path: root/src/consoleworker.h
blob: 276f9873152e29fd654cf8eca0675049ff0733a6 (plain) (blame)
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
#ifndef _CONSOLEWORKER_H_
#define _CONSOLEWORKER_H_

#include "datasource/idatasource.h"
#include "copythread.h"

#include <QString>
#include <QTimer>
#include <QVector>

class CopyThread;

class ConsoleWorker : public QObject
{
    Q_OBJECT

public:
    ConsoleWorker(QString fileName);
    virtual ~ConsoleWorker();

private slots:
        void logMessage(CopyThread::LogMessageId msgId, QString message);
        void testFinished();
        void updateTimer();

private:
        CopyThread *_thread;
        QString _fileName;
        QTimer _timer;
        IDataSource* _networkSource;
        QVector<int> _series;
};

#endif