[patch] KPluginInfo's use of KConfig

Andreas Pakulat apaku at gmx.de
Wed Jun 20 11:04:13 BST 2007


On 20.06.07 10:57:11, Matthias Kretz wrote:
> Hi,
> 
> while looking into KSettings::Dialog and friends in libkutils I stumbled over 
> KPluginInfo's use of KConfig in it's API. Now that KConfigGroup has grown up 
> I'd like to use KConfigGroup exclusively in the KPluginInfo API.
> 
> Also, since KConfigGroup is a value based class now (it was explicitly shared 
> already) I'd like to add a default ctor + isValid() function so that those 
> can be used like a null pointer or that it can be used with QList and such at 
> all. While at it I replaced the d-pointer with a QExplicitlySharedDataPointer 
> so that copying and deleting the object is safe from any thread.

Do I understand correctly that I can then create a KConfigGroup and use
that in multiple threads simultanously? That would be awesome because it
would solve our config-access-problem in KDevelop :)

Andreas

-- 
You are dishonest, but never to the point of hurting a friend.




More information about the kde-core-devel mailing list