Kded Class Reference
#include <kded.h>
List of all members.
Public Slots |
void | initModules () |
void | recreate () |
void | recreateDone () |
void | slotApplicationRemoved (const QString &, const QString &, const QString &) |
void | slotKDEDModuleRemoved (KDEDModule *) |
void | updateDirWatch () |
void | updateResourceList () |
Public Member Functions |
| Kded () |
QStringList | loadedModules () |
KDEDModule * | loadModule (const KService::Ptr &service, bool onDemand) |
KDEDModule * | loadModule (const QString &obj, bool onDemand) |
void | loadSecondPhase () |
void | noDemandLoad (const QString &obj) |
void | recreate (bool initial) |
void | recreate (const QDBusMessage &) |
void | setModuleAutoloading (const QString &module, bool autoload) |
bool | unloadModule (const QString &obj) |
virtual | ~Kded () |
|
|
bool | isModuleAutoloaded (const KService::Ptr &module) const |
bool | isModuleAutoloaded (const QString &module) const |
bool | isModuleLoadedOnDemand (const KService::Ptr &module) const |
bool | isModuleLoadedOnDemand (const QString &module) const |
void | registerWindowId (qlonglong windowId, const QString &sender) |
void | unregisterWindowId (qlonglong windowId, const QString &sender) |
Static Public Member Functions |
static void | messageFilter (const QDBusMessage &) |
static Kded * | self () |
Protected Slots |
void | dirDeleted (const QString &path) |
void | runDelayedCheck () |
void | update (const QString &dir) |
Protected Member Functions |
void | readDirectory (const QString &dir) |
Protected Attributes |
QStringList | m_allResourceDirs |
QHash< QString, QObject * > | m_dontLoad |
QSet< long > | m_globalWindowIdList |
QHash< QString, KDEDModule * > | m_modules |
bool | m_needDelayedCheck |
KDirWatch * | m_pDirWatch |
QTimer * | m_pTimer |
bool | m_recreateBusy |
int | m_recreateCount |
QList< QDBusMessage > | m_recreateRequests |
QHash< QString, QList
< qlonglong > > | m_windowIdList |
Static Protected Attributes |
static Kded * | _self = 0 |
Detailed Description
Definition at line 40 of file kded.h.
Constructor & Destructor Documentation
Kded::~Kded |
( |
|
) |
[virtual] |
Member Function Documentation
void Kded::dirDeleted |
( |
const QString & |
path |
) |
[protected, slot] |
For internal use only.
Triggers rebuilding
Definition at line 553 of file kded.cpp.
void Kded::initModules |
( |
|
) |
[slot] |
Loads / unloads modules according to config.
Definition at line 202 of file kded.cpp.
Check if a module should be loaded on startup.
- Parameters:
-
| module | a service description for the module |
- Returns:
true
if the module will be loaded at startup, false
otherwise
Definition at line 298 of file kded.cpp.
bool Kded::isModuleAutoloaded |
( |
const QString & |
module |
) |
const |
Check if a module should be loaded on startup.
- Parameters:
-
| module | the name of the desktop file for the module, without the .desktop extension |
- Returns:
true
if the module will be loaded at startup, false
otherwise
Definition at line 290 of file kded.cpp.
Check if a module should be loaded on demand.
- Parameters:
-
| module | a service description for the module |
- Returns:
true
if the module will be loaded when its D-Bus interface is requested, false
otherwise
Definition at line 315 of file kded.cpp.
bool Kded::isModuleLoadedOnDemand |
( |
const QString & |
module |
) |
const |
Check if a module should be loaded on demand.
- Parameters:
-
| module | the name of the desktop file for the module, without the .desktop extension |
- Returns:
true
if the module will be loaded when its D-Bus interface is requested, false
otherwise
Definition at line 307 of file kded.cpp.
void Kded::loadSecondPhase |
( |
|
) |
|
void Kded::messageFilter |
( |
const QDBusMessage & |
message |
) |
[static] |
void Kded::noDemandLoad |
( |
const QString & |
obj |
) |
|
void Kded::readDirectory |
( |
const QString & |
dir |
) |
[protected] |
Scans dir for new files and new subdirectories.
Definition at line 583 of file kded.cpp.
void Kded::recreate |
( |
|
) |
[slot] |
Recreate the database file.
Definition at line 492 of file kded.cpp.
void Kded::recreate |
( |
bool |
initial |
) |
|
void Kded::recreate |
( |
const QDBusMessage & |
msg |
) |
|
void Kded::recreateDone |
( |
|
) |
[slot] |
Recreating finished.
Definition at line 534 of file kded.cpp.
void Kded::registerWindowId |
( |
qlonglong |
windowId, |
|
|
const QString & |
sender | |
|
) |
| | |
Applications can register/unregister their windows with kded modules.
This allows kpasswdserver and kcookiejar to delete authentication and cookies that are local to a particular window when closing it. Register a window with KDED
Definition at line 638 of file kded.cpp.
void Kded::runDelayedCheck |
( |
|
) |
[protected, slot] |
static Kded* Kded::self |
( |
|
) |
[inline, static] |
void Kded::setModuleAutoloading |
( |
const QString & |
module, |
|
|
bool |
autoload | |
|
) |
| | |
Configure whether a module should be loaded on startup.
If a module is set to be auto-loaded, it will be loaded at the start of a KDE session. Depending on the phase it is set to load in, it may also be loaded when the first KDE application is run outside of a KDE session.
- Parameters:
-
| module | the name of the desktop file for the module, without the .desktop extension |
| autoload | if true , the module will be loaded at startup, otherwise it will not |
Definition at line 278 of file kded.cpp.
void Kded::slotApplicationRemoved |
( |
const QString & |
name, |
|
|
const QString & |
oldOwner, |
|
|
const QString & |
newOwner | |
|
) |
| | [slot] |
An application unregistered itself from DBus.
Definition at line 421 of file kded.cpp.
void Kded::slotKDEDModuleRemoved |
( |
KDEDModule * |
module |
) |
[slot] |
void Kded::unregisterWindowId |
( |
qlonglong |
windowId, |
|
|
const QString & |
sender | |
|
) |
| | |
Unregister a window previously registered with KDED.
Definition at line 652 of file kded.cpp.
void Kded::update |
( |
const QString & |
dir |
) |
[protected, slot] |
For internal use only.
Triggers rebuilding
Definition at line 558 of file kded.cpp.
void Kded::updateDirWatch |
( |
|
) |
[slot] |
Collect all directories to watch.
Definition at line 447 of file kded.cpp.
void Kded::updateResourceList |
( |
|
) |
[slot] |
Update directories to watch.
Definition at line 470 of file kded.cpp.
Member Data Documentation
Pointer to the dirwatch class which tells us, when some directories changed.
Slower polling for remote file systems is now done in KDirWatch (JW).
Definition at line 187 of file kded.h.
When a desktop file is updated, a timer is started (5 sec) before rebuilding the binary - so that multiple updates result in only one rebuilding.
Definition at line 194 of file kded.h.
The documentation for this class was generated from the following files: