• 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.


Detailed Description

Definition at line 40 of file kded.h.


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 registerWindowId (qlonglong windowId, const QString &sender)
void setModuleAutoloading (const QString &module, bool autoload)
bool unloadModule (const QString &obj)
void unregisterWindowId (qlonglong windowId, const QString &sender)
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

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

Constructor & Destructor Documentation

Kded::Kded ( bool  checkUpdates  ) 

Definition at line 110 of file kded.cpp.

Kded::~Kded (  )  [virtual]

Definition at line 135 of file kded.cpp.


Member Function Documentation

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

Definition at line 524 of file kded.cpp.

void Kded::initModules (  )  [slot]

Loads / unloads modules according to config.

Definition at line 180 of file kded.cpp.

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

Definition at line 273 of file kded.cpp.

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

Check if a module should be loaded on startup.

Parameters:
module Name of the module to configure

Definition at line 265 of file kded.cpp.

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

Definition at line 290 of file kded.cpp.

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

Check if module should be loaded on demand.

Parameters:
module Name of the module to configure

Definition at line 282 of file kded.cpp.

QStringList Kded::loadedModules (  ) 

Definition at line 380 of file kded.cpp.

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

Definition at line 309 of file kded.cpp.

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

Definition at line 300 of file kded.cpp.

void Kded::loadSecondPhase (  ) 

Definition at line 230 of file kded.cpp.

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

Definition at line 160 of file kded.cpp.

void Kded::noDemandLoad ( const QString &  obj  ) 

Definition at line 248 of file kded.cpp.

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

Scans dir for new files and new subdirectories.

Definition at line 554 of file kded.cpp.

void Kded::recreate (  )  [slot]

Recreate the database file.

Definition at line 464 of file kded.cpp.

void Kded::recreate ( bool  initial  ) 

Definition at line 476 of file kded.cpp.

void Kded::recreate ( const QDBusMessage &  msg  ) 

Definition at line 537 of file kded.cpp.

void Kded::recreateDone (  )  [slot]

Recreating finished.

Definition at line 505 of file kded.cpp.

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

Definition at line 609 of file kded.cpp.

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

Definition at line 469 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 if module should be loaded on startup.

Parameters:
module Name of the module to configure
autoload Load/Don't load the module

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

void Kded::slotKDEDModuleRemoved ( KDEDModule *  module  )  [slot]

A KDEDModule is about to get destroyed.

Definition at line 385 of file kded.cpp.

bool Kded::unloadModule ( const QString &  obj  ) 

Definition at line 369 of file kded.cpp.

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

Definition at line 622 of file kded.cpp.

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

Definition at line 529 of file kded.cpp.

void Kded::updateDirWatch (  )  [slot]

Collect all directories to watch.

Definition at line 419 of file kded.cpp.

void Kded::updateResourceList (  )  [slot]

Update directories to watch.

Definition at line 442 of file kded.cpp.


Member Data Documentation

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

Definition at line 178 of file kded.h.

bool Kded::b_checkUpdates [protected]

Definition at line 156 of file kded.h.

QStringList Kded::m_allResourceDirs [protected]

Definition at line 175 of file kded.h.

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

Definition at line 171 of file kded.h.

QSet<long> Kded::m_globalWindowIdList [protected]

Definition at line 174 of file kded.h.

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

Definition at line 169 of file kded.h.

bool Kded::m_needDelayedCheck [protected]

Definition at line 176 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 154 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 163 of file kded.h.

bool Kded::m_recreateBusy [protected]

Definition at line 167 of file kded.h.

int Kded::m_recreateCount [protected]

Definition at line 166 of file kded.h.

QList<QDBusMessage> Kded::m_recreateRequests [protected]

Definition at line 165 of file kded.h.

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

Definition at line 172 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
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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