kate
pluginmanager.cpp
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 00019 #include "pluginmanager.moc" 00020 00021 #include "plugin.h" 00022 #include "documentmanager.h" 00023 #include "toolviewmanager.h" 00024 #include "pluginmanager.h" 00025 00026 #include "../app/katepluginmanager.h" 00027 #include "../app/kateapp.h" 00028 00029 namespace Kate 00030 { 00031 00032 class PrivatePluginManager 00033 { 00034 public: 00035 PrivatePluginManager () 00036 { 00037 } 00038 00039 ~PrivatePluginManager () 00040 { 00041 } 00042 00043 KatePluginManager *pluginMan; 00044 }; 00045 00046 PluginManager::PluginManager (void *pluginManager) : QObject ((KatePluginManager*) pluginManager) 00047 { 00048 d = new PrivatePluginManager (); 00049 d->pluginMan = (KatePluginManager*) pluginManager; 00050 } 00051 00052 PluginManager::~PluginManager () 00053 { 00054 delete d; 00055 } 00056 00057 Plugin *PluginManager::plugin(const QString &name) 00058 { 00059 return d->pluginMan->plugin(name); 00060 } 00061 00062 bool PluginManager::pluginAvailable(const QString &name) 00063 { 00064 return d->pluginMan->pluginAvailable (name); 00065 } 00066 00067 Plugin *PluginManager::loadPlugin(const QString &name,bool permanent) 00068 { 00069 return d->pluginMan->loadPlugin (name, permanent); 00070 } 00071 00072 void PluginManager::unloadPlugin(const QString &name,bool permanent) 00073 { 00074 d->pluginMan->unloadPlugin (name, permanent); 00075 } 00076 00077 } 00078