KSettings::Dispatcher Class Reference
Dispatch change notifications from the KCMs to the program. More...
#include <dispatcher.h>
Inheritance diagram for KSettings::Dispatcher:


| Public Slots | |
| void | reparseConfiguration (const QCString &instanceName) | 
| void | syncConfiguration () | 
| Public Member Functions | |
| void | registerInstance (KInstance *instance, QObject *recv, const char *slot) | 
| KConfig * | configForInstanceName (const QCString &instanceName) | 
| QStrList | instanceNames () const | 
| Static Public Member Functions | |
| Dispatcher * | self () | 
| Friends | |
| class | KStaticDeleter< Dispatcher > | 
Detailed Description
Dispatch change notifications from the KCMs to the program.Since your program does not have direct control over the KCMs that get loaded into the KConfigureDialog you need a way to get notified. This is what you do:
Dispatcher::self()->registerInstance( instance(), this, SLOT( loadSettings() ) );
- Author:
- Matthias Kretz <kretz@kde.org>
- Since:
- 3.2
Definition at line 49 of file dispatcher.h.
Member Function Documentation
| 
 | 
| Get a reference the the Dispatcher object. 
 Definition at line 40 of file dispatcher.cpp. References endl(), k_funcinfo, and kdDebug(). | 
| 
 | ||||||||||||||||
| Register a slot to be called when the configuration for the instance has changed. 
 
 
 Definition at line 61 of file dispatcher.cpp. References QObject::connect(), QSignal::connect(), QMap< QCString, InstanceInfo >::contains(), QMap< QCString, InstanceInfo >::count(), QObject::destroyed(), endl(), KInstance::instanceName(), k_funcinfo, and kdDebug(). | 
| 
 | 
| 
 
 Definition at line 86 of file dispatcher.cpp. References KInstance::config(), QMap< QCString, InstanceInfo >::contains(), endl(), k_funcinfo, and kdDebug(). | 
| 
 | 
| 
 
 Definition at line 100 of file dispatcher.cpp. References QMap< QCString, InstanceInfo >::begin(), QMap< QCString, InstanceInfo >::end(), endl(), k_funcinfo, and kdDebug(). | 
| 
 | 
| Call this slot when the configuration belonging to the associated instance name has changed. The registered slot will be called. 
 
 Definition at line 110 of file dispatcher.cpp. References QSignal::activate(), QMap< QCString, InstanceInfo >::contains(), endl(), k_funcinfo, and kdDebug(). | 
| 
 | 
| When this slot is called the KConfig objects of all the registered instances are sync()ed. This is usefull when some other KConfig objects will read/write from/to the same config file, so that you can first write out the current state of the KConfig objects. Definition at line 127 of file dispatcher.cpp. References QMap< QCString, InstanceInfo >::begin(), and QMap< QCString, InstanceInfo >::end(). | 
The documentation for this class was generated from the following files:

