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

KDED

  • kded
kdedadaptor.cpp
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2 * Copyright (C) 1999 David Faure <faure@kde.org>
3 * Copyright (C) 2000 Waldo Bastian <bastian@kde.org>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 **/
20
21#include "kdedadaptor.h"
22#include "kded.h"
23#include <kglobal.h>
24#include <kconfig.h>
25#include <QCoreApplication>
26
27KdedAdaptor::KdedAdaptor(QObject *parent)
28 : QDBusAbstractAdaptor(parent)
29{
30}
31
32bool KdedAdaptor::isModuleAutoloaded(const QString &module)
33{
34 return Kded::self()->isModuleAutoloaded(module);
35}
36
37bool KdedAdaptor::isModuleLoadedOnDemand(const QString &module)
38{
39 return Kded::self()->isModuleLoadedOnDemand(module);
40}
41
42bool KdedAdaptor::loadModule(const QString &module)
43{
44 return Kded::self()->loadModule(module, false) != 0;
45}
46
47bool KdedAdaptor::unloadModule(const QString &module)
48{
49 return Kded::self()->unloadModule(module);
50}
51
52void KdedAdaptor::registerWindowId(qlonglong windowId, const QDBusMessage &msg)
53{
54 Kded::self()->registerWindowId(windowId, msg.service());
55}
56
57void KdedAdaptor::setModuleAutoloading(const QString &module, bool autoload)
58{
59 return Kded::self()->setModuleAutoloading(module, autoload);
60}
61void KdedAdaptor::unregisterWindowId(qlonglong windowId, const QDBusMessage &msg)
62{
63 Kded::self()->unregisterWindowId(windowId, msg.service());
64}
65
66QStringList KdedAdaptor::loadedModules()
67{
68 return Kded::self()->loadedModules();
69}
70
71void KdedAdaptor::reconfigure()
72{
73 KGlobal::config()->reparseConfiguration();
74 Kded::self()->initModules();
75 Kded::self()->loadSecondPhase();
76}
77
78void KdedAdaptor::loadSecondPhase()
79{
80 Kded::self()->loadSecondPhase();
81}
82
83void KdedAdaptor::quit()
84{
85 QCoreApplication::instance()->quit();
86}
87
88#include "kdedadaptor.moc"
KdedAdaptor::registerWindowId
void registerWindowId(qlonglong windowId, const QDBusMessage &)
Definition: kdedadaptor.cpp:52
KdedAdaptor::setModuleAutoloading
void setModuleAutoloading(const QString &module, bool autoload)
Set X-KDE-Kded-autoload to autoload for module module.
Definition: kdedadaptor.cpp:57
KdedAdaptor::reconfigure
void reconfigure()
Definition: kdedadaptor.cpp:71
KdedAdaptor::unregisterWindowId
void unregisterWindowId(qlonglong windowId, const QDBusMessage &)
Definition: kdedadaptor.cpp:61
KdedAdaptor::loadModule
bool loadModule(const QString &obj)
Definition: kdedadaptor.cpp:42
KdedAdaptor::KdedAdaptor
KdedAdaptor(QObject *parent)
Definition: kdedadaptor.cpp:27
KdedAdaptor::isModuleAutoloaded
bool isModuleAutoloaded(const QString &module)
Check if module module has X-KDE-Kded-autoload=True.
Definition: kdedadaptor.cpp:32
KdedAdaptor::isModuleLoadedOnDemand
bool isModuleLoadedOnDemand(const QString &module)
Check if module module has X-KDE-Kded-load-on-demand=True.
Definition: kdedadaptor.cpp:37
KdedAdaptor::quit
void quit()
Definition: kdedadaptor.cpp:83
KdedAdaptor::loadedModules
QStringList loadedModules()
Definition: kdedadaptor.cpp:66
KdedAdaptor::loadSecondPhase
void loadSecondPhase()
Definition: kdedadaptor.cpp:78
KdedAdaptor::unloadModule
bool unloadModule(const QString &obj)
Definition: kdedadaptor.cpp:47
Kded::initModules
void initModules()
Loads / unloads modules according to config.
Definition: kded.cpp:217
Kded::registerWindowId
void registerWindowId(qlonglong windowId, const QString &sender)
Applications can register/unregister their windows with kded modules.
Definition: kded.cpp:682
Kded::self
static Kded * self()
Definition: kded.h:47
Kded::setModuleAutoloading
void setModuleAutoloading(const QString &module, bool autoload)
Configure whether a module should be loaded on startup.
Definition: kded.cpp:305
Kded::isModuleAutoloaded
bool isModuleAutoloaded(const QString &module) const
Check if a module should be loaded on startup.
Definition: kded.cpp:317
Kded::unloadModule
bool unloadModule(const QString &obj)
Definition: kded.cpp:426
Kded::loadSecondPhase
void loadSecondPhase()
Definition: kded.cpp:285
Kded::unregisterWindowId
void unregisterWindowId(qlonglong windowId, const QString &sender)
Unregister a window previously registered with KDED.
Definition: kded.cpp:700
Kded::loadModule
KDEDModule * loadModule(const QString &obj, bool onDemand)
Definition: kded.cpp:352
Kded::loadedModules
QStringList loadedModules()
Definition: kded.cpp:437
Kded::isModuleLoadedOnDemand
bool isModuleLoadedOnDemand(const QString &module) const
Check if a module should be loaded on demand.
Definition: kded.cpp:334
QDBusAbstractAdaptor
QObject
kconfig.h
kded.h
kdedadaptor.h
kglobal.h
KGlobal::config
KSharedConfigPtr config()
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