ISHELL_SetPrefs & Application Specification | developer.brewmp.com ISHELL_SetPrefs & Application Specification | developer.brewmp.com

Developer

ISHELL_SetPrefs & Application Specification

Hello,

can anybody tell me what shall I put under the "Data storage functionality" in the Application Specification in case my application uses ISHELL_SetPrefs to store hiscores/etc. It seems to me that the Application Specification is more concentrated on files (I do not see in the template a note about using preferences).

Thanks,
srejbi

hi,
You should mention that in "Data storage Functionality" . Because it is storing the data in prefs.dat file which is in File System.

hi,
You should mention that in "Data storage Functionality" . Because it is storing the data in prefs.dat file which is in File System.

thanks BraveBoy,
i just need some additional info/confirmations concerning data storage in the preferences file; :o
the Application Specification Template says:
Quote:When saving data, indicate the maximum number of files the application creates. Also indicate the maximum amount of file space occupied by the application. This information should take into account files created/residing in the shared directory.
If performing data storage in either the shared or ringer directory, disclose the filenames and file format types that will be read or to which the data will be written.
As my app uses ISHELL_SetPrefs and ISHELL_GetPrefs, so writes/reads prefs.dat, according to the quoted text above, I should indicate in the AppSpec the following:
- max. files created: 1 (according to http://brewforums.qualcomm.com/showpost.php?p=23314&postcount=5, last paragraph, prefs.dat is created upon first time needed, potentially by any application using ISHELL_SetPrefs)
- maximum amount of space: .MOD size + .BAR size + .MIF size + .SIG size + sizeof(structure stored in prefs.dat)
- file format: ?? Qualcomm proprietary, binary
Are the above correct?
Additional question: do I need to turn on/indicate "Write Access To Shard Directory" privilege level to use prefs.dat? (The application runs fine without any privilege levels, I find no indication for this in the API Reference Guide, but in fact the ISHELL_SetPrefs is writing into this file...)
Sorry to bug with these questions, it's the first time I will try with TBT and I would like to make sure not to fail it... Thanks!
srejbi

thanks BraveBoy,
i just need some additional info/confirmations concerning data storage in the preferences file; :o
the Application Specification Template says:
Quote:When saving data, indicate the maximum number of files the application creates. Also indicate the maximum amount of file space occupied by the application. This information should take into account files created/residing in the shared directory.
If performing data storage in either the shared or ringer directory, disclose the filenames and file format types that will be read or to which the data will be written.
As my app uses ISHELL_SetPrefs and ISHELL_GetPrefs, so writes/reads prefs.dat, according to the quoted text above, I should indicate in the AppSpec the following:
- max. files created: 1 (according to http://brewforums.qualcomm.com/showpost.php?p=23314&postcount=5, last paragraph, prefs.dat is created upon first time needed, potentially by any application using ISHELL_SetPrefs)
- maximum amount of space: .MOD size + .BAR size + .MIF size + .SIG size + sizeof(structure stored in prefs.dat)
- file format: ?? Qualcomm proprietary, binary
Are the above correct?
Additional question: do I need to turn on/indicate "Write Access To Shard Directory" privilege level to use prefs.dat? (The application runs fine without any privilege levels, I find no indication for this in the API Reference Guide, but in fact the ISHELL_SetPrefs is writing into this file...)
Sorry to bug with these questions, it's the first time I will try with TBT and I would like to make sure not to fail it... Thanks!
srejbi

No, you don't need to check the shared directory access priv box. Also, you don't need to indicate that your application is creating a file. While it's true that the prefs.dat file will be created if it doesn't exist, MobileShop itself uses this file...so it's going to be pre-existing on any device.

No, you don't need to check the shared directory access priv box. Also, you don't need to indicate that your application is creating a file. While it's true that the prefs.dat file will be created if it doesn't exist, MobileShop itself uses this file...so it's going to be pre-existing on any device.

Thanks for the quick reply Max! :D
-srejbi

Thanks for the quick reply Max! :D
-srejbi

HI,
So just to totally confirm,
If you are using Application preferences you do not need to set any privaledges for doing so?
Also,
I am using the IWeb Interface, Is the only privalidge I need to set for this:
Web Access
Thanks
Adrian

HI,
So just to totally confirm,
If you are using Application preferences you do not need to set any privaledges for doing so?
Also,
I am using the IWeb Interface, Is the only privalidge I need to set for this:
Web Access
Thanks
Adrian