2011/6/14 Rajeesh K Nambiar <rajeeshknamb...@gmail.com>: > On Tue, Jun 14, 2011 at 2:40 PM, Christophe Fergeau <cferg...@gmail.com> > wrote: >> >> Don't you have a .ini file/.desktop file parser that could be reused? > > Yes, QSettings can parse INI files fine, but the trouble here is that > AccessProtocol is of the format "AccessProtocol=storage;ipod", where > as per INI format, anything after a semicolon ";" is a comment. So, we > get only "storage" as the access protocol. This is why we had to use > the QFile implementation.
Maybe KDE has a .desktop file parser that could be reused? .desktop files have entries like: Categories=GNOME;GTK;System;Utility;Archiving;Settings; Christophe _______________________________________________ devkit-devel mailing list devkit-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/devkit-devel