SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
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 - 2019 SEGS Team (see AUTHORS.md)
5  * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md 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:194