summaryrefslogtreecommitdiffstats
path: root/logic/BaseInstance.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-08-26 06:30:11 +0200
committerPetr Mrázek <peterix@gmail.com>2013-08-26 06:30:11 +0200
commita63c7340a632c634733271332a43aac82bc73799 (patch)
tree6ee5760f8a61ed40b657701a523cd69996a64688 /logic/BaseInstance.h
parent392c58c4b0db7ac5a826a16557712dc005f3705e (diff)
downloadMultiMC-a63c7340a632c634733271332a43aac82bc73799.tar
MultiMC-a63c7340a632c634733271332a43aac82bc73799.tar.gz
MultiMC-a63c7340a632c634733271332a43aac82bc73799.tar.lz
MultiMC-a63c7340a632c634733271332a43aac82bc73799.tar.xz
MultiMC-a63c7340a632c634733271332a43aac82bc73799.zip
Nuke the old instance model, LONG LIVE THE NEW ONE
Diffstat (limited to 'logic/BaseInstance.h')
-rw-r--r--logic/BaseInstance.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/logic/BaseInstance.h b/logic/BaseInstance.h
index a1e6075a..cc9422be 100644
--- a/logic/BaseInstance.h
+++ b/logic/BaseInstance.h
@@ -48,6 +48,9 @@ public:
/// virtual destructor to make sure the destruction is COMPLETE
virtual ~BaseInstance() {};
+ /// nuke thoroughly - deletes the instance contents, notifies the list/model which is responsible of cleaning up the husk
+ void nuke();
+
/// The instance's ID. The ID SHALL be determined by MMC internally. The ID IS guaranteed to be unique.
QString id() const;
@@ -169,6 +172,11 @@ signals:
* \brief Signal emitted when groups are affected in any way
*/
void groupChanged();
+ /*!
+ * \brief The instance just got nuked. Hurray!
+ */
+ void nuked(BaseInstance * inst);
+
protected:
QSharedPointer<BaseInstancePrivate> inst_d;
};