[Kde-imaging] New KIPI plugins category identification based on KAction detection.

Aurelien Gateau aurelien.gateau at free.fr
Wed Jun 16 01:35:38 CEST 2004


Le mardi 15 Juin 2004 21:41, Jesper K. Pedersen a écrit :
> Why not remove the KIPI::Category KIPI::Plugin::category() const
> and only keep
> KIPI::Category KIPI::Plugin::category( KAction* action )
> In case a plugin has the same category for all its plugins, it will simply
> ignore the action paramter:
>
> KIPI::Category MyPlugin::category( KAction* /*action*/ ) {
>   return IMAGEPLUGIN;
> }
>
> That makes the host application code much simpler, plus removes the need
> for the KIPI::UNDEFINEDPLUGIN
>
> Or am I missing something?

Sounds good to me.

Aurélien


More information about the Kde-imaging mailing list