c++symbians60carbidepersistent-storage

Symbian C++ - Persistent storage of a single variable


I wish to store a single variable in my application that will be saved between runs. This will be a version number that will be used to trigger an update option and so will change only rarely.

Does anyone have suggestions on the best way of implementing this? Considering it's such a simple requirement I am interested in the simplest solution.

Thanks!


Solution

  • Normally, that sort of information will be held in a constant (not a variable) in the binary, and the binary will contact an external site to find out whether there is a more recent version of the software. When it downloads the new, the newly downloaded file will have a new constant embedded in it.

    Alternatively, you could keep the information in some sort of file in the file system. I'm not familiar with the Symbian environment, but something similar most likely exists.