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

KUtils

kcmoduleloader.h

Go to the documentation of this file.
00001 /*
00002   Copyright (c) 1999 Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
00003   Copyright (c) 2002-2003 Daniel Molkentin <molkentin@kde.org>
00004   
00005   This file is part of the KDE project
00006   
00007   This library is free software; you can redistribute it and/or
00008   modify it under the terms of the GNU Library General Public
00009   License version 2, as published by the Free Software Foundation.
00010 
00011   This library is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014   Library General Public License for more details.
00015 
00016   You should have received a copy of the GNU Library General Public License
00017   along with this library; see the file COPYING.LIB.  If not, write to
00018   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019   Boston, MA 02110-1301, USA.
00020 */
00021 #ifndef MODLOADER_H
00022 #define MODLOADER_H
00023 
00024 #include <kcmodule.h>
00025 #include <kcmoduleinfo.h>
00026 
00027 class QWidget;
00028 class KLibLoader;
00029 
00045 class KUTILS_EXPORT KCModuleLoader
00046 {
00047   public:
00048 
00063     static KCModule *loadModule(const KCModuleInfo &module, bool withFallback=true, 
00064         QWidget * parent = 0, const char * name = 0,
00065         const QStringList & args = QStringList() ) KDE_DEPRECATED;
00066 
00078     static KCModule *loadModule(const QString &module, QWidget *parent = 0,
00079         const char *name = 0, const QStringList & args = QStringList()) KDE_DEPRECATED;
00080 
00084     enum ErrorReporting {
00088       None = 0,
00093       Inline = 1,
00097       Dialog = 2,
00101       Both = 3
00102     };
00103 
00117     static KCModule *loadModule(const KCModuleInfo &module, ErrorReporting
00118         report, bool withFallback=true, QWidget * parent = 0,
00119         const char * name = 0, const QStringList & args = QStringList() );
00120 
00133     static KCModule *loadModule(const QString &module, ErrorReporting
00134         report, QWidget *parent = 0, const char *name = 0,
00135         const QStringList & args = QStringList());
00136 
00141     static void unloadModule(const KCModuleInfo &mod);
00142 
00150     static void showLastLoaderError(QWidget *parent) KDE_DEPRECATED;
00151 
00152 
00181     static bool testModule( const QString& module );
00182 
00190     static bool testModule( const KCModuleInfo& module );
00191 
00203     static KCModule* reportError( ErrorReporting report, const QString & text,
00204         QString details, QWidget * parent );
00205 
00206   private:
00207 
00212     static KCModule* load(const KCModuleInfo &mod, const QString &libname, 
00213         KLibLoader *loader, ErrorReporting report, QWidget * parent = 0,
00214         const char * name = 0, const QStringList & args = QStringList() );
00215 
00216 };
00217 
00218 // vim: ts=2 sw=2 et
00219 #endif // MODLOADER_H
00220 

KUtils

Skip menu "KUtils"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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