kcmoduleloader.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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
00044
class KUTILS_EXPORT KCModuleLoader
00045 {
00046
public:
00047
00059
static KCModule *loadModule(
const KCModuleInfo &module,
bool withFallback=
true,
00060
QWidget * parent = 0,
const char * name = 0,
00061
const QStringList & args =
QStringList() ) KDE_DEPRECATED;
00062
00071
static KCModule *loadModule(
const QString &module,
QWidget *parent = 0,
00072
const char *name = 0,
const QStringList & args =
QStringList()) KDE_DEPRECATED;
00073
00077
enum ErrorReporting {
00081 None = 0,
00086 Inline = 1,
00090 Dialog = 2,
00094 Both = 3
00095 };
00096
00107
static KCModule *loadModule(
const KCModuleInfo &module, ErrorReporting
00108 report,
bool withFallback=
true,
QWidget * parent = 0,
00109
const char * name = 0,
const QStringList & args =
QStringList() );
00110
00120
static KCModule *loadModule(
const QString &module, ErrorReporting
00121 report,
QWidget *parent = 0,
const char *name = 0,
00122
const QStringList & args =
QStringList());
00123
00128
static void unloadModule(
const KCModuleInfo &mod);
00129
00137
static void showLastLoaderError(
QWidget *parent) KDE_DEPRECATED;
00138
00139
00168
static bool testModule(
const QString& module );
00169
00177
static bool testModule(
const KCModuleInfo& module );
00178
00189
static KCModule* reportError( ErrorReporting report,
const QString & text,
00190
QString details,
QWidget * parent );
00191
00192
private:
00193
00198
static KCModule* load(
const KCModuleInfo &mod,
const QString &libname,
00199
KLibLoader *loader, ErrorReporting report,
QWidget * parent = 0,
00200
const char * name = 0,
const QStringList & args =
QStringList() );
00201
00202 };
00203
00204
00205
#endif // MODLOADER_H
00206
This file is part of the documentation for kutils Library Version 3.4.0.