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
void sync()
KSharedConfig::Ptr configForComponentName(const QString &componentName)
Definition: dispatcher.cpp:54
QMap< QString, ComponentInfo > m_componentInfo
Definition: dispatcher_p.h:50
#define K_GLOBAL_STATIC(TYPE, NAME)
void unregisterComponent(QObject *)
Definition: dispatcher.cpp:105
const KComponentData & componentData() const
const char * name(StandardAction id)
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QMap< QObject *, QString > m_componentName
Definition: dispatcher_p.h:51
#define k_funcinfo
void syncConfiguration()
When this function is called the KConfig objects of all the registered instances are sync()ed...
Definition: dispatcher.cpp:97
KSharedConfigPtr config()
const KSharedConfig::Ptr & config() const
void reparseConfiguration(const QString &componentName)
Call this function when the configuration belonging to the associated componentData name has changed...
Definition: dispatcher.cpp:81
void reparseConfiguration()
bool isValid() const
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
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Definition: dialog.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.