kcmoduleloader.h
/*
Copyright (c) 1999 Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
Copyright (c) 2002-2003 Daniel Molkentin <molkentin@kde.org>
This file is part of the KDE project
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2, as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef MODLOADER_H
#define MODLOADER_H
#include <kcmodule.h>
#include <kcmoduleinfo.h>
class QWidget;
class KLibLoader;
class KUTILS_EXPORT KCModuleLoader
{
public:
static KCModule *loadModule(const KCModuleInfo &module, bool withFallback=true,
QWidget * parent = 0, const char * name = 0,
const QStringList & args = QStringList() ) KDE_DEPRECATED;
static KCModule *loadModule(const QString &module, QWidget *parent = 0,
const char *name = 0, const QStringList & args = QStringList()) KDE_DEPRECATED;
enum ErrorReporting {
None = 0,
Inline = 1,
Dialog = 2,
Both = 3
};
static KCModule *loadModule(const KCModuleInfo &module, ErrorReporting
report, bool withFallback=true, QWidget * parent = 0,
const char * name = 0, const QStringList & args = QStringList() );
static KCModule *loadModule(const QString &module, ErrorReporting
report, QWidget *parent = 0, const char *name = 0,
const QStringList & args = QStringList());
static void unloadModule(const KCModuleInfo &mod);
static void showLastLoaderError(QWidget *parent) KDE_DEPRECATED;
static bool testModule( const QString& module );
static bool testModule( const KCModuleInfo& module );
static KCModule* reportError( ErrorReporting report, const QString & text,
QString details, QWidget * parent );
private:
static KCModule* load(const KCModuleInfo &mod, const QString &libname,
KLibLoader *loader, ErrorReporting report, QWidget * parent = 0,
const char * name = 0, const QStringList & args = QStringList() );
};
// vim: ts=2 sw=2 et
#endif // MODLOADER_H
KCModuleLoader::ErrorReporting
ErrorReporting
Determines the way errors are reported.
Definition: kcmoduleloader.h:84
KCModuleInfo
A class that provides information about a KCModule.
Definition: kcmoduleinfo.h:49
KLibLoader
KCModuleLoader
Loads a KControl Module.
Definition: kcmoduleloader.h:45
KCModule

KDE Home | KDE Accessibility Home | Description of Access Keys