summaryrefslogtreecommitdiff
path: root/src/savegame.h
diff options
context:
space:
mode:
authorTanninOne <seppleviathan@gmx.de>2015-12-06 13:24:19 +0100
committerTanninOne <seppleviathan@gmx.de>2015-12-06 13:24:19 +0100
commite31cf3f2fd99073d22fdddfdb106a59858e14299 (patch)
treede7bbfd6de6afe830f8ec1a624876cf174aab376 /src/savegame.h
parent688e149c96c29d8249c9db416f5773cfc7baad6d (diff)
parent3670ab2528ff6a129af4e4aeaf50574e2c9080ba (diff)
Merge pull request #372 from ThosRTanner/issue/356
Refactor gameinfo & 'shared' library to use game plugins (9 of 17)
Diffstat (limited to 'src/savegame.h')
-rw-r--r--src/savegame.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/savegame.h b/src/savegame.h
index 1fd2f7ab..d1bf4691 100644
--- a/src/savegame.h
+++ b/src/savegame.h
@@ -31,6 +31,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
+namespace MOBase { class IPluginGame; }
/**
* @brief represents a single save game
@@ -42,22 +43,13 @@ Q_OBJECT
public:
/**
- * @brief construct an empty object
- **/
- SaveGame(QObject *parent = 0);
-
- /**
* @brief construct a save game and immediately read out information from the file
*
* @param filename absolute path of the save game file
**/
- SaveGame(QObject *parent, const QString &filename);
-
- SaveGame(const SaveGame& reference);
-
- SaveGame& operator=(const SaveGame &reference);
+ SaveGame(QObject *parent, const QString &filename, MOBase::IPluginGame const *game);
- ~SaveGame();
+ virtual ~SaveGame();
/**
* @brief read out information from a savegame
@@ -111,10 +103,6 @@ public:
**/
const QImage &screenshot() const { return m_Screenshot; }
-private:
-
- void setCreationTime(const QString &fileName);
-
protected:
QString m_FileName;
@@ -125,6 +113,8 @@ protected:
SYSTEMTIME m_CreationTime;
QImage m_Screenshot;
+private:
+ MOBase::IPluginGame const * const m_Game;
};