kutils Library API Documentation

kcmoduleloader.h

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., 59 Temple Place - Suite 330,
00019   Boston, MA 02111-1307, 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 
00030 class KCModuleLoader
00031 {
00038 public:
00039   static KCModule *loadModule(const KCModuleInfo &mod, bool withfallback=true, QWidget * parent = 0, const char * name = 0, const QStringList & args = QStringList() );
00040   static KCModule *loadModule(const QString &module, QWidget *parent = 0,
00041       const char *name = 0, const QStringList & args = QStringList());
00042   static void unloadModule(const KCModuleInfo &mod);
00043   static void showLastLoaderError(QWidget *parent);
00044 private:
00045   static KCModule* load(const KCModuleInfo &mod, const QString &libname, KLibLoader *loader, QWidget * parent = 0, const char * name = 0, const QStringList & args = QStringList() );
00046 
00047 };
00048 
00049 #endif // MODLOADER_H
00050 
KDE Logo
This file is part of the documentation for kutils Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun May 16 22:04:33 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003