dbus adaptors (Re: KDE/kdelibs)

Matthias Kretz kretz at kde.org
Sun Jul 9 22:27:17 BST 2006


On Sunday 09 July 2006 19:47, Harald Fernengel wrote:
> in my accessibility framework, I'm currently using q*adaptor_impl.cpp,
> which is hand written, whereas the q*adaptor.h is auto-generated. This way
> I get an instant compile error if the xml goes out of sync with the source,
> and I don't accidently overwrite my manual implementation.
>
> q*adaptor.cpp -> ignored
> q*adaptor.h -> auto-generated
> q*adaptor_impl.cpp -> hand-written implementation with all the logic
>
> Is this a candidate for a KDE pattern? :)

How about adding a switch to dbusxml2cpp to only generate the header file? 
Then the cmake macro could be told to use that switch. I think that would be 
better than having an unused source file lying around (even if it's only the 
builddir).

-- 
C'ya
        Matthias
________________________________________________________
Matthias Kretz (Germany)                            <><
http://Vir.homelinux.org/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060709/2b633e19/attachment.sig>


More information about the kde-core-devel mailing list