2013/8/7 Pier Luigi <[email protected]>: > 2013/8/7 Kevin Krammer <[email protected]>: >> On Wednesday, 2013-08-07, Jerome Leclanche wrote: >>> On Wed, Aug 7, 2013 at 7:00 AM, PCMan <[email protected]> wrote: >> >>> > 3. Should we use dconf-qt, which is done by Canonical instead, or >>> > using our own simple class mimicking QSettings? Personally I prefer >>> > our own solution and this can be included in liblxqt. >>> >>> Seeing as dconf support will ultimately end up in Qt (god knows when, >>> though), I recommend we use our own solution for the time being and >>> eventually switch to the native one. >> >> Not to forget that there is a third option: contribute an implementation to >> Qt >> upstream and then use oficial Qt API. > > I recently shared my work on the Qt development mailing list:
Hi, sounds great. > > http://lists.qt-project.org/pipermail/development/2013-July/012028.html > > Currently there's a class that reads a JSON schema, sort of what > GSettings does, and offer a simple value()/setValue() API much like > current QSettings. > This is currently done at runtime but I realize now that it's pretty > complicated to get it right, I see benefits moving the burden to > compile time much like KConfig does. > A cli program would read the schema and generate a nice C++ class, > maybe even QML code if asked to, with proper typing and default > values. ^^^ This sounds much like what google is doing with their protocol buffer library [1]. The protoc (protocoll compiler) generates c++ code from a schema that then offers functions to get/set/default/validate/serialize the data etc. While the purpose is different the technique sounds related. [1] http://code.google.com/p/protobuf/ -- Regards Samuel ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Lxde-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lxde-list
