From 8e591143a5fce58597a1597887b1730e24263224 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Sat, 24 Oct 2020 20:54:22 +0200 Subject: Add IOrganizer::onProfileXXX callbacks. --- src/organizercore.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/organizercore.h') diff --git a/src/organizercore.h b/src/organizercore.h index 813bf084..b545e4d7 100644 --- a/src/organizercore.h +++ b/src/organizercore.h @@ -82,6 +82,9 @@ private: using SignalFinishedRunApplication = boost::signals2::signal; using SignalModInstalled = boost::signals2::signal; using SignalUserInterfaceInitialized = boost::signals2::signal; + using SignalProfileCreated = boost::signals2::signal; + using SignalProfileRenamed = boost::signals2::signal; + using SignalProfileRemoved = boost::signals2::signal; using SignalProfileChanged = boost::signals2::signal; using SignalPluginSettingChanged = boost::signals2::signal; @@ -326,6 +329,9 @@ public: bool onAboutToRun(const std::function& func); bool onFinishedRun(const std::function& func); bool onUserInterfaceInitialized(std::function const& func); + bool onProfileCreated(std::function const& func); + bool onProfileRenamed(std::function const& func); + bool onProfileRemoved(std::function const& func); bool onProfileChanged(std::function const& func); bool onPluginSettingChanged(std::function const& func); @@ -367,6 +373,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: @@ -442,6 +452,9 @@ private: SignalFinishedRunApplication m_FinishedRun; SignalModInstalled m_ModInstalled; SignalUserInterfaceInitialized m_UserInterfaceInitialized; + SignalProfileCreated m_ProfileCreated; + SignalProfileRenamed m_ProfileRenamed; + SignalProfileRemoved m_ProfileRemoved; SignalProfileChanged m_ProfileChanged; SignalPluginSettingChanged m_PluginSettingChanged; -- cgit v1.3.1