summaryrefslogtreecommitdiffstats
path: root/src/consoleworker.h
blob: 0f11fda5b212d5db459791243c7429a3c06deddd (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
35
36
#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;
        IDataSource* _cpuLoadSource;
        QVector<QString> _series;
        qint64 _startTimeMs;
};

#endif