SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Settings.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2018 SEGS Team (see Authors.txt)
5  * This software is licensed! (See License.txt for details)
6  */
7 
8 #pragma once
9 #include <QSettings>
10 #include <QString>
11 
12 class Settings {
13 
14 public:
15  static void setSettingsPath(const QString path);
16  static QString getSettingsPath();
17 
18  void createSettingsFile();
19  void setDefaultSettings();
20 
21 private:
22  Settings();
23  Settings(Settings const&);
24  Settings& operator=(Settings const&);
25 
26  static QString m_settings_path;
27 };
28 
29 void settingsDump();
30 void settingsDump(QSettings *s);
void createSettingsFile()
Definition: Settings.cpp:49
static void setSettingsPath(const QString path)
Definition: Settings.cpp:33
void setDefaultSettings()
Definition: Settings.cpp:100
Definition: Settings.h:12
static QString getSettingsPath()
Definition: Settings.cpp:41
void settingsDump()
Definition: Settings.cpp:161