[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: PATCH adds PluginInterface to KonqPopupMenu
From:       Simon Hausmann <hausmann () kde ! org>
Date:       2001-10-29 17:06:42
[Download RAW message or body]

On Mon, Oct 29, 2001 at 10:10:35AM +0100, Holger Freyther wrote:
> Hi,
> here is just a basic plugin. It simply just adds one entry into the 
> konqpopupmenu.

A minor comment about the factory (I'm a nitpicker lately ;-) : You
can replace the whole Factory and extern "C" stuff with one
statement:

K_EXPORT_COMPONENT_FACTORY( libtestplugin,
                            KGenericFactory<KTestPlugin> );

(and you'd need to change the constructor to look like this:
KTestMenu( QObject *parent, const char *name, const QStringList & );

Ah, this arises another feature idea about KGF (damn, when will this
beast be finished? ;-) . Here it would be handy to let KGF do the
cast to the desired parent type. Will look into that (no guarantee
though, but then again, it might be handy for the koffice filters,
too :)


Simon

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic