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

List:       kde-devel
Subject:    Regarding KParts
From:       Chakkaradeep C C <chaks.yoper () gmail ! com>
Date:       2005-10-18 3:52:57
Message-ID: a54a308e0510172052l65382d1mf9461db84672a099 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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...

 with regards,

C.C.Chakkaradeep

[Attachment #5 (text/html)]

<div>Hi all,</div>
<div>&nbsp;</div>
<div>Am new to KDE Programming and i started off learning KParts. The tutorials had \
something called &quot;Factory Code to create the Part&quot; and the code was,</div> \
<div>&nbsp;</div> <div><font face="Courier" size="2">
<p align="left">#include &lt;kparts/genericfactory.h&gt;</p>
<p align="left">// Factory code for KDE 3</p>
<p align="left">typedef KParts::GenericFactory&lt;KXMLTreePart&gt; \
KXMLTreeFactory;</p> <p align="left">K_EXPORT_COMPONENT_FACTORY( libkxmltreepart \
/*library name*/, KXMLTreeFactory );</p> <p align="left">i would be hapy if any of my \
friends could explain me what the above code do...</p> <p align="left">&nbsp;</p>
<p align="left">with regards,</p>
<p align="left">C.C.Chakkaradeep</p>
<p align="left">&nbsp;</p></font></div>



>> 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