API published in: S60 1st Ed
Link against: avkon.lib
Required Capabilities
None
#include <aknqueryvalue.h>
Inherited by CAknQueryValue.
The Value can be changed by creating an editor dialog, which may be either a query or a setting page or optionally by choosing an entry from an array of values. The array can be accessed as a descriptor array, and the value can be accessed as a descriptor.
Public Types |
|
enum | TMode { EQueryMode, ESettingPageMode } |
Possible modes are query & setting page. More... |
|
Public Member Functions |
|
virtual | ~MAknQueryValue () |
virtual const MDesCArray * | MdcArray () const =0 |
Returns the array as a descriptor array, ownership will be not passed. |
|
virtual HBufC * | CurrentValueTextLC ()=0 |
This should be implemented so that it returns the current value as text. |
|
virtual TInt | CurrentValueIndex () const =0 |
Returns the index in the array of the current value. |
|
virtual void | SetCurrentValueIndex (const TInt aIndex)=0 |
Changes the current value to correspond to a value in the array. |
|
virtual TBool | CreateEditorL ()=0 |
Creates an editor within context. |
|
virtual void | SetQueryMode (MAknQueryValue::TMode aMode)=0 |
Set QueryMode to be whether query or settingpage -mode. |
|
virtual void | SetSettingPageResourceIds (TInt aSettingPageResourceId, TInt aSettingPageEditorResourceId)=0 |
Override the default resource IDs used if a Setting Page mode query is put up. |
|
virtual void | SetAutoAppend (TBool aAppend)=0 |
Set the QueryValue to append a new user value, if distinct from former value. |
|
Protected Types |
|
enum | TFlagBits { ESettingPageModeBitIndex = 0, EAutoAppendBitIndex } |
If EAutoAppendBitIndex is set, the query value auto appends new values. More... |
|
Protected Member Functions |
|
virtual void | AppendValueIfNewL ()=0 |
Method to add the current value to the QueryValueArray if it is new. |
|
If EAutoAppendBitIndex is set, the query value auto appends new values. |
|
Possible modes are query & setting page. |
|
|
Method to add the current value to the QueryValueArray if it is new. The new value is not owned by QueryValue object, but is "given away" Implemented in CAknQueryValue, CAknQueryValueDate, CAknQueryValueDuration, CAknQueryValueNumber, CAknQueryValuePhone, CAknQueryValueText, and CAknQueryValueTime. |
|
Creates an editor within context. If the value is edited and OK'd, the new value will be set as the current value. Otherwise the current value remains unchanged.
Implemented in CAknQueryValueDate, CAknQueryValueDuration, CAknQueryValueNumber, CAknQueryValuePhone, CAknQueryValueText, and CAknQueryValueTime. |
|
Returns the index in the array of the current value. If no matches, returns zero Implemented in CAknQueryValueDate, CAknQueryValueDuration, CAknQueryValueNumber, CAknQueryValuePhone, CAknQueryValueText, and CAknQueryValueTime. |
|
This should be implemented so that it returns the current value as text.
Implemented in CAknQueryValueDate, CAknQueryValueDuration, CAknQueryValueNumber, CAknQueryValuePhone, CAknQueryValueText, and CAknQueryValueTime. |
|
Returns the array as a descriptor array, ownership will be not passed. Implemented in CAknQueryValueDate, CAknQueryValueDuration, CAknQueryValueNumber, CAknQueryValuePhone, CAknQueryValueText, and CAknQueryValueTime. |
|
Set the QueryValue to append a new user value, if distinct from former value.
Implemented in CAknQueryValue. |
|
Changes the current value to correspond to a value in the array.
Implemented in CAknQueryValueDate, CAknQueryValueDuration, CAknQueryValueNumber, CAknQueryValuePhone, CAknQueryValueText, and CAknQueryValueTime. |
|
Set QueryMode to be whether query or settingpage -mode.
Implemented in CAknQueryValue. |
|
Override the default resource IDs used if a Setting Page mode query is put up. All Queryvalue implementations should have default resource set up. Hence this need not be called unless non-default resource is required. THE IMPLEMENTATION OF THESE RESOURCE OVERRIDES IS RESERVED FOR FUTURE VERSIONS OF SERIES 60. NOT CURRENTLY FUNCTIONAL. DO NOT USE. The rules for usage of these ids is the same as that for the CAknSettingPage constructors that take both these resources Editor Resource Setting Page Resource present present Both are used (but text & number overridden) = 0 present Editor resource is used via SP resource present = 0 default SP resource for the query type is used + this editor resource The type of the editor resource is fixed. If editor resource override is being used, then the resource must be for that control type of editor used in the CAknQueryValueXXXX class.
Implemented in CAknQueryValue. |