• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kutils
 

kutils

  • kutils
kcmoduleloader.h
1 /*
2  Copyright (c) 1999 Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
3  Copyright (c) 2002-2003 Daniel Molkentin <molkentin@kde.org>
4 
5  This file is part of the KDE project
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License version 2, as published by the Free Software Foundation.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 #ifndef MODLOADER_H
22 #define MODLOADER_H
23 
24 #include <kcmodule.h>
25 #include <kcmoduleinfo.h>
26 
27 class TQWidget;
28 class KLibLoader;
29 
45 class KUTILS_EXPORT KCModuleLoader
46 {
47  public:
48 
63  static KCModule *loadModule(const KCModuleInfo &module, bool withFallback=true,
64  TQWidget * parent = 0, const char * name = 0,
65  const TQStringList & args = TQStringList() ) KDE_DEPRECATED;
66 
78  static KCModule *loadModule(const TQString &module, TQWidget *parent = 0,
79  const char *name = 0, const TQStringList & args = TQStringList()) KDE_DEPRECATED;
80 
84  enum ErrorReporting {
88  None = 0,
93  Inline = 1,
97  Dialog = 2,
101  Both = 3
102  };
103 
117  static KCModule *loadModule(const KCModuleInfo &module, ErrorReporting
118  report, bool withFallback=true, TQWidget * parent = 0,
119  const char * name = 0, const TQStringList & args = TQStringList() );
120 
133  static KCModule *loadModule(const TQString &module, ErrorReporting
134  report, TQWidget *parent = 0, const char *name = 0,
135  const TQStringList & args = TQStringList());
136 
141  static void unloadModule(const KCModuleInfo &mod);
142 
150  static void showLastLoaderError(TQWidget *parent) KDE_DEPRECATED;
151 
152 
181  static bool testModule( const TQString& module );
182 
190  static bool testModule( const KCModuleInfo& module );
191 
203  static KCModule* reportError( ErrorReporting report, const TQString & text,
204  TQString details, TQWidget * parent );
205 
206  private:
207 
212  static KCModule* load(const KCModuleInfo &mod, const TQString &libname,
213  KLibLoader *loader, ErrorReporting report, TQWidget * parent = 0,
214  const char * name = 0, const TQStringList & args = TQStringList() );
215 
216 };
217 
218 // vim: ts=2 sw=2 et
219 #endif // MODLOADER_H
220 
KCModuleLoader::ErrorReporting
ErrorReporting
Determines the way errors are reported.
Definition: kcmoduleloader.h:84
KCModuleInfo
A class that provides information about a KCModule.
Definition: kcmoduleinfo.h:49
KLibLoader
KCModuleLoader
Loads a KControl Module.
Definition: kcmoduleloader.h:45
KCModule

kutils

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

kutils

Skip menu "kutils"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kutils by doxygen 1.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |