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
KSharedConfig::Ptr configForComponentName(const QString &componentName)
Definition: dispatcher.cpp:54
const QChar * constData() const
bool contains(const Key &key) const
QMap< QString, ComponentInfo > m_componentInfo
Definition: dispatcher_p.h:50
#define K_GLOBAL_STATIC(TYPE, NAME)
void unregisterComponent(QObject *)
Definition: dispatcher.cpp:105
const_iterator constBegin() const
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 char * name() const
const KSharedConfig::Ptr & config() const
void append(const T &value)
Definition: dialog.h:29
void reparseConfiguration(const QString &componentName)
Call this function when the configuration belonging to the associated componentData name has changed...
Definition: dispatcher.cpp:81
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
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)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int remove(const Key &key)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.