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

KUtils

  • 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
28class QWidget;
29
43namespace 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
KCModuleInfo
A class that provides information about a KCModule.
Definition: kcmoduleinfo.h:48
KCModule
QWidget
kcmodule.h
kcmoduleinfo.h
KCModuleLoader
Loads a KControl Module.
Definition: kcmoduleloader.h:44
KCModuleLoader::ErrorReporting
ErrorReporting
Determines the way errors are reported.
Definition: kcmoduleloader.h:48
KCModuleLoader::Inline
@ Inline
the error report is shown instead of the KCModule that should have * been loaded
Definition: kcmoduleloader.h:57
KCModuleLoader::Dialog
@ Dialog
shows a dialog with the error report
Definition: kcmoduleloader.h:61
KCModuleLoader::Both
@ Both
does both Inline and Dialog
Definition: kcmoduleloader.h:65
None
None
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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