[Kde-hardware-devel] NM 0.7 settings update

Will Stephenson wstephenson at kde.org
Wed Jun 18 12:16:15 CEST 2008


On Wednesday 18 June 2008 08:07:34 you wrote:
> Le Wednesday 18 June 2008, Will Stephenson a écrit :
> > So I have the settings stuff for NM 0.7 nearly working now.
> > [...]
> > 2) A KConfigSkeleton is created at runtime by ConfigXml (from Plasma) for
> > each NM setting group by reading a corresponding .kcfg file and added to
> > the KCM to manage its widgets.
>
> This ConfigXml file really ought to go somewhere in kdelibs and be
> separated from plasma IMO.

Agreed.  Although the reason I'm using it is less because it is dynamic than 
it seemed possible to use it with nested groups instead of top level files 
(although this turned out to be broken due to kconfigskeleton limitations).  

To be really useful dynamically it needs to be possible to register new 
KConfigSkeletonItem subclasses at runtime as type handlers.

It would also be very nice if there was a way to relate KConfigXT items to 
secure storage entries (KWallet) but I'll think more about that when I've 
hacked some way to do this with what we have.  Currently i'm thinking of 
marking keys to be stored in the wallet with "kcfg_keyname_SECRET", extracting 
the name of the UI element "keyname" and then reading/writing the wallet using 
the keyname and the connection ID.

> > [...]
> > The code is in branches/work/~wstephens/networkmanager atm.  I would like
> > to merge it soon but I failed at my first attempt tonight, weird things
> > happened indicating conflicts in files not changed on my side.  Please
> > diff it vs trunk to see what it changes, mostly in Networksettings and
> > Connection
>
> Terrific job though, I'm really looking forward to see it merged.

Done.  Bear in mind it is all held together with spit and string at the moment 
using testservice and testconfigxml.

Will




More information about the Kde-hardware-devel mailing list