• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDED

Kded Class Reference

#include <kded.h>

Inheritance diagram for Kded:

Inheritance graph
[legend]

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 (bool checkUpdates)
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

bool b_checkUpdates
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 ( bool  checkUpdates  ) 

Definition at line 118 of file kded.cpp.

Kded::~Kded (  )  [virtual]

Definition at line 143 of file kded.cpp.


Member Function Documentation

void Kded::dirDeleted ( const QString &  path  )  [protected, slot]

For internal use only.

Triggers rebuilding

Definition at line 552 of file kded.cpp.

void Kded::initModules (  )  [slot]

Loads / unloads modules according to config.

Definition at line 202 of file kded.cpp.

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

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.

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

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.

QStringList Kded::loadedModules (  ) 

Definition at line 408 of file kded.cpp.

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

Definition at line 337 of file kded.cpp.

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

Definition at line 325 of file kded.cpp.

void Kded::loadSecondPhase (  ) 

Definition at line 255 of file kded.cpp.

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

Definition at line 168 of file kded.cpp.

void Kded::noDemandLoad ( const QString &  obj  ) 

Definition at line 273 of file kded.cpp.

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

Scans dir for new files and new subdirectories.

Definition at line 582 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  ) 

Definition at line 504 of file kded.cpp.

void Kded::recreate ( const QDBusMessage &  msg  ) 

Definition at line 565 of file kded.cpp.

void Kded::recreateDone (  )  [slot]

Recreating finished.

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

void Kded::runDelayedCheck (  )  [protected, slot]

Definition at line 497 of file kded.cpp.

static Kded* Kded::self (  )  [inline, static]

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:
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]

A KDEDModule is about to get destroyed.

Definition at line 413 of file kded.cpp.

bool Kded::unloadModule ( const QString &  obj  ) 

Definition at line 397 of file kded.cpp.

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

Unregister a window previously registered with KDED.

Definition at line 651 of file kded.cpp.

void Kded::update ( const QString &  dir  )  [protected, slot]

For internal use only.

Triggers rebuilding

Definition at line 557 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

Kded * Kded::_self = 0 [static, protected]

Definition at line 211 of file kded.h.

bool Kded::b_checkUpdates [protected]

Definition at line 189 of file kded.h.

QStringList Kded::m_allResourceDirs [protected]

Definition at line 208 of file kded.h.

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

Definition at line 204 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 202 of file kded.h.

bool Kded::m_needDelayedCheck [protected]

Definition at line 209 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 196 of file kded.h.

bool Kded::m_recreateBusy [protected]

Definition at line 200 of file kded.h.

int Kded::m_recreateCount [protected]

Definition at line 199 of file kded.h.

QList<QDBusMessage> Kded::m_recreateRequests [protected]

Definition at line 198 of file kded.h.

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

Definition at line 205 of file kded.h.


The documentation for this class was generated from the following files:
  • kded.h
  • kded.cpp

KDED

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal