[RFC] KConfig API stuff

David Faure faure at kde.org
Tue Oct 23 13:52:04 BST 2007


On Tuesday 23 October 2007, Oswald Buddenhagen wrote:
> On Tue, Oct 23, 2007 at 01:39:47PM +0200, Alexander Neundorf wrote:
> > On Tuesday 23 October 2007 11:31, Oswald Buddenhagen wrote: ...
> > > anyway, this is waaaay too much noise for a function that is used
> > > four times in all of KDE/ and nowhere in extragear/ or koffice/
> > > (iirc).
> > 
> > Sure, just try to give it a name which says what it does do instead of
> > what it does not do.
> > 
> it says what it does. ;)
> - sync(): flush changes to disk. config is the same in ram and on disk
>   afterwards
> - fakeSync(): pretend that changes are flushed. kconfig *thinks* that
>   config is the same in ram and on disk afterwards
fakeSync doesn't really tell what happens to the values in ram after that;
it sounds like the real sync is still to be done.
Why not call this revert()? After all that's exactly like a svn revert, no?

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list