[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Storing data
From:       Thomas =?iso-8859-1?q?L=FCbking?= <thomas.luebking () gmail ! com>
Date:       2011-06-23 21:51:35
Message-ID: 201106232351.35265.thomas.luebking () gmail ! com
[Download RAW message or body]

Am Thursday 23 June 2011 schrieb Steven Sroka:
> What is the best way for a KDE program to store data? Not passwords or
> anything sensitive, but data a user had typed into text fields.
> 
> Some sort of database. Something along the lines of KConfig or KConfig
> XT but for raw data not configuartion data for programs.
Depends on the type of data and what you want to do with it.

If you want to "dump memory", you need to serialize the data.
Have a look at QDataStream.

KSharedDataCache helps to to access information from several processes at the 
same time (like eg. the icons) and save memory.

Also you can write it to some xml or an kconfig/qsettings ini-a-like file with 
the advance of "less" access ;-)

Cheers,
Thomas
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic