Diffstat (limited to 'qmake/include/private/qsettings_p.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | qmake/include/private/qsettings_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/include/private/qsettings_p.h b/qmake/include/private/qsettings_p.h index 18d118b..095291c 100644 --- a/qmake/include/private/qsettings_p.h +++ b/qmake/include/private/qsettings_p.h | |||
@@ -49,85 +49,85 @@ | |||
49 | class QSettingsSysPrivate; | 49 | class QSettingsSysPrivate; |
50 | 50 | ||
51 | // QSettingsGroup is a map of key/value pairs | 51 | // QSettingsGroup is a map of key/value pairs |
52 | class QSettingsGroup : public QMap<QString,QString> | 52 | class QSettingsGroup : public QMap<QString,QString> |
53 | { | 53 | { |
54 | public: | 54 | public: |
55 | QSettingsGroup(); | 55 | QSettingsGroup(); |
56 | 56 | ||
57 | bool modified; | 57 | bool modified; |
58 | }; | 58 | }; |
59 | 59 | ||
60 | // QSettingsHeading is a map of heading/group pairs | 60 | // QSettingsHeading is a map of heading/group pairs |
61 | class QSettingsHeading : public QMap<QString,QSettingsGroup> | 61 | class QSettingsHeading : public QMap<QString,QSettingsGroup> |
62 | { | 62 | { |
63 | public: | 63 | public: |
64 | QSettingsHeading::Iterator git; | 64 | QSettingsHeading::Iterator git; |
65 | void read(const QString &); | 65 | void read(const QString &); |
66 | void parseLine(QTextStream &); | 66 | void parseLine(QTextStream &); |
67 | }; | 67 | }; |
68 | 68 | ||
69 | 69 | ||
70 | class QSettingsPrivate | 70 | class QSettingsPrivate |
71 | { | 71 | { |
72 | public: | 72 | public: |
73 | QSettingsPrivate( QSettings::Format format ); | 73 | QSettingsPrivate( QSettings::Format format ); |
74 | ~QSettingsPrivate(); | 74 | ~QSettingsPrivate(); |
75 | 75 | ||
76 | QSettingsGroup readGroup(); | 76 | QSettingsGroup readGroup(); |
77 | void removeGroup(const QString &); | 77 | void removeGroup(const QString &); |
78 | void writeGroup(const QString &, const QString &); | 78 | void writeGroup(const QString &, const QString &); |
79 | QDateTime modificationTime(); | 79 | QDateTime modificationTime(); |
80 | 80 | ||
81 | QStringList searchPaths; | 81 | QStringList searchPaths; |
82 | QMap<QString,QSettingsHeading> headings; | 82 | QMap<QString,QSettingsHeading> headings; |
83 | QString group; | 83 | QString group; |
84 | QString heading; | 84 | QString heading; |
85 | 85 | ||
86 | /*### static data brings threading trouble | 86 | /*### static data brings threading trouble |
87 | static QString *defProduct; | 87 | static QString *defProduct; |
88 | static QString *defDomain; | 88 | static QString *defDomain; |
89 | */ | 89 | */ |
90 | QValueStack<QString> groupStack; | 90 | QValueStack<QString> groupStack; |
91 | QString groupPrefix; | 91 | QString groupPrefix; |
92 | 92 | ||
93 | bool groupDirty :1; | 93 | bool groupDirty :1; |
94 | bool modified :1; | 94 | bool modified :1; |
95 | bool globalScope :1; | 95 | bool globalScope :1; |
96 | 96 | ||
97 | #if defined(Q_WS_WIN) || defined(Q_OS_MAC) | 97 | #if !defined(QWS) && (defined(Q_WS_WIN) || defined(Q_OS_MAC)) |
98 | // system dependent implementations to use the | 98 | // system dependent implementations to use the |
99 | // system specific setting database (ie. registry on Windows) | 99 | // system specific setting database (ie. registry on Windows) |
100 | 100 | ||
101 | QSettingsSysPrivate *sysd; | 101 | QSettingsSysPrivate *sysd; |
102 | voidsysInit(); | 102 | voidsysInit(); |
103 | voidsysClear(); | 103 | voidsysClear(); |
104 | 104 | ||
105 | #if !defined(Q_NO_BOOL_TYPE) | 105 | #if !defined(Q_NO_BOOL_TYPE) |
106 | boolsysWriteEntry( const QString &, bool ); | 106 | boolsysWriteEntry( const QString &, bool ); |
107 | #endif | 107 | #endif |
108 | boolsysWriteEntry( const QString &, double ); | 108 | boolsysWriteEntry( const QString &, double ); |
109 | boolsysWriteEntry( const QString &, int ); | 109 | boolsysWriteEntry( const QString &, int ); |
110 | boolsysWriteEntry( const QString &, const QString & ); | 110 | boolsysWriteEntry( const QString &, const QString & ); |
111 | boolsysWriteEntry( const QString &, const QStringList & ); | 111 | boolsysWriteEntry( const QString &, const QStringList & ); |
112 | boolsysWriteEntry( const QString &, const QStringList &, const QChar& sep ); | 112 | boolsysWriteEntry( const QString &, const QStringList &, const QChar& sep ); |
113 | 113 | ||
114 | QStringList sysEntryList(const QString &) const; | 114 | QStringList sysEntryList(const QString &) const; |
115 | QStringList sysSubkeyList(const QString &) const; | 115 | QStringList sysSubkeyList(const QString &) const; |
116 | 116 | ||
117 | QStringList sysReadListEntry( const QString &, bool * = 0 ) const; | 117 | QStringList sysReadListEntry( const QString &, bool * = 0 ) const; |
118 | QStringList sysReadListEntry( const QString &, const QChar& sep, bool * = 0 ) const; | 118 | QStringList sysReadListEntry( const QString &, const QChar& sep, bool * = 0 ) const; |
119 | QStringsysReadEntry( const QString &, const QString &def = QString::null, bool * = 0 ) const; | 119 | QStringsysReadEntry( const QString &, const QString &def = QString::null, bool * = 0 ) const; |
120 | int sysReadNumEntry( const QString &, int def = 0, bool * = 0 ) const; | 120 | int sysReadNumEntry( const QString &, int def = 0, bool * = 0 ) const; |
121 | doublesysReadDoubleEntry( const QString &, double def = 0, bool * = 0 ) const; | 121 | doublesysReadDoubleEntry( const QString &, double def = 0, bool * = 0 ) const; |
122 | boolsysReadBoolEntry( const QString &, bool def = 0, bool * = 0 ) const; | 122 | boolsysReadBoolEntry( const QString &, bool def = 0, bool * = 0 ) const; |
123 | 123 | ||
124 | boolsysRemoveEntry( const QString & ); | 124 | boolsysRemoveEntry( const QString & ); |
125 | 125 | ||
126 | boolsysSync(); | 126 | boolsysSync(); |
127 | 127 | ||
128 | voidsysInsertSearchPath( QSettings::System, const QString & ); | 128 | voidsysInsertSearchPath( QSettings::System, const QString & ); |
129 | voidsysRemoveSearchPath( QSettings::System, const QString & ); | 129 | voidsysRemoveSearchPath( QSettings::System, const QString & ); |
130 | #endif | 130 | #endif |
131 | }; | 131 | }; |
132 | 132 | ||
133 | #endif // QSETTINGS_P_H | 133 | #endif // QSETTINGS_P_H |