KUtils
kcmoduleloader.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef KCMODULELOADER_H
00023 #define KCMODULELOADER_H
00024
00025 #include <kcmodule.h>
00026 #include <kcmoduleinfo.h>
00027
00028 class QWidget;
00029
00043 namespace KCModuleLoader
00044 {
00048 enum ErrorReporting {
00052 None = 0,
00057 Inline = 1,
00061 Dialog = 2,
00065 Both = 3
00066 };
00067
00075 KUTILS_EXPORT KCModule *loadModule(const KCModuleInfo &module, ErrorReporting
00076 report, QWidget * parent = 0, const QStringList& args = QStringList() );
00077
00086 KUTILS_EXPORT KCModule *loadModule( const QString &module, ErrorReporting report,
00087 QWidget *parent = 0, const QStringList& args = QStringList() );
00088
00093 KUTILS_EXPORT void unloadModule(const KCModuleInfo &mod);
00094
00102 KUTILS_EXPORT KDE_DEPRECATED void showLastLoaderError(QWidget *parent);
00103
00113 KUTILS_EXPORT KCModule* reportError( ErrorReporting report, const QString & text,
00114 const QString &details, QWidget * parent );
00115
00116 }
00117
00118
00119 #endif // KCMODULELOADER_H