summaryrefslogtreecommitdiff
path: root/src/organizercore.h
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2021-01-14 09:11:52 +0100
committerGitHub <noreply@github.com>2021-01-14 09:11:52 +0100
commit899308b31d541e78a3e4395bf33cd66c5ec4f769 (patch)
treee360f819bbe96e7cc30626a53395c466967e8e0f /src/organizercore.h
parent34f7ae24501f75d5a74a09b6af939db6edaf6f1c (diff)
parent853db4a60a0a701b92d3eb7be7c3a0d8d8f6f2b1 (diff)
Merge pull request #1360 from Holt59/organizercore-cleaning
OrganizerCore cleaning.
Diffstat (limited to 'src/organizercore.h')
-rw-r--r--src/organizercore.h47
1 files changed, 11 insertions, 36 deletions
diff --git a/src/organizercore.h b/src/organizercore.h
index 905fb111..8add5542 100644
--- a/src/organizercore.h
+++ b/src/organizercore.h
@@ -65,7 +65,8 @@ private:
struct SignalCombinerAnd
{
- typedef bool result_type;
+ using result_type = bool;
+
template<typename InputIterator>
bool operator()(InputIterator first, InputIterator last) const
{
@@ -81,14 +82,14 @@ private:
private:
- using SignalAboutToRunApplication = boost::signals2::signal<bool (const QString&), SignalCombinerAnd>;
- using SignalFinishedRunApplication = boost::signals2::signal<void (const QString&, unsigned int)>;
- using SignalUserInterfaceInitialized = boost::signals2::signal<void (QMainWindow*)>;
+ using SignalAboutToRunApplication = boost::signals2::signal<bool(const QString&), SignalCombinerAnd>;
+ using SignalFinishedRunApplication = boost::signals2::signal<void(const QString&, unsigned int)>;
+ using SignalUserInterfaceInitialized = boost::signals2::signal<void(QMainWindow*)>;
using SignalProfileCreated = boost::signals2::signal<void(MOBase::IProfile*)>;
using SignalProfileRenamed = boost::signals2::signal<void(MOBase::IProfile*, QString const&, QString const&)>;
using SignalProfileRemoved = boost::signals2::signal<void(QString const&)>;
- using SignalProfileChanged = boost::signals2::signal<void (MOBase::IProfile *, MOBase::IProfile *)>;
- using SignalPluginSettingChanged = boost::signals2::signal<void (QString const&, const QString& key, const QVariant&, const QVariant&)>;
+ using SignalProfileChanged = boost::signals2::signal<void(MOBase::IProfile *, MOBase::IProfile *)>;
+ using SignalPluginSettingChanged = boost::signals2::signal<void(QString const&, const QString& key, const QVariant&, const QVariant&)>;
using SignalPluginEnabled = boost::signals2::signal<void(const MOBase::IPlugin*)>;
public:
@@ -300,15 +301,6 @@ public:
static void setGlobalCoreDumpType(env::CoreDumpTypes type);
static std::wstring getGlobalCoreDumpPath();
- /**
- * @brief Returns the name of all the mods in the priority order of the given profile.
- *
- * @param profile Profile to use for the mod order.
- *
- * @return the name of all the mods in the priority order of the given profile.
- */
- QStringList modsSortedByProfilePriority(Profile* profile) const;
-
public:
MOBase::IModRepositoryBridge *createNexusBridge() const;
QString profileName() const;
@@ -348,16 +340,6 @@ public:
boost::signals2::connection onPluginEnabled(std::function<void(const MOBase::IPlugin*)> const& func);
boost::signals2::connection onPluginDisabled(std::function<void(const MOBase::IPlugin*)> const& func);
- bool getArchiveParsing() const
- {
- return m_ArchiveParsing;
- }
-
- void setArchiveParsing(bool archiveParsing)
- {
- m_ArchiveParsing = archiveParsing;
- }
-
public: // IPluginDiagnose interface
virtual std::vector<unsigned int> activeProblems() const;
@@ -396,16 +378,14 @@ public slots:
signals:
- /**
- * @brief emitted after a mod has been installed
- * @node this is currently only used for tutorials
- */
+ // emitted after a mod has been installed
+ //
void modInstalled(const QString &modName);
+ // emitted when the managed game changes
+ //
void managedGameChanged(MOBase::IPluginGame const *gamePlugin);
- void close();
-
// emitted when the profile is changed, before notifying plugins
//
// the new profile can be stored but the old one is temporary and
@@ -422,13 +402,9 @@ private:
void saveCurrentProfile();
void storeSettings();
- bool queryApi(QString &apiKey);
-
void updateModActiveState(int index, bool active);
void updateModsActiveState(const QList<unsigned int> &modIndices, bool active);
- bool testForSteam(bool *found, bool *access);
-
bool createDirectory(const QString &path);
QString oldMO1HookDll() const;
@@ -505,7 +481,6 @@ private:
bool m_DirectoryUpdate;
bool m_ArchivesInit;
- bool m_ArchiveParsing{ m_Settings.archiveParsing() };
MOBase::DelayedFileWriter m_PluginListsWriter;
UsvfsConnector m_USVFS;