1 | /* |
---|---|
2 | This file is part of the KDE libraries |
3 | SPDX-FileCopyrightText: 1999 David Faure <faure@kde.org> |
4 | SPDX-FileCopyrightText: 2000 Waldo Bastian <bastian@kde.org> |
5 | |
6 | SPDX-License-Identifier: LGPL-2.0-or-later |
7 | */ |
8 | |
9 | #ifndef KDED_KDEDADAPTOR_H |
10 | #define KDED_KDEDADAPTOR_H |
11 | |
12 | #include <QDBusAbstractAdaptor> |
13 | class QDBusMessage; |
14 | |
15 | class KdedAdaptor : public QDBusAbstractAdaptor |
16 | { |
17 | Q_OBJECT |
18 | Q_CLASSINFO("D-Bus Interface", "org.kde.kded6") |
19 | public: |
20 | KdedAdaptor(QObject *parent); |
21 | |
22 | public Q_SLOTS: |
23 | bool loadModule(const QString &obj); |
24 | QStringList loadedModules(); |
25 | bool unloadModule(const QString &obj); |
26 | // bool isWindowRegistered(qlonglong windowId) const; |
27 | void registerWindowId(qlonglong windowId, const QDBusMessage &); |
28 | void unregisterWindowId(qlonglong windowId, const QDBusMessage &); |
29 | void reconfigure(); |
30 | void quit(); |
31 | |
32 | /** |
33 | * Check if module @a module has @c X-KDE-Kded-autoload=True. |
34 | */ |
35 | bool isModuleAutoloaded(const QString &module); |
36 | |
37 | /** |
38 | * Check if module @a module has @c X-KDE-Kded-load-on-demand=True. |
39 | */ |
40 | bool isModuleLoadedOnDemand(const QString &module); |
41 | |
42 | /** |
43 | * Set @c X-KDE-Kded-autoload to @a autoload for module @a module. |
44 | */ |
45 | void setModuleAutoloading(const QString &module, bool autoload); |
46 | }; |
47 | |
48 | #endif |
49 |
Definitions
Learn Advanced QML with KDAB
Find out more