Which directory we can use for storing temporay data or application specific data?
On windows OS I mostly use "application data" %appdata% for storing user specific settings and logs. What is it's alternative in symbian mobiles ?
Which directory we can use for storing temporay data or application specific data?
On windows OS I mostly use "application data" %appdata% for storing user specific settings and logs. What is it's alternative in symbian mobiles ?
Thanks,
Rahul Kulshreshtha
Please choose Notification type as "Instant Email Notification". It must be default.
Use QSettings for storing application specific settings and QString QDir::homePath () for logs.
thanks divanov
Thanks,
Rahul Kulshreshtha
Please choose Notification type as "Instant Email Notification". It must be default.
Also, for storing temporary data, check out http://doc.qt.nokia.com/4.7/qtemporaryfile.html (use QSettings for what you want to keep and this for what you don't need).
Note that the "default" directory when you enter a Qt app is the application's private directory. You can put files there and they're essentially inaccessible to anyone else.
There is no "temp" directory that I know of. Best to create a directory somewhere and clean it out each time you enter your code. [I'd forgotten about QTemporaryFile. I'm guessing that puts files into the default directory, but I don't know how you'd clean them out if, eg, the phone were turned off.]
For something like a log that you might want to access from outside the application, you should put it into a directory you create in /Data.
Last edited by danhicksbyron; 2010-10-08 at 16:37.