summaryrefslogtreecommitdiff
path: root/src/profilesdialog.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-10-24 20:54:22 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2020-10-24 20:54:22 +0200
commit8e591143a5fce58597a1597887b1730e24263224 (patch)
tree2314392a167e4cc1ca63207468130abfe8062e92 /src/profilesdialog.h
parent52cfb8e8a7609c8b763652e1575a769dd5fe1b02 (diff)
Add IOrganizer::onProfileXXX callbacks.
Diffstat (limited to 'src/profilesdialog.h')
-rw-r--r--src/profilesdialog.h21
1 files changed, 20 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
#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);