• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDED

  • sources
  • kde-4.12
  • kdelibs
  • kded
kdedadaptor.cpp
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  * Copyright (C) 1999 David Faure <faure@kde.org>
3  * Copyright (C) 2000 Waldo Bastian <bastian@kde.org>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  **/
20 
21 #include "kdedadaptor.h"
22 #include "kded.h"
23 #include <kglobal.h>
24 #include <kconfig.h>
25 #include <QCoreApplication>
26 
27 KdedAdaptor::KdedAdaptor(QObject *parent)
28  : QDBusAbstractAdaptor(parent)
29 {
30 }
31 
32 bool KdedAdaptor::isModuleAutoloaded(const QString &module)
33 {
34  return Kded::self()->isModuleAutoloaded(module);
35 }
36 
37 bool KdedAdaptor::isModuleLoadedOnDemand(const QString &module)
38 {
39  return Kded::self()->isModuleLoadedOnDemand(module);
40 }
41 
42 bool KdedAdaptor::loadModule(const QString &module)
43 {
44  return Kded::self()->loadModule(module, false) != 0;
45 }
46 
47 bool KdedAdaptor::unloadModule(const QString &module)
48 {
49  return Kded::self()->unloadModule(module);
50 }
51 
52 void KdedAdaptor::registerWindowId(qlonglong windowId, const QDBusMessage &msg)
53 {
54  Kded::self()->registerWindowId(windowId, msg.service());
55 }
56 
57 void KdedAdaptor::setModuleAutoloading(const QString &module, bool autoload)
58 {
59  return Kded::self()->setModuleAutoloading(module, autoload);
60 }
61 void KdedAdaptor::unregisterWindowId(qlonglong windowId, const QDBusMessage &msg)
62 {
63  Kded::self()->unregisterWindowId(windowId, msg.service());
64 }
65 
66 QStringList KdedAdaptor::loadedModules()
67 {
68  return Kded::self()->loadedModules();
69 }
70 
71 void KdedAdaptor::reconfigure()
72 {
73  KGlobal::config()->reparseConfiguration();
74  Kded::self()->initModules();
75  Kded::self()->loadSecondPhase();
76 }
77 
78 void KdedAdaptor::loadSecondPhase()
79 {
80  Kded::self()->loadSecondPhase();
81 }
82 
83 void KdedAdaptor::quit()
84 {
85  QCoreApplication::instance()->quit();
86 }
87 
88 #include "kdedadaptor.moc"
KdedAdaptor::unregisterWindowId
void unregisterWindowId(qlonglong windowId, const QDBusMessage &)
Definition: kdedadaptor.cpp:61
kdedadaptor.h
kded.h
KdedAdaptor::reconfigure
void reconfigure()
Definition: kdedadaptor.cpp:71
Kded::registerWindowId
void registerWindowId(qlonglong windowId, const QString &sender)
Applications can register/unregister their windows with kded modules.
Definition: kded.cpp:667
Kded::setModuleAutoloading
void setModuleAutoloading(const QString &module, bool autoload)
Configure whether a module should be loaded on startup.
Definition: kded.cpp:306
QDBusAbstractAdaptor
KdedAdaptor::isModuleLoadedOnDemand
bool isModuleLoadedOnDemand(const QString &module)
Check if module module has X-KDE-Kded-load-on-demand=True.
Definition: kdedadaptor.cpp:37
KdedAdaptor::loadedModules
QStringList loadedModules()
Definition: kdedadaptor.cpp:66
kconfig.h
KdedAdaptor::isModuleAutoloaded
bool isModuleAutoloaded(const QString &module)
Check if module module has X-KDE-Kded-autoload=True.
Definition: kdedadaptor.cpp:32
QString
Kded::self
static Kded * self()
Definition: kded.h:47
QObject
KdedAdaptor::KdedAdaptor
KdedAdaptor(QObject *parent)
Definition: kdedadaptor.cpp:27
KGlobal::config
KSharedConfigPtr config()
Kded::loadedModules
QStringList loadedModules()
Definition: kded.cpp:438
kglobal.h
KdedAdaptor::loadSecondPhase
void loadSecondPhase()
Definition: kdedadaptor.cpp:78
KdedAdaptor::unloadModule
bool unloadModule(const QString &obj)
Definition: kdedadaptor.cpp:47
QStringList
Kded::loadModule
KDEDModule * loadModule(const QString &obj, bool onDemand)
Definition: kded.cpp:353
Kded::loadSecondPhase
void loadSecondPhase()
Definition: kded.cpp:286
Kded::isModuleAutoloaded
bool isModuleAutoloaded(const QString &module) const
Check if a module should be loaded on startup.
Definition: kded.cpp:318
Kded::isModuleLoadedOnDemand
bool isModuleLoadedOnDemand(const QString &module) const
Check if a module should be loaded on demand.
Definition: kded.cpp:335
Kded::unloadModule
bool unloadModule(const QString &obj)
Definition: kded.cpp:427
KdedAdaptor::loadModule
bool loadModule(const QString &obj)
Definition: kdedadaptor.cpp:42
KdedAdaptor::quit
void quit()
Definition: kdedadaptor.cpp:83
KConfig::reparseConfiguration
void reparseConfiguration()
KdedAdaptor::setModuleAutoloading
void setModuleAutoloading(const QString &module, bool autoload)
Set X-KDE-Kded-autoload to autoload for module module.
Definition: kdedadaptor.cpp:57
KdedAdaptor::registerWindowId
void registerWindowId(qlonglong windowId, const QDBusMessage &)
Definition: kdedadaptor.cpp:52
Kded::unregisterWindowId
void unregisterWindowId(qlonglong windowId, const QString &sender)
Unregister a window previously registered with KDED.
Definition: kded.cpp:685
Kded::initModules
void initModules()
Loads / unloads modules according to config.
Definition: kded.cpp:218
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDED

Skip menu "KDED"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal