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

KDED

kdedadaptor.cpp

Go to the documentation of this file.
00001 /*  This file is part of the KDE libraries
00002  *  Copyright (C) 1999 David Faure <faure@kde.org>
00003  *  Copyright (C) 2000 Waldo Bastian <bastian@kde.org>
00004  *
00005  *  This library is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU Library General Public
00007  *  License as published by the Free Software Foundation; either
00008  *  version 2 of the License, or (at your option) any later version.
00009  *
00010  *  This library is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  *  Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Library General Public License
00016  *  along with this library; see the file COPYING.LIB.  If not, write to
00017  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  *  Boston, MA 02110-1301, USA.
00019  **/
00020 
00021 #include "kdedadaptor.h"
00022 #include "kded.h"
00023 #include <kglobal.h>
00024 #include <kconfig.h>
00025 #include <QCoreApplication>
00026 
00027 KdedAdaptor::KdedAdaptor(QObject *parent)
00028    : QDBusAbstractAdaptor(parent)
00029 {
00030 }
00031 
00032 bool KdedAdaptor::isModuleAutoloaded(const QString &module)
00033 {
00034    return Kded::self()->isModuleAutoloaded(module);
00035 }
00036 
00037 bool KdedAdaptor::isModuleLoadedOnDemand(const QString &module)
00038 {
00039    return Kded::self()->isModuleLoadedOnDemand(module);
00040 }
00041 
00042 bool KdedAdaptor::loadModule(const QString &module)
00043 {
00044    return Kded::self()->loadModule(module, false) != 0;
00045 }
00046 
00047 bool KdedAdaptor::unloadModule(const QString &module)
00048 {
00049    return Kded::self()->unloadModule(module);
00050 }
00051 
00052 void KdedAdaptor::registerWindowId(qlonglong windowId, const QDBusMessage &msg)
00053 {
00054    Kded::self()->registerWindowId(windowId, msg.service());
00055 }
00056 
00057 void KdedAdaptor::setModuleAutoloading(const QString &module, bool autoload)
00058 {
00059         return Kded::self()->setModuleAutoloading(module, autoload);
00060 }
00061 void KdedAdaptor::unregisterWindowId(qlonglong windowId, const QDBusMessage &msg)
00062 {
00063    Kded::self()->unregisterWindowId(windowId, msg.service());
00064 }
00065 
00066 QStringList KdedAdaptor::loadedModules()
00067 {
00068    return Kded::self()->loadedModules();
00069 }
00070 
00071 void KdedAdaptor::reconfigure()
00072 {
00073    KGlobal::config()->reparseConfiguration();
00074    Kded::self()->initModules();
00075    Kded::self()->loadSecondPhase();
00076 }
00077 
00078 void KdedAdaptor::loadSecondPhase()
00079 {
00080    Kded::self()->loadSecondPhase();
00081 }
00082 
00083 void KdedAdaptor::quit()
00084 {
00085    QCoreApplication::instance()->quit();
00086 }
00087 
00088 #include "kdedadaptor.moc"

KDED

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal