KConfig 5.109.0
Public Types | Signals | Public Member Functions | Static Public Member Functions | List of all members
KConfigWatcher

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

#include <KConfigWatcher>

Public Types

typedef QSharedPointer< KConfigWatcherPtr
 

Signals

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.
 

Public Member Functions

KSharedConfig::Ptr config () const
 Returns the config being watched.
 

Static Public Member Functions

static Ptr create (const KSharedConfig::Ptr &config)
 Instantiate a ConfigWatcher for a given config.
 

Detailed Description

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

Since
5.51

Member Function Documentation

◆ config()

KSharedConfig::Ptr KConfigWatcher::config ( ) const

Returns the config being watched.

Since
5.66

◆ configChanged

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

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)

◆ create()

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

Instantiate a ConfigWatcher for a given config.

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