summaryrefslogtreecommitdiff
path: root/src/configmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-29 15:54:49 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-29 15:54:49 +0300
commit88f71d6a8673932d178408e7632a6eea08623294 (patch)
tree0cc0c1d9bc663abaec614441164db86e88f878fe /src/configmanager.h
parent13dc76b540a0fa9bd62e3e996dd707b610e792e5 (diff)
downloadmv-88f71d6a8673932d178408e7632a6eea08623294.tar.gz
mv-88f71d6a8673932d178408e7632a6eea08623294.tar.bz2
mv-88f71d6a8673932d178408e7632a6eea08623294.tar.xz
mv-88f71d6a8673932d178408e7632a6eea08623294.zip
Move config related functions from client into configmanager.
Diffstat (limited to 'src/configmanager.h')
-rw-r--r--src/configmanager.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/configmanager.h b/src/configmanager.h
new file mode 100644
index 000000000..87ed939a6
--- /dev/null
+++ b/src/configmanager.h
@@ -0,0 +1,45 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2004-2009 The Mana World Development Team
+ * Copyright (C) 2009-2010 The Mana Developers
+ * Copyright (C) 2011-2014 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * 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
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef CONFIGMANAGER_H
+#define CONFIGMANAGER_H
+
+#include <string>
+
+#include "localconsts.h"
+
+class ConfigManager final
+{
+ public:
+ static void initConfiguration();
+
+ static void initServerConfig(const std::string &serverName);
+
+#ifndef ANDROID
+ static void storeSafeParameters();
+#endif
+ static void backupConfig(const std::string &name);
+
+ static void checkConfigVersion();
+};
+
+#endif // CONFIGMANAGER_H