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., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, 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 }
00069 
00070 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys