Files, config, and welcome (again)

Michał 'rysiek' Woźniak rysiek at fwioo.pl
Sun Apr 15 00:03:39 UTC 2012


Hello,

I have already written to this list and some of you might know me from 
other channels (like IRC or StatusNet). Either way - hi and hello!

Also, I hope I am writing in the right place. If not, do tell and 
point me in the right direction.

Now, to the point!

I am writing a Todo/tasks plasmoid, inspired by TaskTimer. Here's my 
braindump about it:
http://rys.io/en/71

One thing I am missing at this moment, and am missing dearly, is a way 
to save the state of the tasks (text, elapsed time, etc) so that it 
gets restored upon plasmoid "restart" (not sure if this is the right 
word). This can be easily done with a simple JSON text file, or even 
an INI file for that matter.

So basically what I need is either a config store or a way to 
read/write pure text files.

I tried using the KConfig XT, but surprisingly the values did not get 
saved (yes, main.xml file is created and contains the right stuff); 
this happened even with the kdeexamples configuration example.

Besides, I am wondering if the rigid structure of KConfig XT files is 
a good bet here; I am adding/removing todo items in the plasmoid, and 
as far as I understand config entries are defined beforehand - so I 
would have to store key-value pairs (in JSON?) within the config XML 
file. Doesn't seem "right".

So, three questions:
 - am I missing something about the KConfig XT approach?
 - maybe there is a better config API for QML/JS plasmoids?
 - is there a way to read/write files from a QML/JS plasmoid?

I am running KDE SC 4.7.4 in Debian Sid.

-- 
Pozdrawiam
Michał "rysiek" Woźniak

Fundacja Wolnego i Otwartego Oprogramowania
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120415/5ff594b3/attachment-0001.sig>


More information about the Plasma-devel mailing list