I am having trouble persisting the text value of a user defined entry in an Enumerated Text settings list. The S60 SDK example "AknExSettingList" shows how to get the desired UI functionality, but it does not demonstrate how to persist the text value of a user defined option entry.
Please note my problem is not with standard Enumerated Text settings lists - I can construct a settings list from a resource and persist the settings values. My problem is specifically with Enumerated Text settings lists that *allow user defined entries*.
If you think you can help, please run the AknExSettingList example on the emulator. Click the "Next" button 4 times to get to the "Enum Text in value field" screen - this screen allows the user to select one of 10 pre-defined options ("aaaaaa", "bbbbbb", etc.); OR select an 11th option "Other..." which opens a text editor where the user can input a user defined option.
QUESTION: Where is the text of the user defined option stored? For example, if the user inputs "newoption", what variable/array/structure/etc holds the value "newoption"?
CLARIFICATION: I should probably ask "HOW can the text value of the user defined option be stored?"... because the AknExSettingList example does not appear to store the text value of the user defined option. It appears "iData->iLanguageCode" stores the *integer* value of the option (see code snippet below), but it does not appear a variable has been declared to store the *text* of the user defined option.
Any help is appreciated... I have exhausted all of my resources including the SDK docs, the Nokia Press "Developing S60 Apps" book, the discussion.epoc.c++ newsgroup, and this helpful discussion board.
Please help symbianyucca, et al!
Applicable AknExSettingList code snippets follow... thanks for your patience.
* from resource.rss
* define settings list that allows user defined entry