Changeset View
Changeset View
Standalone View
Standalone View
src/core/kconfigdata.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 35 | struct KEntry { | |||
---|---|---|---|---|---|
66 | bool bReverted: 1; | 66 | bool bReverted: 1; | ||
67 | /** | 67 | /** | ||
68 | * Entry is for a localized key. If @c false the value references just language e.g. "de", | 68 | * Entry is for a localized key. If @c false the value references just language e.g. "de", | ||
69 | * if @c true the value references language and country, e.g. "de_DE". | 69 | * if @c true the value references language and country, e.g. "de_DE". | ||
70 | **/ | 70 | **/ | ||
71 | bool bLocalizedCountry: 1; | 71 | bool bLocalizedCountry: 1; | ||
72 | 72 | | |||
73 | bool bNotify: 1; | 73 | bool bNotify: 1; | ||
74 | | ||||
75 | /** | ||||
76 | * Entry will need to be wrote on a not global file even if it match default value | ||||
dfaure: s/wrote/written/
s/match/matches/ | |||||
ervin: nitpick: I think I'd write "non global" rather than "not global" | |||||
77 | */ | ||||
78 | bool bForceSave: 1; | ||||
74 | }; | 79 | }; | ||
75 | 80 | | |||
76 | // These operators are used to check whether an entry which is about | 81 | // These operators are used to check whether an entry which is about | ||
77 | // to be written equals the previous value. As such, this intentionally | 82 | // to be written equals the previous value. As such, this intentionally | ||
78 | // omits the dirty/notify flag from the comparison. | 83 | // omits the dirty/notify flag from the comparison. | ||
79 | inline bool operator ==(const KEntry &k1, const KEntry &k2) | 84 | inline bool operator ==(const KEntry &k1, const KEntry &k2) | ||
80 | { | 85 | { | ||
81 | return k1.bGlobal == k2.bGlobal && k1.bImmutable == k2.bImmutable | 86 | return k1.bGlobal == k2.bGlobal && k1.bImmutable == k2.bImmutable | ||
▲ Show 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | 174 | enum EntryOption { | |||
170 | EntryDirty = 1, | 175 | EntryDirty = 1, | ||
171 | EntryGlobal = 2, | 176 | EntryGlobal = 2, | ||
172 | EntryImmutable = 4, | 177 | EntryImmutable = 4, | ||
173 | EntryDeleted = 8, | 178 | EntryDeleted = 8, | ||
174 | EntryExpansion = 16, | 179 | EntryExpansion = 16, | ||
175 | EntryRawKey = 32, | 180 | EntryRawKey = 32, | ||
176 | EntryLocalizedCountry = 64, | 181 | EntryLocalizedCountry = 64, | ||
177 | EntryNotify = 128, | 182 | EntryNotify = 128, | ||
183 | EntryForceSave = 256, | ||||
This enum value isn't set anywhere except in the unittest, no? dfaure: This enum value isn't set anywhere except in the unittest, no?
I guess it's here for… | |||||
178 | EntryDefault = (SearchDefaults << 16), | 184 | EntryDefault = (SearchDefaults << 16), | ||
179 | EntryLocalized = (SearchLocalized << 16) | 185 | EntryLocalized = (SearchLocalized << 16) | ||
180 | }; | 186 | }; | ||
181 | Q_DECLARE_FLAGS(EntryOptions, EntryOption) | 187 | Q_DECLARE_FLAGS(EntryOptions, EntryOption) | ||
182 | 188 | | |||
183 | Iterator findExactEntry(const QByteArray &group, const QByteArray &key = QByteArray(), | 189 | Iterator findExactEntry(const QByteArray &group, const QByteArray &key = QByteArray(), | ||
184 | SearchFlags flags = SearchFlags()); | 190 | SearchFlags flags = SearchFlags()); | ||
185 | 191 | | |||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |
s/wrote/written/
s/match/matches/