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/profilesdialog.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'src/profilesdialog.h') diff --git a/src/profilesdialog.h b/src/profilesdialog.h index a47367be..08298d0e 100644 --- a/src/profilesdialog.h +++ b/src/profilesdialog.h @@ -22,6 +22,7 @@ along with Mod Organizer. If not, see . #include "tutorabledialog.h" class Profile; +class OrganizerCore; class QListWidget; class QListWidgetItem; @@ -46,9 +47,10 @@ public: * @brief constructor * * @param profileName currently enabled profile + * @param organizer * @param parent parent widget **/ - explicit ProfilesDialog(const QString &profileName, MOBase::IPluginGame const *game, QWidget *parent = 0); + explicit ProfilesDialog(const QString &profileName, OrganizerCore &organizer, QWidget *parent = 0); ~ProfilesDialog(); // also saves and restores geometry @@ -61,6 +63,23 @@ public: **/ bool failed() const { return m_FailState; } +signals: + + /** + * @brief Signal emitted when a profile is created. + */ + void profileCreated(Profile* profile); + + /** + * @brief Signal emitted when a profile is renamed. + */ + void profileRenamed(Profile* profile, QString const& oldName, QString const& newName); + + /** + * @brief Signal emitted when a profile has been removed. + */ + void profileRemoved(QString const& profileName); + protected: virtual void showEvent(QShowEvent *event); -- cgit v1.3.1