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 00043 class KCModuleLoader 00044 { 00045 public: 00046 00056 static KCModule *loadModule(const KCModuleInfo &mod, bool withfallback=true, 00057 QWidget * parent = 0, const char * name = 0, const QStringList & args = QStringList() ); 00058 00064 static KCModule *loadModule(const QString &module, QWidget *parent = 0, 00065 const char *name = 0, const QStringList & args = QStringList()); 00066 00071 static void unloadModule(const KCModuleInfo &mod); 00072 00077 static void showLastLoaderError(QWidget *parent); 00078 00079 private: 00080 00084 static KCModule* load(const KCModuleInfo &mod, const QString &libname, 00085 KLibLoader *loader, QWidget * parent = 0, const char * name = 0, const QStringList & args = QStringList() ); 00086 00087 }; 00088 00089 // vim: ts=2 sw=2 et 00090 #endif // MODLOADER_H 00091
KDE Logo
This file is part of the documentation for kutils Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Sep 29 09:44:16 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003