--===============2087007131== Content-Type: multipart/signed; boundary="nextPart3379510.MTOPnRNSei"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart3379510.MTOPnRNSei Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 30 December 2008, David Baron wrote: > I want to save/read configuration settings for the user (rather than glob= al > settings). > > The applet class provides two KConfigGroup functions: > config() and config( group) it also provides globalConfig, which allows you to store settings to be sha= red=20 between instances of the same widget. > Where do these store their data? Global? User? per-user, in their kde config directory. > The group name is best the applet name()? user's name? you don't need to worry about that, it's handled for you. every=20 applet/containment is guaranteed to have a unique area in the config file (= it=20 uses the containment/applet id to formulate that). the method that takes a group name is just a convenience method so that you= =20 don't need to do: KConfigGroup cg =3D config(); cg =3D KConfigGroup(&cg, "SomeGroup"); cg.writeEntry ("foo"); but rather just: config("SomeGroup").writeEntry("foo"); QSettings are not a good idea in this case as you won't get the administrat= ion=20 frills of KConfig and the user will not be able to ship their configuration= =20 with their layout. the idea behind the config system in Corona/Containment/Applet is that layo= uts=20 and their config all stay together in one nice, happy file. =3D) > BTW, my phoneapplet is on kde-apps.org is anyone wants to play with it. cool =3D) =2D-=20 Aaron J. Seigo humru othro a kohnu se GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43 KDE core developer sponsored by Qt Software --nextPart3379510.MTOPnRNSei Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAklaaUsACgkQ1rcusafx20P3dgCdE+WCVOThNxBckCMv/8v8z9NR ZHsAmgIqZ4/EDHITsDDGruGX9YoGYv4V =bW51 -----END PGP SIGNATURE----- --nextPart3379510.MTOPnRNSei-- --===============2087007131== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============2087007131==--