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

List:       kde-core-devel
Subject:    Re: KDE 4 namespaces
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2005-05-09 20:02:16
Message-ID: 200505091402.22298.aseigo () kde ! org
[Download RAW message or body]


On Monday 09 May 2005 02:55, David Faure wrote:
> How about a half-way solution?

s,half-way,pragmatic,

> * kdecore and kdeui are sort of extensions to Qt, they can very well follow
> the same naming rules, i.e. keep the current KFoo and KBar there without
> namespaces. (this basically removes Core, UI, Network and IPC from the
> initial proposal).
>
> * but for libs "above" those (KIO, KParts, KABC, etc.), we would use
> namespaces. We already mostly do, except for half of KIO.
> 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:
> KArchive -> KIO::Archive, KDirLister -> KIO::DirLister, KMimeType ->
> KIO::MimeType. Why not? With typedefs to ease the porting, only
> signals/slots need to be fixed, and I don't think anyone passes any of
> those in a signal :)

i think this is a straightforward solution that puts as little burdon on 
people porting applications from KDE3 to KDE4 while granting the 
'second-level' libs which already tend to use namespaces (e.g. KIO and 
KParts) the benefits they would reap from consistent use of namespaces.

-- 
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

[Attachment #3 (application/pgp-signature)]

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

Configure | About | News | Add a list | Sponsored by KoreLogic