KDED

kdedadaptor.h
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 #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.kded5")
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  // TODO KF6 remove
31  void loadSecondPhase();
32  void quit();
33 
34  /**
35  * Check if module @a module has @c X-KDE-Kded-autoload=True.
36  */
37  bool isModuleAutoloaded(const QString &module);
38 
39  /**
40  * Check if module @a module has @c X-KDE-Kded-load-on-demand=True.
41  */
42  bool isModuleLoadedOnDemand(const QString &module);
43 
44  /**
45  * Set @c X-KDE-Kded-autoload to @a autoload for module @a module.
46  */
47  void setModuleAutoloading(const QString &module, bool autoload);
48 };
49 
50 #endif
Q_CLASSINFO(Name, Value)
Q_OBJECTQ_OBJECT
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.