KDED
9 #include "kdedadaptor.h"
11 #include <KSharedConfig>
12 #include <QCoreApplication>
13 #include <QDBusMessage>
15 KdedAdaptor::KdedAdaptor(
QObject *parent)
20 bool KdedAdaptor::isModuleAutoloaded(
const QString &module)
22 return Kded::self()->isModuleAutoloaded(module);
25 bool KdedAdaptor::isModuleLoadedOnDemand(
const QString &module)
27 return Kded::self()->isModuleLoadedOnDemand(module);
30 bool KdedAdaptor::loadModule(
const QString &module)
32 return Kded::self()->loadModule(module,
false) !=
nullptr;
35 bool KdedAdaptor::unloadModule(
const QString &module)
37 return Kded::self()->unloadModule(module);
40 void KdedAdaptor::registerWindowId(qlonglong windowId,
const QDBusMessage &msg)
42 Kded::self()->registerWindowId(windowId, msg.
service());
45 void KdedAdaptor::setModuleAutoloading(
const QString &module,
bool autoload)
47 return Kded::self()->setModuleAutoloading(module, autoload);
49 void KdedAdaptor::unregisterWindowId(qlonglong windowId,
const QDBusMessage &msg)
51 Kded::self()->unregisterWindowId(windowId, msg.
service());
56 return Kded::self()->loadedModules();
59 void KdedAdaptor::reconfigure()
62 Kded::self()->initModules();
63 Kded::self()->loadSecondPhase();
66 void KdedAdaptor::loadSecondPhase()
68 Kded::self()->loadSecondPhase();
71 void KdedAdaptor::quit()
76 #include "moc_kdedadaptor.cpp"
static KSharedConfig::Ptr openConfig(const QString &fileName=QString(), OpenFlags mode=FullConfig, QStandardPaths::StandardLocation type=QStandardPaths::GenericConfigLocation)
QCoreApplication * instance()
QString service() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:57:19 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.