KUtils
dispatcher.cpp
Go to the documentation of this file.
73 for (QMap<QString, ComponentInfo>::ConstIterator it = d->m_componentInfo.constBegin(); it != d->m_componentInfo.constEnd(); ++it) {
99 for (QMap<QString, ComponentInfo>::ConstIterator it = d->m_componentInfo.constBegin(); it != d->m_componentInfo.constEnd(); ++it) {
108 kWarning(701) << k_funcinfo << "Tried to unregister an object which is not already registered.";
113 m_componentName.remove(obj); //obj will be destroyed when we return, so we better remove this entry
bool isValid() const
const KSharedConfig::Ptr & config() const
QPair< QObject *, const char * > Slot
Definition dispatcher_p.h:39
QMap< QObject *, QString > m_componentName
Definition dispatcher_p.h:51
void unregisterComponent(QObject *)
Definition dispatcher.cpp:105
QMap< QString, ComponentInfo > m_componentInfo
Definition dispatcher_p.h:50
#define K_GLOBAL_STATIC(TYPE, NAME)
#define k_funcinfo
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Dispatch change notifications from the KCMs to the program.
Definition dispatcher.cpp:33
void syncConfiguration()
When this function is called the KConfig objects of all the registered instances are sync()ed.
Definition dispatcher.cpp:97
KSharedConfig::Ptr configForComponentName(const QString &componentName)
Definition dispatcher.cpp:54
void registerComponent(const KComponentData &componentData, QObject *recv, const char *slot)
Register a slot to be called when the configuration for the componentData has changed.
Definition dispatcher.cpp:37
void reparseConfiguration(const QString &componentName)
Call this function when the configuration belonging to the associated componentData name has changed.
Definition dispatcher.cpp:81
A collection of classes to create configuration dialogs that work over component boundaries.
Definition componentsdialog.cpp:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.