Mercurial > trustbridge
comparison ui/installwrapper.h @ 285:f23e0ccd5d14
Fix call to windows process.
This now uses the correct parameters, emits the signals
correctly as errors and waits for the process to finish instead
of relying on NOASYNC which did not work for runas and also
made it impossible to get the return code
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 02 Apr 2014 13:45:57 +0000 |
parents | 84ae353688e0 |
children | dc4efb0a70cb |
comparison
equal
deleted
inserted
replaced
284:a0c5eba8eb41 | 285:f23e0ccd5d14 |
---|---|
1 #ifndef UI_INSTALLWRAPPER_H | 1 #ifndef UI_INSTALLWRAPPER_H |
2 #define UI_INSTALLWRAPPER_H | 2 #define UI_INSTALLWRAPPER_H |
3 | 3 |
4 #include <QString> | 4 #include <QString> |
5 #include <QStringList> | 5 #include <QStringList> |
6 #include <QProcess> | |
7 #include <QThread> | 6 #include <QThread> |
8 | 7 |
9 #include "certificate.h" | 8 #include "certificate.h" |
10 /** @file installwrapper.h | 9 /** @file installwrapper.h |
11 * @brief Wrapper around the call to the updated process */ | 10 * @brief Wrapper around the call to the updated process */ |
43 const QStringList& instructions); | 42 const QStringList& instructions); |
44 | 43 |
45 private: | 44 private: |
46 const QString mCertListFile; | 45 const QString mCertListFile; |
47 const QStringList mInstructions; | 46 const QStringList mInstructions; |
48 #ifdef WIN32 | |
49 SHELLEXECUTEINFOW mExecInfo; | |
50 #else | |
51 QProcess cinstProc; | |
52 #endif | |
53 | 47 |
54 protected: | 48 protected: |
55 void run(); | 49 void run(); |
56 | 50 |
57 Q_SIGNALS: | 51 Q_SIGNALS: |