Hello.
In my peer2mail client, I've got a "file" class and the objects of this class, appended to QList named fileList represents files that are currently downloaded. Everything's nice, but on the program startup I would like to load these files' data which were in the program when I closed it lately. So this data should be stored somewhere. It would be nice if the user couldn't modify it (I'm not talking about deletion, because I think it's impossible to prevent them from being removed, hm?). So these are my two questions:
1) Where should I store these data and what should I use to store them (which Qt classes for example)?
2) When should I save the data (it includes for example currently downloaded kilobytes of files so it's changing all the time) - create a QTimer and save it every 100 miliseconds? That's also not to accurate...
Thanks in advance .
Bookmarks