KDE 4 namespaces

Frans Englich frans.englich at telia.com
Mon May 9 20:08:35 BST 2005


On Monday 09 May 2005 11:27, Thiago Macieira wrote:
> David Faure wrote:
> >* but for libs "above" those (KIO, KParts, KABC, etc.), we would use
> > namespaces. We already mostly do, except for half of KIO.
>
> In the case of KIO, I'd like to see the ioslave-related classes moved to
> another library. There's no need for SlaveBase, TCPSlaveBase & family to
> be in applications.
>
> >On the other hand, a KIO-namespaced class can't move to kdecore later
> > (like KSycoca did), so we have to make sure to get it right from the
> > start. Let's see what this would look like:
>
> We can, with some trickery :-)
>
> namespace KIO
> {
>   class NewClass
>   {
>   };
> }
>
> /* the trick: */
> typedef KIO::NewClass KNewClass;

FWIW; that's a case which is relatively easily detected and fixed with a 
porting script. The less that depends on _COMPAT the better, IMHO.



Cheers,

		Frans




More information about the kde-core-devel mailing list