KDeclarative

managedconfigmodule.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 2019 Kevin Ottens <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef MANAGEDCONFIGMODULE_H
9 #define MANAGEDCONFIGMODULE_H
10 
11 #include <KQuickAddons/ConfigModule>
12 
14 
15 namespace KQuickAddons {
16 
17 class ManagedConfigModulePrivate;
18 
108 class QUICKADDONS_EXPORT ManagedConfigModule : public ConfigModule
109 {
110  Q_OBJECT
111 public:
117  explicit ManagedConfigModule(const KAboutData *aboutData, QObject *parent = nullptr, const QVariantList &args = QVariantList());
118 
122  explicit ManagedConfigModule(const KPluginMetaData &metaData, QObject *parent = nullptr, const QVariantList &args = QVariantList());
123 
130  explicit ManagedConfigModule(QObject *parent = nullptr, const QVariantList &args = QVariantList());
131 
136 
137 public Q_SLOTS:
150  void load() override;
151 
162  void save() override;
163 
173  void defaults() override;
174 
175 protected Q_SLOTS:
183  void settingsChanged();
184 
192  void registerSettings(KCoreConfigSkeleton *skeleton);
193 
194 private:
202  virtual bool isSaveNeeded() const;
203 
211  virtual bool isDefaults() const;
212 
213  Q_PRIVATE_SLOT(d, void _k_registerSettings())
214  ManagedConfigModulePrivate *const d;
215  friend class ManagedConfigModulePrivate;
216 };
217 
218 }
219 
220 #endif //MANAGEDCONFIGMODULE_H
221 
The base class for configuration modules.
Definition: configmodule.h:114
The base class for configuration modules using KConfigXT settings.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 22:38:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.