On 2/20/06, <b class="gmail_sendername">Thomas Braxton</b> <<a href="mailto:brax108@cox.net">brax108@cox.net</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Monday 20 February 2006 09:45, Avi Alkalay wrote:<br>> Thomas, how far is this new API from being accepted in the official source<br>> ?<br>At the moment, it is only me and Aaron working on it, but if we want to<br>
implement any other backends for KDE4, then something like this will have to<br>be done, because the current KConfigBase/KConfig assume entirely too much<br>about the file format.</blockquote><div><br>When we started to rethink Elektra with multiple backends, a lot in the interfaces had to change to acomodate a more generical approach. This is normal and you only have the chance to make it right when you have the chance to use many different technologies.
<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> As a side note, on Elektra there are no config files. So maybe this methods
<br>> should be renamed to something like retrieveConfigResource() and<br>> saveConfigResource().<br>> A filename can be a configuration root, etc, so we can use them the way<br>> they are today anyway.<br>Would these "resources" be a group of key/value pairs? If yes, then I don't
<br>see a problem with renaming the functions. If not, then what would they be?</blockquote><div><br>Your current interface would fit, though the method names only don't make much sense. Thats a minor issue.<br><br>On elektra we have Keys and KeySets. A Key (and its value) is something like 
<br><tt class="filename"><br>system/sw/xorg/InputDevices/Mouse0/Options/Device</tt>: /dev/input/mice<br><br>While a KeySet can be all keys under <tt class="filename">system/sw/xorg</tt><br>Check here for more examples:<br>
<a href="http://www.libelektra.org/Overview/examples.html">http://www.libelektra.org/Overview/examples.html</a><br> <br>So the idea for the backend is to map Elektra Keys and KeySets to KConfig's keys. Then we have to solve how to make kiosk, etc.
<br><br></div>Or download the very-graphical-presentation I made in KDE's event in Ludwigsburg in 2004:<br><a href="http://www.libelektra.org/Download/elektra.sxi">http://www.libelektra.org/Download/elektra.sxi</a><br><br>
Regards,<br>Avi<br></div>