Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor rahul.kulshreshtha's Avatar
    Join Date
    Apr 2010
    Location
    Surat, India
    Posts
    277
    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.

  2. #2
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Use QSettings for storing application specific settings and QString QDir::homePath () for logs.

  3. #3
    Regular Contributor rahul.kulshreshtha's Avatar
    Join Date
    Apr 2010
    Location
    Surat, India
    Posts
    277
    thanks divanov
    Thanks,
    Rahul Kulshreshtha
    Please choose Notification type as "Instant Email Notification". It must be default.

  4. #4
    Nokia Developer Moderator achipa's Avatar
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    327
    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).

  5. #5
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    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.

  6. #6
    Nokia Developer Moderator achipa's Avatar
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    327
    Quote Originally Posted by danhicksbyron View Post
    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.]
    Apparently the path for those is /Data/temp, the only way of you ending up with junk that needs to be taken care of manually is upon unexpected termination. In other cases - shutdown and exiting the app - QTempoeryFiles delete themselves.

Similar Threads

  1. Which one to use for storing data
    By mrjayaram in forum Mobile Java General
    Replies: 2
    Last Post: 2010-06-23, 10:10
  2. Correct location for storing application data?
    By zumbo_oxinia in forum Mobile Java General
    Replies: 13
    Last Post: 2009-11-06, 13:00
  3. Storing data in array
    By Shweta.Hegde in forum Symbian C++
    Replies: 5
    Last Post: 2009-03-10, 07:29
  4. which API is better for storing data
    By windalfred in forum Symbian C++
    Replies: 2
    Last Post: 2003-10-06, 07:53
  5. accessing specific data(information page -Engineering Option Data-)
    By mahd_98 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved