Overte C++ Documentation
SettingHelpers.h
1 //
2 // SettingHelpers.h
3 // libraries/shared/src
4 //
5 // Created by Clement on 9/13/16.
6 // Copyright 2016 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 #ifndef hifi_SettingHelpers_h
13 #define hifi_SettingHelpers_h
14 
15 #include <QSettings>
16 
17 extern const QSettings::Format JSON_FORMAT;
18 
19 QString settingsFilename();
20 
21 bool readJSONFile(QIODevice& device, QSettings::SettingsMap& map);
22 bool writeJSONFile(QIODevice& device, const QSettings::SettingsMap& map);
23 
24 void loadOldINIFile(QSettings& settings);
25 
26 #endif // hifi_SettingHelpers_h