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

KDED

Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | List of all members
Kded Class Reference

#include <kded.h>

Inheritance diagram for Kded:
QObject

Public Slots

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

Public Member Functions

 Kded ()
 
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
 
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)
 

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)
 

Detailed Description

Definition at line 40 of file kded.h.

Constructor & Destructor Documentation

◆ Kded()

Kded::Kded ( )

Definition at line 122 of file kded.cpp.

◆ ~Kded()

Kded::~Kded ( )
virtual

Definition at line 152 of file kded.cpp.

Member Function Documentation

◆ dirDeleted

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

Triggers rebuilding

Definition at line 597 of file kded.cpp.

◆ initModules

void Kded::initModules ( )
slot

Loads / unloads modules according to config.

Definition at line 217 of file kded.cpp.

◆ isModuleAutoloaded() [1/2]

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 325 of file kded.cpp.

◆ isModuleAutoloaded() [2/2]

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 317 of file kded.cpp.

◆ isModuleLoadedOnDemand() [1/2]

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 342 of file kded.cpp.

◆ isModuleLoadedOnDemand() [2/2]

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 334 of file kded.cpp.

◆ loadedModules()

QStringList Kded::loadedModules ( )

Definition at line 437 of file kded.cpp.

◆ loadModule() [1/2]

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

Definition at line 364 of file kded.cpp.

◆ loadModule() [2/2]

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

Definition at line 352 of file kded.cpp.

◆ loadSecondPhase()

void Kded::loadSecondPhase ( )

Definition at line 285 of file kded.cpp.

◆ messageFilter()

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

Definition at line 177 of file kded.cpp.

◆ noDemandLoad()

void Kded::noDemandLoad ( const QString &  obj)

Definition at line 300 of file kded.cpp.

◆ recreate [1/3]

void Kded::recreate ( )
slot

Recreate the database file.

Definition at line 518 of file kded.cpp.

◆ recreate() [2/3]

void Kded::recreate ( bool  initial)

Definition at line 530 of file kded.cpp.

◆ recreate() [3/3]

void Kded::recreate ( const QDBusMessage &  msg)

Definition at line 610 of file kded.cpp.

◆ recreateDone

void Kded::recreateDone ( )
slot

Recreating finished.

Definition at line 571 of file kded.cpp.

◆ recreateFailed

void Kded::recreateFailed ( const QDBusError &  error)
slot

Definition at line 560 of file kded.cpp.

◆ registerWindowId()

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 682 of file kded.cpp.

◆ runDelayedCheck

void Kded::runDelayedCheck ( )
protectedslot

Definition at line 523 of file kded.cpp.

◆ self()

static Kded * Kded::self ( )
inlinestatic

Definition at line 47 of file kded.h.

◆ setModuleAutoloading()

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 305 of file kded.cpp.

◆ slotApplicationRemoved

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

An application unregistered itself from DBus.

Definition at line 450 of file kded.cpp.

◆ slotKDEDModuleRemoved

void Kded::slotKDEDModuleRemoved ( KDEDModule *  module)
slot

A KDEDModule is about to get destroyed.

Definition at line 442 of file kded.cpp.

◆ unloadModule()

bool Kded::unloadModule ( const QString &  obj)

Definition at line 426 of file kded.cpp.

◆ unregisterWindowId()

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

Unregister a window previously registered with KDED.

Definition at line 700 of file kded.cpp.

◆ update

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

Triggers rebuilding

Definition at line 602 of file kded.cpp.

◆ updateDirWatch

void Kded::updateDirWatch ( )
slot

Collect all directories to watch.

Definition at line 473 of file kded.cpp.

◆ updateResourceList

void Kded::updateResourceList ( )
slot

Update directories to watch.

Definition at line 496 of file kded.cpp.


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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDED

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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