KConfigWatcher Class

Notifies when another client has updated this config file with the Notify flag set. More...

Header: #include <KConfigWatcher>
CMake: find_package(KF6 REQUIRED COMPONENTS Config)
target_link_libraries(mytarget PRIVATE KF6::ConfigCore)

Public Types

Ptr

Public Functions

KSharedConfig::Ptr config() const

Signals

void configChanged(const KConfigGroup &group, const QByteArrayList &names)

Static Public Members

KConfigWatcher::Ptr create(const KSharedConfig::Ptr &config)

Detailed Description

Member Type Documentation

KConfigWatcher::Ptr

Member Function Documentation

KSharedConfig::Ptr KConfigWatcher::config() const

Returns the config being watched

[signal] void KConfigWatcher::configChanged(const KConfigGroup &group, const QByteArrayList &names)

Emitted when a config group has changed The config will be reloaded before this signal is emitted

group the config group that has changed

names a list of entries that have changed within that group (UTF-8 encoded)

[static] KConfigWatcher::Ptr KConfigWatcher::create(const KSharedConfig::Ptr &config)

Instantiate a ConfigWatcher for a given config

Note: any additional config sources should be set before this point.