kate/interfaces/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 #include "pluginmanager.h" 00019 00020 #include "pluginmanager.moc" 00021 00022 #include "plugin.h" 00023 #include "documentmanager.h" 00024 00025 #include "../app/katepluginmanager.h" 00026 #include "../app/kateapp.h" 00027 00028 namespace Kate 00029 { 00030 00031 class PrivatePluginManager 00032 { 00033 public: 00034 PrivatePluginManager () 00035 {} 00036 00037 ~PrivatePluginManager () 00038 {} 00039 00040 KatePluginManager *pluginMan; 00041 }; 00042 00043 PluginManager::PluginManager (void *pluginManager) : QObject ((KatePluginManager*) pluginManager) 00044 { 00045 d = new PrivatePluginManager (); 00046 d->pluginMan = (KatePluginManager*) pluginManager; 00047 } 00048 00049 PluginManager::~PluginManager () 00050 { 00051 delete d; 00052 } 00053 00054 Plugin *PluginManager::plugin(const QString &name) 00055 { 00056 return d->pluginMan->plugin(name); 00057 } 00058 00059 bool PluginManager::pluginAvailable(const QString &name) 00060 { 00061 return d->pluginMan->pluginAvailable (name); 00062 } 00063 00064 Plugin *PluginManager::loadPlugin(const QString &name, bool permanent) 00065 { 00066 return d->pluginMan->loadPlugin (name, permanent); 00067 } 00068 00069 void PluginManager::unloadPlugin(const QString &name, bool permanent) 00070 { 00071 d->pluginMan->unloadPlugin (name, permanent); 00072 } 00073 00074 } 00075 00076 // kate: space-indent on; indent-width 2; replace-tabs on; 00077
KDE 4.5 API Reference