API published in: S60 1st Ed
Link against: avkon.lib
Required Capabilities
None
#include <aknqueryvaluedate.h>
Inherits CAknQueryValue.
Provides an interface to create a dialog containing a time query control, which will edit the value. Optionally Allows the value to be changed by selecting from a list of values.
Public Member Functions |
|
virtual IMPORT_C | ~CAknQueryValueDate () |
destructor |
|
IMPORT_C void | SetArrayL (const CAknQueryValueDateArray *aArray) |
Set the array. |
|
IMPORT_C void | SetQueryCaption (TInt aResourceId) |
Set the string used for the query caption to be a string other than the default. |
|
IMPORT_C TTime | Value () const |
Return the current value, which may have been set by the user. |
|
virtual IMPORT_C const MDesCArray * | MdcArray () const |
Returns the array as a descriptor array, ownership will be not passed. |
|
virtual IMPORT_C HBufC * | CurrentValueTextLC () |
This should be implemented so that it returns the current value as text. |
|
virtual IMPORT_C TInt | CurrentValueIndex () const |
Returns the index in the array of the current value. |
|
virtual IMPORT_C void | SetCurrentValueIndex (const TInt aIndex) |
Changes the current value to correspond to a value in the array. |
|
virtual IMPORT_C TBool | CreateEditorL () |
Creates an editor within context. |
|
Static Public Member Functions |
|
static IMPORT_C CAknQueryValueDate * | NewL () |
Two-phased constructor. |
|
static IMPORT_C CAknQueryValueDate * | NewLC () |
Two-phased constructor. |
|
Protected Member Functions |
|
CAknQueryValueDate () | |
void | ConstructL () |
2nd stage construction. |
|
void | CalculateCurrentIndex () |
Search for the current time in the list, and set the current index to be the found index. |
|
virtual void | AppendValueIfNewL () |
Method to add the current value to the QueryValueArray if it is new. |
|
destructor |
|
|
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" Reimplemented from CAknQueryValue. |
|
Search for the current time in the list, and set the current index to be the found index. If not found, set current index to 1 after the size of the array. |
|
2nd stage construction. |
|
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.
Implements MAknQueryValue. |
|
Returns the index in the array of the current value. If no matches, returns zero Implements MAknQueryValue. |
|
This should be implemented so that it returns the current value as text.
Implements MAknQueryValue. |
|
Returns the array as a descriptor array, ownership will be not passed. Implements MAknQueryValue. |
|
Two-phased constructor. |
|
Two-phased constructor. |
|
Set the array.
|
|
Changes the current value to correspond to a value in the array.
Implements MAknQueryValue. |
|
Set the string used for the query caption to be a string other than the default.
|
|
Return the current value, which may have been set by the user. |