summaryrefslogtreecommitdiff
path: root/src/organizercore.h
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2015-12-19 20:49:54 +0000
committerThomas Tanner <trtanner@btinternet.com>2015-12-19 20:49:54 +0000
commit5f5184ebfe9a6b7102654863cbb390a610ab1563 (patch)
treeb7a52083cc2b1c92bf5a90e0548d00fab76849ed /src/organizercore.h
parent30b29635f67d6ab1cd00b6787ab58bf36934da55 (diff)
Changes to support getting list of mods / esps to activate from game plugin
Diffstat (limited to 'src/organizercore.h')
-rw-r--r--src/organizercore.h29
1 files changed, 21 insertions, 8 deletions
diff --git a/src/organizercore.h b/src/organizercore.h
index 5cfbaca4..b50b3e9f 100644
--- a/src/organizercore.h
+++ b/src/organizercore.h
@@ -2,30 +2,42 @@
#define ORGANIZERCORE_H
-#include "profile.h"
#include "selfupdater.h"
-#include "iuserinterface.h"
+#include "iuserinterface.h" //should be class IUserInterface;
#include "settings.h"
#include "modlist.h"
+#include "modinfo.h"
#include "pluginlist.h"
#include "directoryrefresher.h"
#include "installationmanager.h"
#include "downloadmanager.h"
-#include "modlistsortproxy.h"
-#include "pluginlistsortproxy.h"
#include "executableslist.h"
-#include <directoryentry.h>
#include <imoinfo.h>
#include <iplugindiagnose.h>
-#include <iplugingame.h>
#include <versioninfo.h>
-#include <guessedvalue.h>
#include <delayedfilewriter.h>
#include <boost/signals2.hpp>
+
+class ModListSortProxy;
+class PluginListSortProxy;
+class Profile;
+namespace MOBase { template <typename T> class GuessedValue; }
+namespace MOShared { class DirectoryEntry; }
+
+#include <QDir>
+#include <QList>
+#include <QObject>
#include <QSettings>
#include <QString>
+#include <QStringList>
#include <QThread>
+class QNetworkReply;
+class QUrl;
+class QWidget;
+
+#include <functional>
+#include <vector>
class PluginContainer;
@@ -89,7 +101,7 @@ public:
m_ExecutablesList = executablesList;
}
- Profile *currentProfile() { return m_CurrentProfile; }
+ Profile *currentProfile() const { return m_CurrentProfile; }
void setCurrentProfile(const QString &profileName);
std::vector<QString> enabledArchives();
@@ -155,6 +167,7 @@ public:
bool onAboutToRun(const std::function<bool (const QString &)> &func);
bool onFinishedRun(const std::function<void (const QString &, unsigned int)> &func);
void refreshModList(bool saveChanges = true);
+ QStringList modsSortedByProfilePriority() const;
//std::vector<std::pair<QString, QString> > fileMapping();