source: s10k/Vago/converter.h@ 1092

Last change on this file since 1092 was 1047, checked in by s10k, 8 years ago

Added Vago v1.0

File size: 981 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, Logger *myLogger, QStringList *myData);
17
18 #ifdef Q_OS_WIN
19 Converter(QString AppDir, Logger *myLogger, QStringList *myData, QWinTaskbarProgress *win7TaskBarProgress);
20 #endif
21private:
22 QString AppDir;
23 Logger *myLogger;
24 QStringList *myData;
25 QProcess *myProcess;
26 bool processHasKilled;
27 #ifdef Q_OS_WIN
28 QWinTaskbarProgress *win7TaskBarProgress = nullptr;
29 #endif
30
31protected:
32 void run(); //for thread
33private slots:
34 void terminateCurrProcess();
35signals:
36 void setupPB(int numberTasks);
37 void taskDone();
38 void resultConversion(QString result, int numErrors);
39 void conversionAborted();
40};
41
42
43
44#endif // CONVERTER_H
Note: See TracBrowser for help on using the repository browser.