kate Library API Documentation

pluginmanager.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
00003    Copyright (C) 2002 Joseph Wenninger <jowenn@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License version 2 as published by the Free Software Foundation.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017    Boston, MA 02111-1307, USA.
00018 */
00019 
00020 #ifndef _KATE_PLUGINMANAGER_INCLUDE_
00021 #define _KATE_PLUGINMANAGER_INCLUDE_
00022 
00023 #include <qobject.h>
00024 #include <kurl.h>
00025 
00026 namespace Kate
00027 {
00030 class KDE_EXPORT PluginManager : public QObject
00031 {
00032   friend class PrivatePluginManager;
00033 
00034   Q_OBJECT   
00035   
00036   public:
00037     PluginManager ( void *pluginManager  );
00038     virtual ~PluginManager ();
00039 
00040   public:
00042     class Plugin *plugin(const QString &name);
00043 
00048     bool pluginAvailable(const QString &name);
00049 
00055     class Plugin *loadPlugin(const QString &name,bool permanent=true);
00056     
00062     void unloadPlugin(const QString &name,bool permanent=true);
00063    
00064   private:
00065     class PrivatePluginManager *d;
00066 };
00067 
00068 class KDE_EXPORT InitPluginManager : public QObject
00069 {
00070   friend class PrivateInitPluginManager;
00071 
00072   Q_OBJECT   
00073   
00074   public:
00075     InitPluginManager ( void *initPluginManager );
00076     virtual ~InitPluginManager ();
00077     
00078   public:
00079     void performInit(const QString &libname, const KURL &initScript);
00080     
00081     class InitPlugin *initPlugin() const;
00082     KURL initScript() const;
00083     
00084   private:
00085     class PrivateInitPluginManager *d;
00086 };
00087 
00088 }
00089 
00090 #endif
KDE Logo
This file is part of the documentation for kate Library Version 3.4.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Apr 6 02:40:58 2005 by doxygen 1.4.0 written by Dimitri van Heesch, © 1997-2003