9#include "kdedadaptor.h"
11#include <KSharedConfig>
12#include <QCoreApplication>
13#include <QDBusMessage>
15KdedAdaptor::KdedAdaptor(
QObject *parent)
20bool KdedAdaptor::isModuleAutoloaded(
const QString &module)
22 return Kded::self()->isModuleAutoloaded(module);
25bool KdedAdaptor::isModuleLoadedOnDemand(
const QString &module)
27 return Kded::self()->isModuleLoadedOnDemand(module);
30bool KdedAdaptor::loadModule(
const QString &module)
32 return Kded::self()->loadModule(module,
false) !=
nullptr;
35bool KdedAdaptor::unloadModule(
const QString &module)
37 return Kded::self()->unloadModule(module);
40void KdedAdaptor::registerWindowId(qlonglong windowId,
const QDBusMessage &msg)
42 Kded::self()->registerWindowId(windowId, msg.
service());
45void KdedAdaptor::setModuleAutoloading(
const QString &module,
bool autoload)
47 return Kded::self()->setModuleAutoloading(module, autoload);
49void KdedAdaptor::unregisterWindowId(qlonglong windowId,
const QDBusMessage &msg)
51 Kded::self()->unregisterWindowId(windowId, msg.
service());
56 return Kded::self()->loadedModules();
59void KdedAdaptor::reconfigure()
62 Kded::self()->initModules();
65void KdedAdaptor::quit()
70#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