• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KUtils

  • sources
  • kde-4.14
  • kdelibs
  • kutils
kcmoduleloader.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 1999 Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
3  Copyright (c) 2002-2003 Daniel Molkentin <molkentin@kde.org>
4  Copyright (c) 2006 Matthias Kretz <kretz@kde.org>
5 
6  This file is part of the KDE project
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public
10  License version 2, as published by the Free Software Foundation.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 #ifndef KCMODULELOADER_H
23 #define KCMODULELOADER_H
24 
25 #include <kcmodule.h>
26 #include <kcmoduleinfo.h>
27 
28 class QWidget;
29 
43 namespace KCModuleLoader
44 {
48  enum ErrorReporting {
52  None = 0,
57  Inline = 1,
61  Dialog = 2,
65  Both = 3
66  };
67 
75  KCMUTILS_EXPORT KCModule *loadModule(const KCModuleInfo &module, ErrorReporting
76  report, QWidget * parent = 0, const QStringList& args = QStringList() );
77 
86  KCMUTILS_EXPORT KCModule *loadModule( const QString &module, ErrorReporting report,
87  QWidget *parent = 0, const QStringList& args = QStringList() );
88 
93  KCMUTILS_EXPORT void unloadModule(const KCModuleInfo &mod);
94 
102 #ifndef KDE_NO_DEPRECATED
103  KCMUTILS_EXPORT KDE_DEPRECATED void showLastLoaderError(QWidget *parent);
104 #endif
105 
115  KCMUTILS_EXPORT KCModule* reportError( ErrorReporting report, const QString & text,
116  const QString &details, QWidget * parent );
117 
118 }
119 
120 // vim: ts=2 sw=2 et
121 #endif // KCMODULELOADER_H
KCModuleLoader::unloadModule
void unloadModule(const KCModuleInfo &mod)
Unloads the module's library.
Definition: kcmoduleloader.cpp:139
QWidget
KCModuleLoader::Dialog
shows a dialog with the error report
Definition: kcmoduleloader.h:61
kcmodule.h
KCModuleLoader::showLastLoaderError
void showLastLoaderError(QWidget *parent)
Display a message box explaining an error occurred and possible reasons to why.
Definition: kcmoduleloader.cpp:147
KCModuleLoader::ErrorReporting
ErrorReporting
Determines the way errors are reported.
Definition: kcmoduleloader.h:48
QString
QStringList
KCModuleInfo
A class that provides information about a KCModule.
Definition: kcmoduleinfo.h:47
KCModuleLoader::Both
does both Inline and Dialog
Definition: kcmoduleloader.h:65
KCModuleLoader::reportError
KCModule * reportError(ErrorReporting report, const QString &text, const QString &details, QWidget *parent)
Returns a KCModule containing the messages report and text.
Definition: kcmoduleloader.cpp:161
KCModuleLoader::Inline
the error report is shown instead of the KCModule that should have * been loaded
Definition: kcmoduleloader.h:57
kcmoduleinfo.h
KCModule
KCModuleLoader::loadModule
KCModule * loadModule(const KCModuleInfo &module, ErrorReporting report, QWidget *parent=0, const QStringList &args=QStringList())
Loads a KCModule.
Definition: kcmoduleloader.cpp:65
KCModuleLoader::None
no error reporting is done
Definition: kcmoduleloader.h:52
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KUtils

Skip menu "KUtils"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal