Changeset View
Changeset View
Standalone View
Standalone View
src/quickaddons/managedconfigmodule.h
Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Line(s) | 188 | protected Q_SLOTS: | |||
---|---|---|---|---|---|
194 | * some settings managed outside of KConfigXT objects. | 194 | * some settings managed outside of KConfigXT objects. | ||
195 | */ | 195 | */ | ||
196 | void settingsChanged(); | 196 | void settingsChanged(); | ||
197 | 197 | | |||
198 | private: | 198 | private: | ||
199 | /** | 199 | /** | ||
200 | * Allows to indicate if the module requires saving. | 200 | * Allows to indicate if the module requires saving. | ||
201 | * | 201 | * | ||
202 | * By default this returns false, it needs to be overriden only | 202 | * By default this returns false, it needs to be overridden only | ||
203 | * if the module has state outside of the settings declared in | 203 | * if the module has state outside of the settings declared in | ||
204 | * the KConfigXT classes it uses. | 204 | * the KConfigXT classes it uses. | ||
205 | */ | 205 | */ | ||
206 | virtual bool isSaveNeeded() const; | 206 | virtual bool isSaveNeeded() const; | ||
207 | 207 | | |||
208 | /** | 208 | /** | ||
209 | * Allows to indicate if the module state is representing its defaults. | 209 | * Allows to indicate if the module state is representing its defaults. | ||
210 | * | 210 | * | ||
211 | * By default this returns true, it needs to be overriden only | 211 | * By default this returns true, it needs to be overridden only | ||
212 | * if the module has state outside of the settings declared in | 212 | * if the module has state outside of the settings declared in | ||
213 | * the KConfigXT classes it uses. | 213 | * the KConfigXT classes it uses. | ||
214 | */ | 214 | */ | ||
215 | virtual bool isDefaults() const; | 215 | virtual bool isDefaults() const; | ||
216 | 216 | | |||
217 | Q_PRIVATE_SLOT(d, void _k_registerSettings()) | 217 | Q_PRIVATE_SLOT(d, void _k_registerSettings()) | ||
218 | ManagedConfigModulePrivate *const d; | 218 | ManagedConfigModulePrivate *const d; | ||
219 | friend class ManagedConfigModulePrivate; | 219 | friend class ManagedConfigModulePrivate; | ||
220 | }; | 220 | }; | ||
221 | 221 | | |||
222 | } | 222 | } | ||
223 | 223 | | |||
224 | #endif //MANAGEDCONFIGMODULE_H | 224 | #endif //MANAGEDCONFIGMODULE_H | ||
225 | 225 | |