diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2020-10-26 21:39:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-26 21:39:13 +0100 |
| commit | 61308ae2a6ed1123d3043659e72e300dc5c68cca (patch) | |
| tree | 69976cb8870e1bffda3d149627123e1ecf24c654 /src/organizercore.h | |
| parent | 0ca5d2843e48169e58978439f9f6bc60c579efce (diff) | |
| parent | d42399e419fa6b769e343b8cf77480b6ac172b0f (diff) | |
Merge branch 'master' into imodlist-updates
Diffstat (limited to 'src/organizercore.h')
| -rw-r--r-- | src/organizercore.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/organizercore.h b/src/organizercore.h index 61caeed0..70ce94f5 100644 --- a/src/organizercore.h +++ b/src/organizercore.h @@ -81,6 +81,9 @@ 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 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&)>;
@@ -329,6 +332,9 @@ public: bool onAboutToRun(const std::function<bool(const QString&)>& func);
bool onFinishedRun(const std::function<void(const QString&, unsigned int)>& func);
bool onUserInterfaceInitialized(std::function<void(QMainWindow*)> const& func);
+ bool onProfileCreated(std::function<void(MOBase::IProfile*)> const& func);
+ bool onProfileRenamed(std::function<void(MOBase::IProfile*, QString const&, QString const&)> const& func);
+ bool onProfileRemoved(std::function<void(QString const&)> const& func);
bool onProfileChanged(std::function<void(MOBase::IProfile*, MOBase::IProfile*)> const& func);
bool onPluginSettingChanged(std::function<void(QString const&, const QString& key, const QVariant&, const QVariant&)> const& func);
@@ -370,6 +376,10 @@ public slots: void userInterfaceInitialized();
+ void profileCreated(MOBase::IProfile* profile);
+ void profileRenamed(MOBase::IProfile* profile, QString const& oldName, QString const& newName);
+ void profileRemoved(QString const& profileName);
+
bool nexusApi(bool retry = false);
signals:
@@ -444,6 +454,9 @@ private: SignalAboutToRunApplication m_AboutToRun;
SignalFinishedRunApplication m_FinishedRun;
SignalUserInterfaceInitialized m_UserInterfaceInitialized;
+ SignalProfileCreated m_ProfileCreated;
+ SignalProfileRenamed m_ProfileRenamed;
+ SignalProfileRemoved m_ProfileRemoved;
SignalProfileChanged m_ProfileChanged;
SignalPluginSettingChanged m_PluginSettingChanged;
|
