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

List:       kde-core-devel
Subject:    Re: kconfigbase
From:       Matthias Kalle Dalheimer <kalle () dalheimer ! de>
Date:       2000-04-12 17:31:27
[Download RAW message or body]

Matthias Elter wrote:
> 
> Hi
> 
> I miss something like:
> 
> void deleteEntry(const QString& key);
> void deleteGroup(const QString& group);
> 
> ... in KConfigBase.
> 
> Any particular reasons this has not been implemented for?
> 
> Greetings,
> Matthias
> 
> P.S.: I use a new save/restore mechanism to make kickerrc more robust,
> but can't clean up obsolete Entries. This is not ciritcal but polutes
> the config file.
> 

That's because of the default logic inherent in KConfig. Where would you
want to delete the entry from? Only the user's config file? Then the
entry might be picked up from the system-wide file. Or from both? Ooops,
you cannot write to the system-wide file. Exactly because of these
problems (and the ill-defined nature of deletions in default logic),
there is no deletion in KConfig.

However, if you really need this, you can use KSimpleConfig which uses
exactly _one_ config file and thus does not have these problems.

Kalle

-- 
Kalle Dalheimer     Contract programming for Unix
kalle@dalheimer.de  Technical writing
kalle@kde.org       Technical editing
kalle@oreilly.de    KDE Developer (MFCH)
mdalheimer@acm.org  It's open, it's source, it runs - must be KDE!
	
Lukashenko and the Pope - the last remaining dictators in Europe.

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

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