7#ifndef KCONFIGWATCHER_H
8#define KCONFIGWATCHER_H
11#include <QSharedPointer>
13#include <KConfigGroup>
14#include <KSharedConfig>
16#include <kconfigcore_export.h>
18class KConfigWatcherPrivate;
30 typedef QSharedPointer<KConfigWatcher> Ptr;
37 static Ptr
create(
const KSharedConfig::Ptr &config);
58 KCONFIGCORE_NO_EXPORT
void onConfigChangeNotification(
const QHash<QString, QByteArrayList> &changes);
61 KCONFIGCORE_NO_EXPORT
explicit KConfigWatcher(
const KSharedConfig::Ptr &config);
63 const QScopedPointer<KConfigWatcherPrivate> d;
A class for one specific group in a KConfig object.
Definition kconfiggroup.h:39
Notifies when another client has updated this config file with the Notify flag set.
Definition kconfigwatcher.h:27
void configChanged(const KConfigGroup &group, const QByteArrayList &names)
Emitted when a config group has changed The config will be reloaded before this signal is emitted.
static Ptr create(const KSharedConfig::Ptr &config)
Instantiate a ConfigWatcher for a given config.
KSharedConfig::Ptr config() const
Returns the config being watched.