[Kde-java] Re: GCJ (Re: Build system for KDE4)

Richard Dale Richard_Dale at tipitina.demon.co.uk
Thu Jun 16 10:17:12 CEST 2005


On Thursday 16 June 2005 11:00, Thomas Zander wrote:
> On Thursday 16 June 2005 10:18, Martijn Klingens wrote:
> > > But the package names are hard coded - any classes beginning with 'Q'
> > > go into
> > > org.kde.qt and all others go into org.kde.koala. So maybe when we
> > > decide on a
> > > better package naming scheme, the bindings generator ought to allow
> > > any Qt headers to be used for bindings generation and not just the
> > > ones in the Qt and KDE libs. Maybe a configuration file is needed for
> > > C++ classname to Java
> > > package/classname mappings.
> >
> > In the case of kextprocess it's namespaced C++ code. There's the
> > KExtProcess namespace with several classes in it. The most 'natural'
> > namespace for Java in terms of typing and grouping would probably be
> > <classname>.extprocess.kde.
>
> Remembering a conversation on kdecore-devel about namespaces; the
> consensus was that kdelibs was not going to be adding namespaces, meaning
> most classes will be namespace-less.
> I'm inclined to use the directories they are in; so we have a
> kde.kparts and a kde.kdeui kde.kdecore
> where the last may be renamed to
> kde.ui and kde.core
>
> This is fairly normal naming in Java.
That looks fine to me, I prefer the shorter forms kde.ui and kde.core. Then 
every KDE class which isn't in a namespace or subdirectory under the include 
directory should just be in kde.*.

-- Richard


More information about the Kde-java mailing list