#include <mw/aknsettingitemlist.h>
class CAknEnumeratedTextPopupSettingItem : public CAknEnumeratedTextSettingItem |
Public Member Functions | |
---|---|
CAknEnumeratedTextPopupSettingItem(TInt, TInt &) | |
~CAknEnumeratedTextPopupSettingItem() | |
virtual IMPORT_C void | EditItemL(TBool) |
IMPORT_C CArrayPtr< CAknEnumeratedText > * | EnumeratedTextArray() |
virtual IMPORT_C void | LoadL() |
IMPORT_C CArrayPtr< HBufC > * | PoppedUpTextArray() |
virtual IMPORT_C const TDesC & | SettingTextL() |
virtual IMPORT_C void | StoreL() |
Protected Member Functions | |
---|---|
virtual IMPORT_C void | CompleteConstructionL() |
virtual IMPORT_C void | CreateAndExecuteSettingPageL() |
virtual IMPORT_C CAknSettingPage * | CreateSettingPageL() |
IMPORT_C TInt | ExternalValue() |
IMPORT_C TInt | IndexFromValue(TInt) |
IMPORT_C TInt | InternalValue() |
IMPORT_C MAknQueryValue * | QueryValue() |
IMPORT_C void | SetExternalValue(TInt) |
IMPORT_C void | SetInternalValue(TInt) |
IMPORT_C void | SetSelectedIndex(TInt) |
Inherited Enumerations | |
---|---|
CAknSettingItem:TFlags | |
CAknSettingItem:TSettingItemProtection |
Setting item type for CAknEnumeratedItems.
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.
IMPORT_C void | CompleteConstructionL | ( | ) | [protected, virtual] |
Reimplemented from CAknEnumeratedTextSettingItem::CompleteConstructionL()
Method called by framework to complete the construction. Extra allocations of memory or extra resource reading can happen here.
IMPORT_C void | CreateAndExecuteSettingPageL | ( | ) | [protected, virtual] |
Framework method to create and execute setting page
IMPORT_C CAknSettingPage * | CreateSettingPageL | ( | ) | [protected, virtual] |
Framework method for constructing the launching setting page
Returns: a constructed CAknSettingPage object on the heap
IMPORT_C void | EditItemL | ( | TBool | aCalledFromMenu | ) | [virtual] |
Reimplemented from CAknSettingItem::EditItemL(TBool)
This launches the setting page for popup list setting page
Parameter | Description |
---|---|
aCalledFromMenu | - ignored in this class |
IMPORT_C CArrayPtr< CAknEnumeratedText > * | EnumeratedTextArray | ( | ) | const |
Reimplemented from CAknEnumeratedTextSettingItem::EnumeratedTextArray()const
Access to the enumerated text array. Texts here are used in the setting item list display.
Returns: a pointer to an array of HBufC*s
Reimplemented from CAknEnumeratedTextSettingItem::IndexFromValue(TInt)const
Returns the index in the enumerated item array, given the value of the enumeration
Parameter | Description |
---|---|
aInputValue | Value to look up; Returns -1 if value is not found |
Reimplemented from CAknEnumeratedTextSettingItem::PoppedUpTextArray()const
Access to the "popped up" array of texts. They may be defined differently from those in the enumerated text arry
Returns: a pointer to an array of HBufC*s
IMPORT_C MAknQueryValue * | QueryValue | ( | ) | const [protected] |
Return a reference to the MAknQueryValue that is constructed for the CAknPopupListSettingPage
Returns: MAknQueryValue
IMPORT_C void | SetExternalValue | ( | TInt | aNewValue | ) | [protected] |
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.
Parameter | Description |
---|---|
aNewValue | Value to be copied via the external reference. |
IMPORT_C void | SetInternalValue | ( | TInt | aNewValue | ) | [protected] |
Sets the internal value. The value of aNewValue is copied into the internal storage holding the internal value
IMPORT_C void | SetSelectedIndex | ( | TInt | aNewIndex | ) | [protected] |
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
IMPORT_C const TDesC & | SettingTextL | ( | ) | [virtual] |
Reimplemented from CAknSettingItem::SettingTextL()
IMPORT_C void | StoreL | ( | ) | [virtual] |
Reimplemented from CAknSettingItem::StoreL()
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.