API published in: S60 1st Ed
Link against: avkon.lib
Required Capabilities
None
#include <aknsettingitemlist.h>
Inherits CAknEnumeratedTextSettingItem.
Inherited by CAknBinaryPopupSettingItem.
The main use case for this is for list of texts that are being manipulated in the client source code as a set of enumerations, while the texts, read from resource, are not strongly exposed to the client.
They are exposed to the user, and appear in two versions, if desired - the text shown in the setting list when not being edited, and the "popped-up" version of the texts.
Public Member Functions |
|
IMPORT_C | CAknEnumeratedTextPopupSettingItem (TInt aResourceId, TInt &aValue) |
Construct a list, storing in it a resource (to be read at 2nd stage construction) and a reference to na externally owned integer
- the value to be manipulated. |
|
IMPORT_C | ~CAknEnumeratedTextPopupSettingItem () |
Destructor. |
|
virtual IMPORT_C void | StoreL () |
This command externalizes the current setting. |
|
virtual IMPORT_C void | LoadL () |
virtual IMPORT_C const TDesC & | SettingTextL () |
virtual IMPORT_C void | EditItemL (TBool aCalledFromMenu) |
This launches the setting page for popup list setting page. |
|
IMPORT_C CArrayPtr< CAknEnumeratedText > * | EnumeratedTextArray () const |
Access to the enumerated text array. |
|
IMPORT_C CArrayPtr< HBufC > * | PoppedUpTextArray () const |
Access to the "popped up" array of texts. |
|
Protected Member Functions |
|
virtual IMPORT_C CAknSettingPage * | CreateSettingPageL () |
Framework method for constructing the launching setting page. |
|
virtual IMPORT_C void | CreateAndExecuteSettingPageL () |
Framework method to create and execute setting page. |
|
virtual IMPORT_C void | CompleteConstructionL () |
Method called by framework to complete the construction. |
|
IMPORT_C void | SetExternalValue (TInt aNewValue) |
Sets the value of the (unowned) external value using the reference to it held internally. |
|
IMPORT_C void | SetInternalValue (TInt aNewValue) |
Sets the internal value. |
|
IMPORT_C void | SetSelectedIndex (TInt aNewIndex) |
Set the item that is selected in the associated popup. |
|
IMPORT_C TInt | IndexFromValue (TInt aInputValue) const |
Returns the index in the enumerated item array, given the value of the enumeration. |
|
IMPORT_C TInt | ExternalValue () const |
Get the external value. |
|
IMPORT_C TInt | InternalValue () const |
Access the internal value. |
|
IMPORT_C MAknQueryValue * | QueryValue () const |
Return a reference to the MAknQueryValue that is constructed for the CAknPopupListSettingPage. |
|
Construct a list, storing in it a resource (to be read at 2nd stage construction) and a reference to na externally owned integer - the value to be manipulated. |
|
Destructor. |
|
Method called by framework to complete the construction. Extra allocations of memory or extra resource reading can happen here. Reimplemented from CAknEnumeratedTextSettingItem. Reimplemented in CAknBinaryPopupSettingItem. |
|
Framework method to create and execute setting page. |
|
Framework method for constructing the launching setting page.
|
|
This launches the setting page for popup list setting page.
Reimplemented from CAknSettingItem. Reimplemented in CAknBinaryPopupSettingItem. |
|
Access to the enumerated text array. Texts here are used in the setting item list display.
Reimplemented from CAknEnumeratedTextSettingItem. |
|
Get the external value.
|
|
Returns the index in the enumerated item array, given the value of the enumeration.
Reimplemented from CAknEnumeratedTextSettingItem. |
|
Access the internal value.
|
|
Reimplemented from CAknSettingItem. Reimplemented in CAknBinaryPopupSettingItem. |
|
Access to the "popped up" array of texts. They may be defined differently from those in the enumerated text arry
Reimplemented from CAknEnumeratedTextSettingItem. |
|
Return a reference to the MAknQueryValue that is constructed for the CAknPopupListSettingPage.
|
|
Sets the value of the (unowned) external value using the reference to it held internally. Note that this does not change the value of the reference itself. That is, aNewValue's address is not copied in to be used as the external reference.
|
|
Sets the internal value. The value of aNewValue is copied into the internal storage holding the internal value
|
|
Set the item that is selected in the associated popup. This should be done so as to keep the selected index consistent with the internal value
|
|
Reimplemented from CAknSettingItem. |
|
This command externalizes the current setting. The displayed (internal) copy is transferred to the external copy (the one referenced in the constructor). This must be called by the client if he wants this to happen. Note that StoreAllL() on the setting item list will call this for each setting item. Reimplemented from CAknSettingItem. Reimplemented in CAknBinaryPopupSettingItem. |