API published in: S60 1st Ed
Link against: avkon.lib
Required Capabilities
None
#include <aknquerydialog.h>
Inherits CAknDialog, and MAknQueryControlObserver.
Inherited by CAknDurationQueryDialog, CAknFixedPointQueryDialog, CAknFloatingPointQueryDialog, CAknIpAddressQueryDialog, CAknListQueryDialog, CAknMessageQueryDialog, CAknMultiLineDataQueryDialog, CAknNumberQueryDialog, CAknTextQueryDialog, and CAknTimeQueryDialog.
Use for confirmation queries
Public Types |
|
enum | TTone { ENoTone = 0, EConfirmationTone = EAvkonSIDConfirmationTone, EWarningTone = EAvkonSIDWarningTone, EErrorTone = EAvkonSIDErrorTone } |
Enumeration for tones. More... |
|
Public Member Functions |
|
virtual IMPORT_C | ~CAknQueryDialog () |
IMPORT_C | CAknQueryDialog (const TTone &aTone) |
Construction. |
|
virtual IMPORT_C CAknPopupHeadingPane * | QueryHeading () const |
Return pointer to query heading or NULL. |
|
IMPORT_C CAknPopupHeadingPane * | Heading () const |
Deprecated method to return pointer to query heading or NULL (use QueryHeading()). |
|
IMPORT_C void | SetPromptL (const TDesC &aPrompt) |
Set prompt text for query. |
|
IMPORT_C void | MakeLeftSoftkeyVisible (TBool aVisible) |
Set visibility of the left softkey. |
|
IMPORT_C void | SetEmergencyCallSupport (TBool aOnOff) |
Enable or disable emergency call support. |
|
IMPORT_C void | RemoveEditorIndicator () |
Removes the editor indicators for this dialog. |
|
IMPORT_C void | SetPredictiveTextInputPermitted (TBool aPermitted) |
This method can be used to set predictive text entry permitted. |
|
IMPORT_C TInt | RunLD () |
Runs the querydialog and returns the ID of the button used to dismiss it. |
|
IMPORT_C TInt | ExecuteLD (TInt aResourceId) |
Call PrepareLC and display dialog. |
|
IMPORT_C TInt | ExecuteLD (TInt aResourceId, const TDesC &aPrompt) |
Call PrepareLC and display dialog. |
|
IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
From CCoeControl . |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
Handles pointer events. |
|
IMPORT_C TBool | HandleQueryEditorSizeEventL (CAknQueryControl *aQueryControl, TQueryControlEvent aEventType) |
From MAknQueryControlObserver . |
|
IMPORT_C TBool | HandleQueryEditorStateEventL (CAknQueryControl *aQueryControl, TQueryControlEvent aEventType, TQueryValidationStatus aStatus) |
From MAknQueryControlObserver . |
|
virtual IMPORT_C TBool | NeedToDismissQueryL (const TKeyEvent &aKeyEvent) |
Called by OfferkeyEventL(), gives a change to dismiss the query even with keys different than Enter of Ok. |
|
virtual IMPORT_C void | DismissQueryL () |
Called by NeedToDismissQueryL(), gives a change to either accept or reject the query. |
|
IMPORT_C | CAknQueryDialog () |
IMPORT_C | CAknQueryDialog (TDesC &aPrompt, const TTone &aTone=ENoTone) |
IMPORT_C void | SetHeaderTextL (const TDesC &aHeader) |
IMPORT_C void | SetHeaderImageL (CEikImage *aImage) |
IMPORT_C TInt | RunDlgLD (TInt aResourceId) |
Static Public Member Functions |
|
static IMPORT_C CAknQueryDialog * | NewL (const TTone &aTone=ENoTone) |
Second phase construction required to align with multiline queries API In future might use MAknQueryData mixin in the base class, hence requiring second phase construction. |
|
static IMPORT_C CAknQueryDialog * | NewL (TDes &aText, const TTone &aTone=ENoTone) |
static IMPORT_C CAknQueryDialog * | NewL (TInt &aNumber, const TTone &aTone=ENoTone) |
static IMPORT_C CAknQueryDialog * | NewL (TTime &aTime, const TTone &aTone=ENoTone) |
static IMPORT_C CAknQueryDialog * | NewL (TTimeIntervalSeconds &aTime, const TTone &aTone=ENoTone) |
static IMPORT_C CAknQueryDialog * | NewL (TReal &aNumber, const TTone &aTone=ENoTone) |
static IMPORT_C CAknQueryDialog * | NewL (TInetAddr &aInetAddr, const TTone &aTone=ENoTone) |
static IMPORT_C CAknQueryDialog * | NewL (TPosition &aValue, const TTone &aTone=ENoTone) |
Not yet totally implemented! |
|
static IMPORT_C TInt | MaxTextLength (const CAknQueryControl *aControl, const TDes &aDataText, TInt aApiValue) |
Return the maximum possible length of the query text This is (in order of precedence, and assuming they are valid i.e. |
|
static IMPORT_C TInt | MaxTextLength (const CAknQueryControl *aControl, const TDes *aDataText, TInt aApiValue) |
Protected Member Functions |
|
IMPORT_C void | SetSizeAndPosition (const TSize &aSize) |
From CEikdialog . |
|
IMPORT_C void | PreLayoutDynInitL (void) |
From CEikdialog . |
|
IMPORT_C void | PostLayoutDynInitL () |
From CEikdialog . |
|
virtual IMPORT_C TBool | OkToExitL (TInt aButtonId) |
From CEikdialog . |
|
virtual IMPORT_C void | UpdateLeftSoftKeyL () |
If the query text is ok (retrieved form query control) then display the left soft key, otherwise hide it. |
|
virtual IMPORT_C void | DoSetPromptL () |
Set the prompt inside the query control. |
|
virtual IMPORT_C CAknQueryControl * | QueryControl () const |
Return pointer to query control or NULL. |
|
void | PlayTone () |
Plays tone. |
|
void | ReportUserActivity () const |
Resets system's inactivity timer. |
|
void | LayoutAndDraw () |
Recreates layout and redraws the dialog. |
|
TInt | GetLeftCBAShortKeyPress () |
Returns left CBA short key press. |
|
TInt | GetRightCBAShortKeyPress () |
Returns right CBA short key press. |
|
TBool | IsLeftSoftkeyVisible () |
Returns whether the left softkey is visible. |
|
IMPORT_C TPtrC | Prompt () const |
Prompt access for derived classes. |
|
TTone & | Tone () |
const TTone & | Tone () const |
TBitFlags16 & | Flags () |
const TBitFlags16 & | Flags () const |
CAknKeySoundSystem * | SoundSystem () const |
CCoeControl * | FindControlOnAnyPageWithControlType (TInt aControlType, TInt *aLineIndex=0, TInt *aPageIndex=0) const |
To be used to go through every control in the dialog, on every page, in Dialog-internal storage order, until a control with
that type is found. |
|
Protected Attributes |
|
TTone | iTone |
Tone which is played when the query is executed These will be made private, use protected methods. |
|
TDesC * | iPrompt |
Prompt text. |
|
TAny * | iSpare_2 |
Spare variable for further development. |
|
TBitFlags16 | iFlags |
Flags for emergency call support Need these at least to store the ECS state until the control exists. |
|
TInt | iSpare_1 |
Spare variable for further development. |
|
CAknKeySoundSystem * | iSoundSystem |
Sound system. |
|
Enumeration for tones.
The tone played before the dialog is shown. Application specific tones may be played by casting the application defined Sound
ID (SID), to |
|
|
Construction.
|
|
|
|
|
|
Called by NeedToDismissQueryL(), gives a change to either accept or reject the query. Default implementation is to accept the query if the Left soft key is displayed and reject it otherwise. Left softkey is only displayed if the query has valid data into it. |
|
Set the prompt inside the query control. If dialog is active redo layout and draw. Reimplemented in CAknMultiLineDataQueryDialog, CAknIpAddressQueryDialog, CAknFixedPointQueryDialog, and CAknMultiLineIpQueryDialog. |
|
Call PrepareLC and display dialog.
|
|
Call PrepareLC and display dialog. Identical to version in CEikDialog but need to override this because of version with prompt, compiler will complain if this is not implemented in derived class as well
Reimplemented from CAknDialog. |
|
To be used to go through every control in the dialog, on every page, in Dialog-internal storage order, until a control with that type is found. If such a control is not found, a null pointer will be returned.
|
|
|
|
|
|
Returns left CBA short key press.
|
|
Returns right CBA short key press.
|
|
Handles pointer events. Reimplemented from CAknDialog. Reimplemented in CAknListQueryDialog, CAknMessageQueryDialog, CAknTextQueryDialog, CAknNumberQueryDialog, CAknTimeQueryDialog, CAknDurationQueryDialog, CAknFloatingPointQueryDialog, and CAknMultiLineDataQueryDialog. |
|
From Gets called when editor sends size event.
Reimplemented in CAknTextQueryDialog. |
|
From Gets called when editor sends state event
|
|
Deprecated method to return pointer to query heading or NULL (use QueryHeading()).
|
|
Returns whether the left softkey is visible.
|
|
Recreates layout and redraws the dialog. |
|
Set visibility of the left softkey. Softkey is hidden when data in the query is not acceptable.
|
|
|
|
Return the maximum possible length of the query text This is (in order of precedence, and assuming they are valid i.e. less than or equal to the length of the descriptor passed to return the value) dependent on: 1) aApiValue 2) Resource set value held in aControl 3) The MaxLength of the descriptor
|
|
Called by OfferkeyEventL(), gives a change to dismiss the query even with keys different than Enter of Ok. Reimplemented in CAknMultiLineDataQueryDialog, CAknIpAddressQueryDialog, CAknFixedPointQueryDialog, and CAknMultiLineIpQueryDialog. |
|
Not yet totally implemented!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Second phase construction required to align with multiline queries API In future might use MAknQueryData mixin in the base class, hence requiring second phase construction.
|
|
From Handle key events. When a key event occurs, until one of them returns EKeyWasConsumed to indicate that it processed the key event. CONE calls this function for each control on the control stack,
Reimplemented from CAknDialog. Reimplemented in CAknListQueryDialog, and CAknMessageQueryDialog. |
|
From This function is called by the EIKON framework if the user activates a button in the button panel. It is not called if the Cancel button is activated, unless the EEikDialogFlagNotifyEsc flag is set.
Reimplemented from CAknDialog. Reimplemented in CAknListQueryDialog, CAknTextQueryDialog, CAknNumberQueryDialog, CAknTimeQueryDialog, CAknDurationQueryDialog, CAknFloatingPointQueryDialog, CAknMultiLineDataQueryDialog, CAknIpAddressQueryDialog, CAknFixedPointQueryDialog, and CAknMultiLineIpQueryDialog. |
|
Plays tone. |
|
From This function is called by the EIKON dialog framework just before the dialog is activated, after it has called PreLayoutDynInitL() and the dialog has been sized. Reimplemented from CEikDialog. Reimplemented in CAknListQueryDialog, CAknMessageQueryDialog, CAknIpAddressQueryDialog, and CAknFixedPointQueryDialog. |
|
From This function is called by the EIKON dialog framework just before the dialog is activated, but before it is sized, and before PostLayoutDynInitL() is called. Reimplemented from CEikDialog. Reimplemented in CAknListQueryDialog, CAknMessageQueryDialog, CAknTextQueryDialog, CAknNumberQueryDialog, CAknTimeQueryDialog, CAknDurationQueryDialog, CAknFloatingPointQueryDialog, CAknMultiLineDataQueryDialog, CAknIpAddressQueryDialog, CAknFixedPointQueryDialog, and CAknMultiLineIpQueryDialog. |
|
Prompt access for derived classes. |
|
Return pointer to query control or NULL. Reimplemented in CAknMultiLineDataQueryDialog, CAknIpAddressQueryDialog, CAknFixedPointQueryDialog, and CAknMultiLineIpQueryDialog. |
|
Return pointer to query heading or NULL. Reimplemented in CAknListQueryDialog, and CAknMultiLineDataQueryDialog. |
|
Removes the editor indicators for this dialog. Used to ensure this dialog does not own any editor indicators. before opening another dialog which outlasts this one. |
|
Resets system's inactivity timer. |
|
|
|
Runs the querydialog and returns the ID of the button used to dismiss it. The dialog is destroyed on exit. Reimplemented from CAknDialog. |
|
Enable or disable emergency call support. This method is only valid in numeric queries (secret or normal). Default is Off for both.
|
|
|
|
Reimplemented in CAknMessageQueryDialog. |
|
This method can be used to set predictive text entry permitted. The default Query behaviour is to supress predictive entry (over-riding editor resource flags that may indicate otherwise. This may be called at any time prior to activation of the query.
|
|
Set prompt text for query. This this will override text given in constructor.
|
|
From EIKON provides an implementation of this function, which positions the dialog in the centre of the screen. However, it can be overridden by derived classes.
Reimplemented from CEikDialog. Reimplemented in CAknListQueryDialog, CAknMessageQueryDialog, CAknIpAddressQueryDialog, and CAknFixedPointQueryDialog. |
|
|
|
|
|
|
|
If the query text is ok (retrieved form query control) then display the left soft key, otherwise hide it. Reimplemented in CAknMultiLineDataQueryDialog, CAknIpAddressQueryDialog, CAknFixedPointQueryDialog, and CAknMultiLineIpQueryDialog. |
|
Flags for emergency call support Need these at least to store the ECS state until the control exists. |
|
Prompt text. |
|
Sound system. |
|
Spare variable for further development. |
|
Spare variable for further development. |
|
Tone which is played when the query is executed These will be made private, use protected methods. |