ssu
ssusettings_p.h
Go to the documentation of this file.
1 
9 /*
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2.1 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24 
25 #ifndef _SSUSETTINGS_P_H
26 #define _SSUSETTINGS_P_H
27 
28 #include <QSettings>
29 
30 class SsuSettings: public QSettings
31 {
32  Q_OBJECT
33 
34  friend class SettingsTest;
35 
36 public:
37  SsuSettings();
38  SsuSettings(const QString &fileName, Format format, QObject *parent = 0);
43  SsuSettings(const QString &fileName, Format format, const QString &defaultFileName, QObject *parent = 0);
48  SsuSettings(const QString &fileName, const QString &settingsDirectory, QObject *parent = 0);
49 
50 private:
51  QString defaultSettingsFile, settingsd;
52  void merge(bool keepOld = true);
53  static void merge(QSettings *masterSettings, const QStringList &settingsFiles);
54  void upgrade();
55 
56 };
57 
58 #endif
SettingsTest
Definition: settingstest.h:13
SsuSettings
Definition: ssusettings_p.h:30