aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/kernel/persistenceservice.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25/kernel/persistenceservice.h')
-rwxr-xr-xengines/sword25/kernel/persistenceservice.h66
1 files changed, 35 insertions, 31 deletions
diff --git a/engines/sword25/kernel/persistenceservice.h b/engines/sword25/kernel/persistenceservice.h
index e707d91f94..2ab1747688 100755
--- a/engines/sword25/kernel/persistenceservice.h
+++ b/engines/sword25/kernel/persistenceservice.h
@@ -1,21 +1,27 @@
-// -----------------------------------------------------------------------------
-// This file is part of Broken Sword 2.5
-// Copyright (c) Malte Thiesen, Daniel Queteschiner and Michael Elsdörfer
-//
-// Broken Sword 2.5 is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// Broken Sword 2.5 is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with Broken Sword 2.5; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-// -----------------------------------------------------------------------------
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
#ifndef SWORD25_PERSISTENCESERVICE_H
#define SWORD25_PERSISTENCESERVICE_H
@@ -25,42 +31,38 @@
// -----------------------------------------------------------------------------
#include "sword25/kernel/common.h"
-#include "sword25/kernel/memlog_off.h"
-#include <string>
-#include <vector>
-#include "sword25/kernel/memlog_on.h"
+
+namespace Sword25 {
// -----------------------------------------------------------------------------
// Class declaration
// -----------------------------------------------------------------------------
-class BS_PersistenceService
-{
+class BS_PersistenceService {
public:
BS_PersistenceService();
virtual ~BS_PersistenceService();
// -----------------------------------------------------------------------------
- // Singleton-Methode
+ // Singleton Method
// -----------------------------------------------------------------------------
- static BS_PersistenceService & GetInstance();
-
+ static BS_PersistenceService &GetInstance();
// -----------------------------------------------------------------------------
// Interface
// -----------------------------------------------------------------------------
static unsigned int GetSlotCount();
- static std::string GetSavegameDirectory();
+ static Common::String GetSavegameDirectory();
void ReloadSlots();
bool IsSlotOccupied(unsigned int SlotID);
bool IsSavegameCompatible(unsigned int SlotID);
- std::string & GetSavegameDescription(unsigned int SlotID);
- std::string & GetSavegameFilename(unsigned int SlotID);
+ Common::String &GetSavegameDescription(unsigned int SlotID);
+ Common::String &GetSavegameFilename(unsigned int SlotID);
- bool SaveGame(unsigned int SlotID, const std::string & ScreenshotFilename);
+ bool SaveGame(unsigned int SlotID, const Common::String & ScreenshotFilename);
bool LoadGame(unsigned int SlotID);
private:
@@ -68,4 +70,6 @@ private:
Impl * m_impl;
};
+} // End of namespace Sword25
+
#endif