summaryrefslogtreecommitdiff
path: root/qmake/include/private/qsettings_p.h
Unidiff
Diffstat (limited to 'qmake/include/private/qsettings_p.h') (more/less context) (ignore whitespace changes)
-rw-r--r--qmake/include/private/qsettings_p.h30
1 files changed, 21 insertions, 9 deletions
diff --git a/qmake/include/private/qsettings_p.h b/qmake/include/private/qsettings_p.h
index 095291c..4b76f44 100644
--- a/qmake/include/private/qsettings_p.h
+++ b/qmake/include/private/qsettings_p.h
@@ -1,33 +1,43 @@
1/**************************************************************************** 1/****************************************************************************
2** $Id$ 2**
3** 3**
4** Definition of QSettings related classes 4** Definition of QSettings related classes
5** 5**
6** Copyright (C) 1992-2002 Trolltech AS. All rights reserved. 6** Created : 990124
7** 7**
8** This file is part of the tools module of the Qt GUI Toolkit. 8** Copyright (C) 1999-2002 Trolltech AS. All rights reserved.
9** 9**
10** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition 10** This file is part of the kernel module of the Qt GUI Toolkit.
11** licenses for Windows may use this file in accordance with the Qt Commercial 11**
12** License Agreement provided with the Software. 12** This file may be distributed under the terms of the Q Public License
13** as defined by Trolltech AS of Norway and appearing in the file
14** LICENSE.QPL included in the packaging of this file.
15**
16** This file may be distributed and/or modified under the terms of the
17** GNU General Public License version 2 as published by the Free Software
18** Foundation and appearing in the file LICENSE.GPL included in the
19** packaging of this file.
13** 20**
14** This file is not available for use under any other license without 21** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
15** express written permission from the copyright holder. 22** licenses may use this file in accordance with the Qt Commercial License
23** Agreement provided with the Software.
16** 24**
17** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 25** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
18** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 26** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19** 27**
20** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for 28** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
21** information about Qt Commercial License Agreements. 29** information about Qt Commercial License Agreements.
30** See http://www.trolltech.com/qpl/ for QPL licensing information.
31** See http://www.trolltech.com/gpl/ for GPL licensing information.
22** 32**
23** Contact info@trolltech.com if any conditions of this licensing are 33** Contact info@trolltech.com if any conditions of this licensing are
24** not clear to you. 34** not clear to you.
25** 35**
26**********************************************************************/ 36**********************************************************************/
27 37
28#ifndef QSETTINGS_P_H 38#ifndef QSETTINGS_P_H
29#define QSETTINGS_P_H 39#define QSETTINGS_P_H
30 40
31// 41//
32// W A R N I N G 42// W A R N I N G
33// ------------- 43// -------------
@@ -37,24 +47,25 @@
37// version without notice, or even be removed. 47// version without notice, or even be removed.
38// 48//
39// We mean it. 49// We mean it.
40// 50//
41// 51//
42 52
43#ifndef QT_H 53#ifndef QT_H
44#include "qstringlist.h" 54#include "qstringlist.h"
45#include "qmap.h" 55#include "qmap.h"
46#include "qvaluestack.h" 56#include "qvaluestack.h"
47#endif // QT_H 57#endif // QT_H
48 58
59#ifndef QT_NO_SETTINGS
49class QSettingsSysPrivate; 60class QSettingsSysPrivate;
50 61
51// QSettingsGroup is a map of key/value pairs 62// QSettingsGroup is a map of key/value pairs
52class QSettingsGroup : public QMap<QString,QString> 63class QSettingsGroup : public QMap<QString,QString>
53{ 64{
54public: 65public:
55 QSettingsGroup(); 66 QSettingsGroup();
56 67
57 bool modified; 68 bool modified;
58}; 69};
59 70
60// QSettingsHeading is a map of heading/group pairs 71// QSettingsHeading is a map of heading/group pairs
@@ -119,15 +130,16 @@ public:
119 QStringsysReadEntry( const QString &, const QString &def = QString::null, bool * = 0 ) const; 130 QStringsysReadEntry( const QString &, const QString &def = QString::null, bool * = 0 ) const;
120 int sysReadNumEntry( const QString &, int def = 0, bool * = 0 ) const; 131 int sysReadNumEntry( const QString &, int def = 0, bool * = 0 ) const;
121 doublesysReadDoubleEntry( const QString &, double def = 0, bool * = 0 ) const; 132 doublesysReadDoubleEntry( const QString &, double def = 0, bool * = 0 ) const;
122 boolsysReadBoolEntry( const QString &, bool def = 0, bool * = 0 ) const; 133 boolsysReadBoolEntry( const QString &, bool def = 0, bool * = 0 ) const;
123 134
124 boolsysRemoveEntry( const QString & ); 135 boolsysRemoveEntry( const QString & );
125 136
126 boolsysSync(); 137 boolsysSync();
127 138
128 voidsysInsertSearchPath( QSettings::System, const QString & ); 139 voidsysInsertSearchPath( QSettings::System, const QString & );
129 voidsysRemoveSearchPath( QSettings::System, const QString & ); 140 voidsysRemoveSearchPath( QSettings::System, const QString & );
130#endif 141#endif
131};
132 142
143};
144#endif //QT_NO_SETTINGS
133#endif // QSETTINGS_P_H 145#endif // QSETTINGS_P_H