[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: KDE/kdevelop/lib/interfaces
From: Matt Rogers <mattr () kde ! org>
Date: 2007-03-30 4:18:47
Message-ID: 5A1EC95C-09C8-46FA-8251-02880BAD9C86 () kde ! org
[Download RAW message or body]
On Mar 28, 2007, at 6:35 AM, Andras Mantia wrote:
> SVN commit 647485 by amantia:
>
> Convenience function to access and extension interface in one step.
>
> M +11 -0 iplugincontroller.cpp
> M +15 -1 iplugincontroller.h
>
>
> --- trunk/KDE/kdevelop/lib/interfaces/iplugincontroller.cpp
> #647484:647485
> @@ -23,6 +23,8 @@
> */
> #include "iplugincontroller.h"
>
> +#include <QtDesigner/QExtensionManager>
> +
> #include <kservicetypetrader.h>
> #include "iplugin.h"
>
> @@ -39,6 +41,15 @@
> {
> }
>
> +template<class Extension> Extension*
> IPluginController::extensionForPlugin( const QString &extension,
> const QString &pluginname)
> +{
> + IPlugin *plugin = pluginForExtension(extension, pluginname);
> + if (plugin)
> + return plugin->extension<Extension*>();
> + else
> + return 0L;
> +}
> +
> KPluginInfo::List IPluginController::query( const QString
> &serviceType,
> const QString &constraint )
> {
> --- trunk/KDE/kdevelop/lib/interfaces/iplugincontroller.h
> #647484:647485
> @@ -73,7 +73,8 @@
> /**
> * @brief Unloads the plugin specified by @p plugin
> *
> - * @param plugin The name of the plugin as specified by the
> + * @param plugin The name of the pl#include <QtDesigner/
> QExtensionManager>
> + ugin as specified by the
> * X-KDE-PluginInfo-Name key of the .desktop file for the plugin
> */
> virtual void unloadPlugin( const QString & plugin ) = 0;
your script replaced too much.
Matt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic