[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Regarding KParts
From: Thiago Macieira <thiago () kde ! org>
Date: 2005-10-18 4:18:17
Message-ID: 200510180218.37318.thiago () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Chakkaradeep C C wrote:
>Hi all,
> Am new to KDE Programming and i started off learning KParts. The
> tutorials had something called "Factory Code to create the Part" and
> the code was,
>
>#include <kparts/genericfactory.h>
>
>// Factory code for KDE 3
>
>typedef KParts::GenericFactory<KXMLTreePart> KXMLTreeFactory;
>
>K_EXPORT_COMPONENT_FACTORY( libkxmltreepart /*library name*/,
>KXMLTreeFactory );
>
>i would be hapy if any of my friends could explain me what the above
> code do...
From klibloader.h:
# define K_EXPORT_COMPONENT_FACTORY( libname, factory ) \
extern "C" { KDE_EXPORT void *init_##libname() { return new
factory; } }
That's all.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
3. Ac seo woruld wearð geborod, swá se Scieppend cwæð "Gewurde Unix" and
wundor fremede and him "Unix" genemned, þæt is se rihtendgesamnung.
[Attachment #5 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic