• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KDED

Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Static Protected Attributes
Kded Class Reference

#include <kded.h>

Inheritance diagram for Kded:
QObject

List of all members.

Public Slots

void initModules ()
void recreate ()
void recreateDone ()
void slotApplicationRemoved (const QString &)
void slotKDEDModuleRemoved (KDEDModule *)
void updateDirWatch ()
void updateResourceList ()

Public Member Functions

 Kded ()
virtual ~Kded ()
QStringList loadedModules ()
KDEDModule * loadModule (const QString &obj, bool onDemand)
KDEDModule * loadModule (const KService::Ptr &service, bool onDemand)
void loadSecondPhase ()
void noDemandLoad (const QString &obj)
void recreate (const QDBusMessage &)
void recreate (bool initial)
void setModuleAutoloading (const QString &module, bool autoload)
bool unloadModule (const QString &obj)
void registerWindowId (qlonglong windowId, const QString &sender)
void unregisterWindowId (qlonglong windowId, const QString &sender)
bool isModuleAutoloaded (const QString &module) const
bool isModuleAutoloaded (const KService::Ptr &module) const
bool isModuleLoadedOnDemand (const QString &module) const
bool isModuleLoadedOnDemand (const KService::Ptr &module) const

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
QDBusServiceWatcher * m_serviceWatcher
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 ( )

Definition at line 123 of file kded.cpp.

Kded::~Kded ( )
virtual

Definition at line 153 of file kded.cpp.


Member Function Documentation

void Kded::dirDeleted ( const QString &  path)
protectedslot

Triggers rebuilding

Definition at line 580 of file kded.cpp.

void Kded::initModules ( )
slot

Loads / unloads modules according to config.

Definition at line 218 of file kded.cpp.

bool Kded::isModuleAutoloaded ( const QString &  module) const

Check if a module should be loaded on startup.

Parameters:
modulethe 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 318 of file kded.cpp.

bool Kded::isModuleAutoloaded ( const KService::Ptr &  module) const

Check if a module should be loaded on startup.

Parameters:
modulea service description for the module
Returns:
true if the module will be loaded at startup, false otherwise

Definition at line 326 of file kded.cpp.

bool Kded::isModuleLoadedOnDemand ( const QString &  module) const

Check if a module should be loaded on demand.

Parameters:
modulethe 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 335 of file kded.cpp.

bool Kded::isModuleLoadedOnDemand ( const KService::Ptr &  module) const

Check if a module should be loaded on demand.

Parameters:
modulea 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 343 of file kded.cpp.

QStringList Kded::loadedModules ( )

Definition at line 438 of file kded.cpp.

KDEDModule * Kded::loadModule ( const QString &  obj,
bool  onDemand 
)

Definition at line 353 of file kded.cpp.

KDEDModule * Kded::loadModule ( const KService::Ptr &  service,
bool  onDemand 
)

Definition at line 365 of file kded.cpp.

void Kded::loadSecondPhase ( )

Definition at line 286 of file kded.cpp.

void Kded::messageFilter ( const QDBusMessage &  message)
static

Definition at line 178 of file kded.cpp.

void Kded::noDemandLoad ( const QString &  obj)

Definition at line 301 of file kded.cpp.

void Kded::readDirectory ( const QString &  dir)
protected

Scans dir for new files and new subdirectories.

Definition at line 610 of file kded.cpp.

void Kded::recreate ( const QDBusMessage &  msg)

Definition at line 593 of file kded.cpp.

void Kded::recreate ( bool  initial)

Definition at line 531 of file kded.cpp.

void Kded::recreate ( )
slot

Recreate the database file.

Definition at line 519 of file kded.cpp.

void Kded::recreateDone ( )
slot

Recreating finished.

Definition at line 561 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 665 of file kded.cpp.

void Kded::runDelayedCheck ( )
protectedslot

Definition at line 524 of file kded.cpp.

static Kded* Kded::self ( )
inlinestatic

Definition at line 47 of file kded.h.

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:
modulethe name of the desktop file for the module, without the .desktop extension
autoloadif true, the module will be loaded at startup, otherwise it will not

Definition at line 306 of file kded.cpp.

void Kded::slotApplicationRemoved ( const QString &  name)
slot

An application unregistered itself from DBus.

Definition at line 451 of file kded.cpp.

void Kded::slotKDEDModuleRemoved ( KDEDModule *  module)
slot

A KDEDModule is about to get destroyed.

Definition at line 443 of file kded.cpp.

bool Kded::unloadModule ( const QString &  obj)

Definition at line 427 of file kded.cpp.

void Kded::unregisterWindowId ( qlonglong  windowId,
const QString &  sender 
)

Unregister a window previously registered with KDED.

Definition at line 683 of file kded.cpp.

void Kded::update ( const QString &  dir)
protectedslot

Triggers rebuilding

Definition at line 585 of file kded.cpp.

void Kded::updateDirWatch ( )
slot

Collect all directories to watch.

Definition at line 474 of file kded.cpp.

void Kded::updateResourceList ( )
slot

Update directories to watch.

Definition at line 497 of file kded.cpp.


Member Data Documentation

Kded * Kded::_self = 0
staticprotected

Definition at line 212 of file kded.h.

QStringList Kded::m_allResourceDirs
protected

Definition at line 209 of file kded.h.

QHash<QString,QObject *> Kded::m_dontLoad
protected

Definition at line 202 of file kded.h.

QSet<long> Kded::m_globalWindowIdList
protected

Definition at line 207 of file kded.h.

QHash<QString,KDEDModule *> Kded::m_modules
protected

Definition at line 200 of file kded.h.

bool Kded::m_needDelayedCheck
protected

Definition at line 210 of file kded.h.

KDirWatch* Kded::m_pDirWatch
protected

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.

QTimer* Kded::m_pTimer
protected

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.

bool Kded::m_recreateBusy
protected

Definition at line 198 of file kded.h.

int Kded::m_recreateCount
protected

Definition at line 197 of file kded.h.

QList<QDBusMessage> Kded::m_recreateRequests
protected

Definition at line 196 of file kded.h.

QDBusServiceWatcher* Kded::m_serviceWatcher
protected

Definition at line 205 of file kded.h.

QHash<QString,QList<qlonglong> > Kded::m_windowIdList
protected

Definition at line 206 of file kded.h.


The documentation for this class was generated from the following files:
  • kded.h
  • kded.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 20:43:33 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDED

Skip menu "KDED"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal