diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-29 15:54:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-29 15:54:49 +0300 |
commit | 88f71d6a8673932d178408e7632a6eea08623294 (patch) | |
tree | 0cc0c1d9bc663abaec614441164db86e88f878fe /src/configmanager.h | |
parent | 13dc76b540a0fa9bd62e3e996dd707b610e792e5 (diff) | |
download | plus-88f71d6a8673932d178408e7632a6eea08623294.tar.gz plus-88f71d6a8673932d178408e7632a6eea08623294.tar.bz2 plus-88f71d6a8673932d178408e7632a6eea08623294.tar.xz plus-88f71d6a8673932d178408e7632a6eea08623294.zip |
Move config related functions from client into configmanager.
Diffstat (limited to 'src/configmanager.h')
-rw-r--r-- | src/configmanager.h | 45 |
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 |