KDED

kdedadaptor.cpp
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 1999 David Faure <[email protected]>
4  SPDX-FileCopyrightText: 2000 Waldo Bastian <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #include "kdedadaptor.h"
10 #include "kded.h"
11 #include <KSharedConfig>
12 #include <QCoreApplication>
13 #include <QDBusMessage>
14 
15 KdedAdaptor::KdedAdaptor(QObject *parent)
16  : QDBusAbstractAdaptor(parent)
17 {
18 }
19 
20 bool KdedAdaptor::isModuleAutoloaded(const QString &module)
21 {
22  return Kded::self()->isModuleAutoloaded(module);
23 }
24 
25 bool KdedAdaptor::isModuleLoadedOnDemand(const QString &module)
26 {
27  return Kded::self()->isModuleLoadedOnDemand(module);
28 }
29 
30 bool KdedAdaptor::loadModule(const QString &module)
31 {
32  return Kded::self()->loadModule(module, false) != nullptr;
33 }
34 
35 bool KdedAdaptor::unloadModule(const QString &module)
36 {
37  return Kded::self()->unloadModule(module);
38 }
39 
40 void KdedAdaptor::registerWindowId(qlonglong windowId, const QDBusMessage &msg)
41 {
42  Kded::self()->registerWindowId(windowId, msg.service());
43 }
44 
45 void KdedAdaptor::setModuleAutoloading(const QString &module, bool autoload)
46 {
47  return Kded::self()->setModuleAutoloading(module, autoload);
48 }
49 void KdedAdaptor::unregisterWindowId(qlonglong windowId, const QDBusMessage &msg)
50 {
51  Kded::self()->unregisterWindowId(windowId, msg.service());
52 }
53 
54 QStringList KdedAdaptor::loadedModules()
55 {
56  return Kded::self()->loadedModules();
57 }
58 
59 void KdedAdaptor::reconfigure()
60 {
61  KSharedConfig::openConfig()->reparseConfiguration();
62  Kded::self()->initModules();
63  Kded::self()->loadSecondPhase();
64 }
65 
66 void KdedAdaptor::loadSecondPhase()
67 {
68  Kded::self()->loadSecondPhase();
69 }
70 
71 void KdedAdaptor::quit()
72 {
74 }
QCoreApplication * instance()
QString service() const const
static KSharedConfig::Ptr openConfig(const QString &fileName=QString(), OpenFlags mode=FullConfig, QStandardPaths::StandardLocation type=QStandardPaths::GenericConfigLocation)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue May 11 2021 22:50:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.