summaryrefslogtreecommitdiff
path: root/src/organizercore.h
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2016-06-25 11:47:15 +0100
committerThomas Tanner <trtanner@btinternet.com>2016-06-25 11:47:15 +0100
commitc7101be7d8a077eba563a6fd6f15ec8169eeca51 (patch)
tree7aec5619a3a6f953b2dd114b9590737facd42616 /src/organizercore.h
parentd80a77a4cba35e9be01f57ac2c1b3cea3a00e516 (diff)
Some refactoring of the spawn code and to make waitForApplication get the right error code (usually)
A note: It is possible for the executed program to completely exit before MO attempts to get hold of the pid from the job handle, in which case strangeness will happen (this has always been an issue)
Diffstat (limited to 'src/organizercore.h')
-rw-r--r--src/organizercore.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/organizercore.h b/src/organizercore.h
index b50b3e9f..120e83fa 100644
--- a/src/organizercore.h
+++ b/src/organizercore.h
@@ -21,21 +21,28 @@
class ModListSortProxy;
class PluginListSortProxy;
class Profile;
-namespace MOBase { template <typename T> class GuessedValue; }
+namespace MOBase {
+ template <typename T> class GuessedValue;
+ class IModInterface;
+}
namespace MOShared { class DirectoryEntry; }
#include <QDir>
+#include <QFileInfo>
#include <QList>
#include <QObject>
#include <QSettings>
#include <QString>
#include <QStringList>
#include <QThread>
+#include <QVariant>
class QNetworkReply;
class QUrl;
class QWidget;
+#include <Windows.h> //for HANDLE, LPDWORD
+
#include <functional>
#include <vector>
@@ -222,11 +229,7 @@ private:
bool testForSteam();
- /*
- * std::vector<std::pair<QString, QString>> fileMapping(const QString &dataPath,
- const MOShared::DirectoryEntry *base,
- const MOShared::DirectoryEntry *directoryEntry);
-*/
+ bool waitForProcessCompletion(HANDLE handle, LPDWORD exitCode);
private slots: