[PATCH] Convenience stuff for KCmodule
Simon Hausmann
hausmann at kde.org
Sun Feb 15 14:40:43 GMT 2004
On Sunday 15 February 2004 15:31, Cornelius Schumacher wrote:
> On Sunday 15 February 2004 14:15, Simon Hausmann wrote:
> > On Sunday 15 February 2004 13:13, Frans Englich wrote:
> > > What do you think about adding the macro and the slot to KCModule
> > > as the two attached patches suggests? (have been using them just
> > > fine)
> >
> > I think both patches are a good idea (JMHO) . However for the kcm
> > macro I don't think automatically prepending kcm_ is a good idea. In
> > fact I think the example doesn't work, as the instance name is
> > different to the name of the pot file (kcm_useraccount != mod_name
> > ('useraccount')) .
>
> Isn't there a more C++-like way to handle this than defining yet another
> macro?
The macros expand to something like this code:
extern "C" void *entryFunction()
{
return new FactoryClass<SomeType>( "instanceName" );
}
I can't think of a 'more C++-like' way to do that :-}
Simon
More information about the kde-core-devel
mailing list