From kde-devel Tue Jul 30 20:14:15 2002 From: Yannick Koehler Date: Tue, 30 Jul 2002 20:14:15 +0000 To: kde-devel Subject: Re: multiple entries inside KSimpleConfig X-MARC-Message: https://marc.info/?l=kde-devel&m=102806011524923 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On July 30, 2002 04:00 pm, Frerich Raabe wrote: > On Tuesday 30 July 2002 21:40, Yannick Koehler wrote: > > > I'd declare operator<< and operator>> for that class so that you can > > > easily store and retrieve objects from a QDataStream. Reading that fi= le > > > becomes a matter of > > > > > > while ( !stream.eof() ) > > > filter << stream; > > > > But doing this will not correctly handle case were the end-user edit the > > config file by end and do a mistake by incorrectely ordering the tags. > > I doubt the user's going to edit that file by hand because QDataStream > doesn't write plain text but a binary format. Arg.... not very friendly. Better with my system then...=20 =2D --=20 Yannick Koehler =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9RvOXfuKOJNEyL1URAlj6AJwItw+tAELnjgaa4CxDXyzrKKoyXQCfavg9 mCzEPjh0Hfc5JiBQ8TuZ1lg=3D =3DGQCA =2D----END PGP SIGNATURE----- >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<