summaryrefslogtreecommitdiff
path: root/src/profilesdialog.h
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2020-10-26 21:39:13 +0100
committerGitHub <noreply@github.com>2020-10-26 21:39:13 +0100
commit61308ae2a6ed1123d3043659e72e300dc5c68cca (patch)
tree69976cb8870e1bffda3d149627123e1ecf24c654 /src/profilesdialog.h
parent0ca5d2843e48169e58978439f9f6bc60c579efce (diff)
parentd42399e419fa6b769e343b8cf77480b6ac172b0f (diff)
Merge branch 'master' into imodlist-updates
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);