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