source: s10k/Vago/converter.h@ 1096

Last change on this file since 1096 was 1093, checked in by s10k, 7 years ago

Vago 1.4

File size: 910 bytes
Line 
1#ifndef CONVERTER_H
2#define CONVERTER_H
3#include <QProcess>
4#include <QProgressBar>
5#include <QThread>
6#ifdef Q_OS_WIN
7#include <QWinTaskbarProgress>
8#endif
9
10#include "utilvago.h"
11
12class Converter : public QThread
13{
14 Q_OBJECT
15public:
16 Converter(QString AppDir, QStringList *myData);
17
18 #ifdef Q_OS_WIN
19 Converter(QString AppDir, QStringList *myData, QWinTaskbarProgress *win7TaskBarProgress);
20 #endif
21private:
22 QString AppDir;
23 QStringList *myData;
24 std::unique_ptr<QProcess> myProcess;
25 #ifdef Q_OS_WIN
26 QWinTaskbarProgress *win7TaskBarProgress = nullptr;
27 #endif
28
29protected:
30 void run(); //for thread
31private slots:
32 void terminateCurrProcess();
33signals:
34 void setupPB(int numberTasks);
35 void taskDone();
36 void resultConversion(QString result, int numErrors);
37 void conversionAborted();
38};
39
40
41
42#endif // CONVERTER_H
Note: See TracBrowser for help on using the repository browser.