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

KUtils

Enumerations | Functions
KCModuleLoader Namespace Reference

Enumerations

enum  ErrorReporting { None = 0, Inline = 1, Dialog = 2, Both = 3 }
 

Functions

KCModule * loadModule (const KCModuleInfo &module, ErrorReporting report, QWidget *parent=0, const QStringList &args=QStringList())
 
KCModule * loadModule (const QString &module, ErrorReporting report, QWidget *parent=0, const QStringList &args=QStringList())
 
KCModule * reportError (ErrorReporting report, const QString &text, const QString &details, QWidget *parent)
 
void showLastLoaderError (QWidget *parent)
 
void unloadModule (const KCModuleInfo &mod)
 

Detailed Description

Loads a KControl Module.

KCModuleLoader tries in several ways to locate and load a KCModule. If loading fails a zero pointer is returned.
It is very unlikely KCModuleLoader is what you want and KCModuleProxy suits your needs.

Author
Matthias Hoelzer-Kluepfel mhk@k.nosp@m.de.o.nosp@m.rg
Frans Englich frans.nosp@m..eng.nosp@m.lich@.nosp@m.teli.nosp@m.a.com

Enumeration Type Documentation

enum KCModuleLoader::ErrorReporting

Determines the way errors are reported.

Enumerator
None 

no error reporting is done

Inline 

the error report is shown instead of the KCModule that should have * been loaded

Dialog 

shows a dialog with the error report

Both 

does both Inline and Dialog

Definition at line 48 of file kcmoduleloader.h.

Function Documentation

KCModule * KCModuleLoader::loadModule ( const KCModuleInfo &  module,
ErrorReporting  report,
QWidget *  parent = 0,
const QStringList &  args = QStringList() 
)

Loads a KCModule.

If loading fails a zero pointer is returned.

Parameters
modulewhat module to load
reportsee ErrorReporting
Returns
a pointer to the loaded KCModule

Definition at line 65 of file kcmoduleloader.cpp.

KCModule * KCModuleLoader::loadModule ( const QString &  module,
ErrorReporting  report,
QWidget *  parent = 0,
const QStringList &  args = QStringList() 
)

Loads a KCModule.

If loading fails a zero pointer is returned.

Parameters
modulewhat module to load
reportsee ErrorReporting
Returns
a pointer to the loaded KCModule

Definition at line 60 of file kcmoduleloader.cpp.

KCModule * KCModuleLoader::reportError ( ErrorReporting  report,
const QString &  text,
const QString &  details,
QWidget *  parent 
)

Returns a KCModule containing the messages report and text.

Parameters
reportthe type of error reporting, see ErrorReporting
textthe main message
detailsany additional details

Definition at line 161 of file kcmoduleloader.cpp.

void KCModuleLoader::showLastLoaderError ( QWidget *  parent)

Display a message box explaining an error occurred and possible reasons to why.

Deprecated:
Use a constructor with ErrorReporting set to Dialog to show a message box like this function did.

Definition at line 147 of file kcmoduleloader.cpp.

void KCModuleLoader::unloadModule ( const KCModuleInfo &  mod)

Unloads the module's library.

Parameters
modWhat module to unload for

Definition at line 139 of file kcmoduleloader.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:35 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • 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