KDE 4 namespaces

Thiago Macieira thiago at kde.org
Mon May 9 20:29:55 BST 2005

Martijn Klingens wrote:
>> > namespace KIO
>> > {
>> >   class NewClass
>> >   {
>> >   };
>> > }
>> >
>> > /* the trick: */
>> > typedef KIO::NewClass KNewClass;
>And AFAICS it doesn't work at all with signal/slot connections, as those
> rely on the real namespace.

This is not what I meant here. This was related to the moving of a 
namespaced class to a non-namespaced library.

But signals and slots become a problem: it's string comparison, so the old 
name must be used throughout, if this class is passed as a parameter in 
any signal or slot.

  Thiago Macieira  -  thiago (AT) macieira (DOT) info
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

4. And æfter se scieppend ingelogode, he wrát "cenn", ac eala! se 
rihtendgesamnung andswarode "cenn: ne wát hú cennan 'eall'. Ástynt."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050509/890ae239/attachment.sig>

More information about the kde-core-devel mailing list