CAknQueryControl Class Reference

#include <mw/aknQueryControl.h>

Link against: glxfullscreenview.lib

class CAknQueryControl : public CAknControl

Inherits from

Nested Classes and Structures

Protected Attributes
CAknBitmapAnimation *iAnimation
TInt iControl
CEikDateEditor *iDateEdwin
CAknButton *iDecreaseValueButton
TSize iDialogSize
CEikDurationEditor *iDurationEdwin
CAknEcsDetector *iEcsDetector
TAknQueryEcsObserver *iEcsObserver
CAknQueryEditIndicator *iEditIndicator
TAknLayoutRect iEditorFrame
TAknLayoutRect iEditorHorShadow
TAknLayoutRect iEditorVerShadow
CEikEdwin *iEdwin
TBitFlags16 iFlags
CEikFloatingPointEditor *iFloatingPointEditor
TBool iHasEditor
CEikImage *iImage
CAknButton *iIncreaseValueButton
TAknLayoutRect iLayoutMfne
CArrayFixFlat< TInt > *iLineWidths
CAknIntegerEdwin *iNumberEdwin
TInt iNumberOfEditorLines
CAknNumericSecretEditor *iPinEdwin
CAknTextControl *iPrompt
MAknQueryControlObserver *iQueryControlObserver
TInt iQueryType
CEikSecretEditor *iSecretEd
TUint16 iSpare_1
CEikTimeEditor *iTimeEdwin
Public Member Enumerations
enumanonymous { ETypeId }
enumTLayoutMethod { EConfQueryLayoutM, EDataQueryLayoutM, ECodeQueryLayoutM, ETimeQueryLayoutM, ..., ECombinedCodeDataQueryLayoutM }
enumTQueryControlFlagBitIndices { EEmergencyCallsEnabledByAPI, EEmergencyCallsDisabledByAPI, EPredictiveTextEntryPermitted, EEditorIndicatorOff, EEmergencyCallsCBASupport }
Public Member Functions
CAknQueryControl()
virtual ~CAknQueryControl()
voidAttemptEmergencyCallL()
IMPORT_C TIntCancelAnimation()
voidCancelQueryL()
IMPORT_C TBoolCheckNumber()
virtual CCoeControl *ComponentControl(TInt)
virtual IMPORT_C voidConstructFromResourceL(TResourceReader &)
virtual IMPORT_C CCoeControl *ControlByLayoutOrNull(TInt)
virtual TInt CountComponentControls()
TBool EditorContentIsValidL()
virtual voidFocusChanged(TDrawNow)
voidGetCaption(TDes &)
IMPORT_C TTimeIntervalSecondsGetDuration()
IMPORT_C TRealGetFloatingPointNumberL()
IMPORT_C voidGetLocation(TPosition &)
IMPORT_C TIntGetNumber()
IMPORT_C voidGetText(TDes &)
IMPORT_C TIntGetTextEntryLength()
IMPORT_C TIntGetTextLength()
IMPORT_C TTimeGetTime()
IMPORT_C voidHandleControlEventL(CCoeControl *, TCoeEvent)
IMPORT_C voidHandleEdwinEventL(CEikEdwin *, TEdwinEvent)
IMPORT_C TBoolHandleEdwinSizeEventL(CEikEdwin *, TEdwinSizeEvent, TSize)
virtual IMPORT_C voidHandlePointerEventL(const TPointerEvent &)
virtual IMPORT_C voidHandleResourceChange(TInt)
virtual IMPORT_C TSizeMinimumSize()
IMPORT_C TIntNbrOfEditorLines()
IMPORT_C TIntNbrOfPromptLines()
virtual IMPORT_C TKeyResponseOfferKeyEventL(const TKeyEvent &, TEventCode)
virtual voidPrepareForFocusLossL()
TInt QueryType()
virtual IMPORT_C voidReadPromptL(TResourceReader &)
voidSetAndUseFlagsL(TBitFlags16)
IMPORT_C voidSetAnimationL(TInt)
IMPORT_C voidSetDuration(TTimeIntervalSeconds &)
voidSetEcsCbaVisibleL(TBool)
IMPORT_C voidSetFloatingPointNumberL(const TReal *)
IMPORT_C voidSetImageL(CEikImage *)
IMPORT_C voidSetImageL(const TDesC &, TInt, TInt)
IMPORT_C voidSetLocation(const TPosition &)
IMPORT_C voidSetMinimumAndMaximum(const TTime &, const TTime &)
IMPORT_C voidSetMinimumAndMaximum(const TTimeIntervalSeconds &, const TTimeIntervalSeconds &)
IMPORT_C voidSetMinimumAndMaximum(TInt, TInt)
IMPORT_C voidSetMinimumAndMaximum(const TReal &, const TReal &)
IMPORT_C voidSetNumberL(TInt)
IMPORT_C voidSetNumberOfEditorLines(TInt)
virtual IMPORT_C voidSetPromptL(const TDesC &)
IMPORT_C voidSetQueryControlObserver(MAknQueryControlObserver *)
IMPORT_C voidSetTextEntryLength(TInt)
IMPORT_C voidSetTextL(const TDesC &)
IMPORT_C voidSetTime(TTime &)
IMPORT_C voidStartAnimationL()
virtual voidWindowLayout(TAknWindowLineLayout &)
Protected Member Functions
virtual voidConstructQueryL(TResourceReader &)
TRect DialogRect()
TSize DialogSize()
voidDialogSizeChanged()
virtual voidDraw(const TRect &)
voidDrawEditorFrame(CWindowGc &, TRect &)
voidLayout()
virtual voidLayoutEditor(const TLayoutMethod &)
virtual voidLayoutEditorFrame(const TLayoutMethod &)
virtual voidLayoutEditorIndicator(const TLayoutMethod &)
virtual voidLayoutImageOrAnim(const TLayoutMethod &)
virtual voidLayoutPrompt(const TLayoutMethod &)
virtual TRect LayoutRect()
CAknLocationEditor *&LocationEd()
CAknLocationEditor *LocationEd()
TTypeUid::Ptr MopSupplyObject(TTypeUid)
CAknQueryExtension *QueryExtension()
virtual voidSetLineWidthsL()
virtual voidSizeChanged()
Inherited Attributes
CCoeControl::iCoeEnv
CCoeControl::iContext
CCoeControl::iPosition
CCoeControl::iSize
Inherited Enumerations
CCoeControl:TZoomType
Inherited Functions
CAknControl::CAknControl()
CAknControl::~CAknControl()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CCoeControl::AccumulatedZoom()const
CCoeControl::ActivateGc()const
CCoeControl::ActivateL()
CCoeControl::BackedUpWindow()const
CCoeControl::Background()const
CCoeControl::CCoeControl()
CCoeControl::CCoeControl(CCoeEnv *)
CCoeControl::CCoeControl(const CCoeControl &)
CCoeControl::CCoeControlArray
CCoeControl::CapturesPointer()const
CCoeControl::ClaimPointerGrab(TBool)
CCoeControl::ClaimPointerGrab(TInt,TBool)
CCoeControl::CloseWindow()
CCoeControl::ComponentArrayExists()const
CCoeControl::Components()
CCoeControl::Components()const
CCoeControl::ControlContext()const
CCoeControl::ControlEnv()const
CCoeControl::CopyControlContextFrom(const CCoeControl *)
CCoeControl::CreateBackedUpWindowL(RWindowTreeNode &)
CCoeControl::CreateBackedUpWindowL(RWindowTreeNode &,TDisplayMode)
CCoeControl::CreateWindowL()
CCoeControl::CreateWindowL(RWindowGroup *)
CCoeControl::CreateWindowL(RWindowTreeNode &)
CCoeControl::CreateWindowL(const CCoeControl *)
CCoeControl::CustomGc()const
CCoeControl::DeactivateGc()const
CCoeControl::DrawBackground(const TRect &)const
CCoeControl::DrawDeferred()const
CCoeControl::DrawForeground(const TRect &)const
CCoeControl::DrawNow()const
CCoeControl::DrawNow(const TRect &)const
CCoeControl::DrawableWindow()const
CCoeControl::EnableDragEvents()
CCoeControl::EnableReportControlStateChange(TBool)
CCoeControl::EnableWindowTransparency()
CCoeControl::FindBackground()const
CCoeControl::FindFontProvider()const
CCoeControl::GetColor(TInt,TRgb &)const
CCoeControl::GetColorUseListL(CArrayFix< TCoeColorUse > &)const
CCoeControl::GetGc()const
CCoeControl::GetHelpContext(TCoeHelpContext &)const
CCoeControl::GrabbingComponent()const
CCoeControl::GrabbingComponent(TInt)const
CCoeControl::HandleComponentControlsResourceChange(TInt)
CCoeControl::HandleControlArrayEventL(CCoeControlArray::TEvent,const CCoeControlArray *,CCoeControl *,TInt)
CCoeControl::HandlePointerBufferReadyL()
CCoeControl::HandleRedrawEvent(const TRect &)const
CCoeControl::HasBorder()const
CCoeControl::HitTest()const
CCoeControl::IgnoreEventsUntilNextPointerUp()
CCoeControl::Index(const CCoeControl *)const
CCoeControl::InitComponentArrayL()
CCoeControl::InputCapabilities()const
CCoeControl::IsActivated()const
CCoeControl::IsBackedUp()const
CCoeControl::IsBeingDestroyed()const
CCoeControl::IsBlank()const
CCoeControl::IsDimmed()const
CCoeControl::IsFocused()const
CCoeControl::IsNonFocusing()const
CCoeControl::IsReadyToDraw()const
CCoeControl::IsVisible()const
CCoeControl::LayoutManager()const
CCoeControl::MakeVisible(TBool)
CCoeControl::MaximumWidth()const
CCoeControl::NotifyFontChange(const CCoeFontProvider *)
CCoeControl::Observer()const
CCoeControl::OverrideColorL(TInt,TRgb)
CCoeControl::OwnsWindow()const
CCoeControl::Parent()
CCoeControl::Parent()const
CCoeControl::Position()const
CCoeControl::PositionChanged()
CCoeControl::PositionRelativeToScreen()const
CCoeControl::PrepareForFocusGainL()
CCoeControl::ProcessPointerBufferReadyL()
CCoeControl::ProcessPointerEventL(const TPointerEvent &)
CCoeControl::Rect()const
CCoeControl::RecursivelyMergeInputCapabilities(TCoeInputCapabilities &)const
CCoeControl::RecursivelyMergedInputCapabilities()const
CCoeControl::RefetchPixelMappingL()
CCoeControl::RemoveFromParent()
CCoeControl::ReportEventL(MCoeControlObserver::TCoeEvent)
CCoeControl::RequestRelayout(const CCoeControl *)
CCoeControl::ResetGc()const
CCoeControl::ScreenFont(const TCoeFont &)const
CCoeControl::SetAdjacent(TInt)
CCoeControl::SetAllowStrayPointers()
CCoeControl::SetBackground(const MCoeControlBackground *)
CCoeControl::SetBlank()
CCoeControl::SetCanDrawOutsideRect()
CCoeControl::SetComponentsToInheritVisibility(TBool)
CCoeControl::SetContainerWindowL(RBackedUpWindow &)
CCoeControl::SetContainerWindowL(RWindow &)
CCoeControl::SetContainerWindowL(const CCoeControl &)
CCoeControl::SetControlContext(MCoeControlContext *)
CCoeControl::SetCornerAndSize(TGulAlignment,const TSize &)
CCoeControl::SetCustomGc(CWindowGc *)
CCoeControl::SetDimmed(TBool)
CCoeControl::SetExtent(const TPoint &,const TSize &)
CCoeControl::SetExtentToWholeScreen()
CCoeControl::SetFocus(TBool,TDrawNow)
CCoeControl::SetFocusing(TBool)
CCoeControl::SetFontProviderL(const CCoeFontProvider &)
CCoeControl::SetGc(CWindowGc *)const
CCoeControl::SetGloballyCapturing(TBool)
CCoeControl::SetHitTest(const MCoeControlHitTest *)
CCoeControl::SetLayoutManagerL(MCoeLayoutManager *)
CCoeControl::SetMaximumWidth(TInt)
CCoeControl::SetMopParent(MObjectProvider *)
CCoeControl::SetNeighbor(CCoeControl *)
CCoeControl::SetNonFocusing()
CCoeControl::SetObserver(MCoeControlObserver *)
CCoeControl::SetParent(CCoeControl *)
CCoeControl::SetPointerCapture(TBool)
CCoeControl::SetPosition(const TPoint &)
CCoeControl::SetRect(const TRect &)
CCoeControl::SetSize(const TSize &)
CCoeControl::SetSizeWithoutNotification(const TSize &)
CCoeControl::SetTextBaselineSpacing(TInt)
CCoeControl::SetUniqueHandle(TInt)
CCoeControl::SetZoomFactorL(TInt,TZoomType)
CCoeControl::Size()const
CCoeControl::SystemGc()const
CCoeControl::TextBaselineOffset(const TSize &)const
CCoeControl::TextDrawer(TInt)const
CCoeControl::UniqueHandle()const
CCoeControl::Window()const
CCoeControl::WriteInternalStateL(RWriteStream &)const
CCoeControl::WriteInternalStateNowL(RWriteStream &)const
CCoeControl::ZoomWithType()const
CCoeControl::operator=(const CCoeControl &)
CCoeControl::~CCoeControl()

Detailed Description

The control for a query dialog.

Manage layout of elements in a query dialog:- the text, the image and the editors.

See also: CAknQueryDialog, CAknText

Member Attribute Documentation

iAnimation

CAknBitmapAnimation *iAnimation[protected]

iControl

TInt iControl[protected]

Control id.

iDateEdwin

CEikDateEditor *iDateEdwin[protected]

Date editor.

iDecreaseValueButton

CAknButton *iDecreaseValueButton[protected]

iDialogSize

TSize iDialogSize[protected]

iDurationEdwin

CEikDurationEditor *iDurationEdwin[protected]

Duration editor.

iEcsDetector

CAknEcsDetector *iEcsDetector[protected]

iEcsObserver

TAknQueryEcsObserver *iEcsObserver[protected]

iEditIndicator

CAknQueryEditIndicator *iEditIndicator[protected]

Editor indicator icons.

iEditorFrame

TAknLayoutRect iEditorFrame[protected]

iEditorHorShadow

TAknLayoutRect iEditorHorShadow[protected]

iEditorVerShadow

TAknLayoutRect iEditorVerShadow[protected]

iEdwin

CEikEdwin *iEdwin[protected]

Edwin editor.

iFlags

TBitFlags16 iFlags[protected]

iFloatingPointEditor

CEikFloatingPointEditor *iFloatingPointEditor[protected]

iHasEditor

TBool iHasEditor[protected]

Maximum number of lines in the editor.

iImage

CEikImage *iImage[protected]

iIncreaseValueButton

CAknButton *iIncreaseValueButton[protected]

Widths of prompt lines (in pixels).

iLayoutMfne

TAknLayoutRect iLayoutMfne[protected]

iLineWidths

CArrayFixFlat< TInt > *iLineWidths[protected]

iNumberEdwin

CAknIntegerEdwin *iNumberEdwin[protected]

Integer editor.

iNumberOfEditorLines

TInt iNumberOfEditorLines[protected]

iPinEdwin

CAknNumericSecretEditor *iPinEdwin[protected]

Numeric secret editor.

iPrompt

CAknTextControl *iPrompt[protected]

Control for prompt text.

iQueryControlObserver

MAknQueryControlObserver *iQueryControlObserver[protected]

iQueryType

TInt iQueryType[protected]

iSecretEd

CEikSecretEditor *iSecretEd[protected]

Secret editor.

iSpare_1

TUint16 iSpare_1[protected]

iTimeEdwin

CEikTimeEditor *iTimeEdwin[protected]

Time editor.

Member Enumeration Documentation

Enum anonymous

EnumeratorValueDescription
ETypeId0x10283143

Enum TLayoutMethod

Layout for queries can be done using the following methods. Each method is specified in a LAF section

EnumeratorValueDescription
EConfQueryLayoutM
EDataQueryLayoutMLAYOUT according to LAF specs for conf queries.
ECodeQueryLayoutMLAYOUT according to LAF specs for data queries.
ETimeQueryLayoutMLAYOUT accoridng to LAF specs for code queries.
EDateQueryLayoutMLAYOUT according to LAF specs for time queries.
ECombinedCodeDataQueryLayoutMLAYOUT according to LAF specs for date queries.

LAYOUT according to LAF specs for combined code and data queries

Enum TQueryControlFlagBitIndices

Enumeration for indexing into control flags, which determine the control behaviour relative to a number of things, e.g. emergency control handling, displaying of edit indicator, enabling of predictive text, etc

EnumeratorValueDescription
EEmergencyCallsEnabledByAPI

Query supports emergency calls.

EEmergencyCallsDisabledByAPI

Query doesn't support emergency calls.

EPredictiveTextEntryPermitted

Predictive text input is allowed in the query.

EEditorIndicatorOff

Editor indicators are not shown in the query.

EEmergencyCallsCBASupport

Additional support to ECS for CBA label change. Must be enabled for touch full screen query for the ECS to function properly.

Constructor & Destructor Documentation

CAknQueryControl ( )

IMPORT_CCAknQueryControl()

C++ Constructor.

~CAknQueryControl ( )

IMPORT_C~CAknQueryControl()[virtual]

C++ Destructor.

Member Function Documentation

AttemptEmergencyCallL ( )

voidAttemptEmergencyCallL()

Attempts to make an emergency call if a valid emergency number has been entered to the query.

CancelAnimation ( )

IMPORT_C TIntCancelAnimation()

stops animation if one present

Returns: error code

CancelQueryL ( )

voidCancelQueryL()

This cancels the query. Used when the query control has to get abandon the query for some reason

CheckNumber ( )

IMPORT_C TBoolCheckNumber()

Checks if the given number in the editor is within the maximum and minimum values.

ComponentControl ( TInt )

CCoeControl *ComponentControl(TIntanIndex)const [virtual]

From CCoeControl Get the components of a compound control. It returns one of the control's component controls, identified by aIndex.

ParameterDescription
anIndexThe index of the control to get.

Returns: The component control with an index of aIndex.

ConstructFromResourceL ( TResourceReader & )

IMPORT_C voidConstructFromResourceL(TResourceReader &aRes)[virtual]

Second phase constructor: loads contents of array from resources.

ConstructQueryL ( TResourceReader & )

voidConstructQueryL(TResourceReader &aRes)[protected, virtual]

After having read the query type from resource. This method is called in CostructFromResourceL()

See also: ConstructFromResourceL()

ControlByLayoutOrNull ( TInt )

IMPORT_C CCoeControl *ControlByLayoutOrNull(TIntaLayout)[virtual]

Get pointer to query controls control (editor)

ParameterDescription
aLayoutControls layout (for one line queries use EDataLayout, ECodeLayout... and for multiline queries use EMultiDataFirstEdwin, EMultiDataSecondEdwin...)

Returns: Pointer to control, NULL if not found

CountComponentControls ( )

TInt CountComponentControls()const [virtual]

From CCoeControl Count number of controls contained in a compound control.

Returns: The number of component controls contained by this control.

DialogRect ( )

TRect DialogRect()const [protected]

Return the rect that is used by the dialog for layout This can be determined using LAF values and is equal to TPoint(0,0) plus the control size plus the margins

DialogSize ( )

TSize DialogSize()const [protected]

Return the size of the dialog. This equals to the control size plus the margins.

DialogSizeChanged ( )

voidDialogSizeChanged()[protected]

Calculates the size of the dialog. This can be determined using LAF values and is equal to the control size plus the margins.

Draw ( const TRect & )

voidDraw(const TRect &aRect)const [protected, virtual]

From CCoeControl Draw a control.

ParameterDescription
aRectThe region of the control to be redrawn.

DrawEditorFrame ( CWindowGc &, TRect & )

voidDrawEditorFrame(CWindowGc &aGc,
TRect &aRect
)const [protected]

Draw editor frame and shadows

EditorContentIsValidL ( )

TBool EditorContentIsValidL()const

Returns: true if the content of the editor is valid, false otherwise

FocusChanged ( TDrawNow )

voidFocusChanged(TDrawNowaDrawNow)[virtual]

From CCoeControl Added to pass-through focus-loss warnings. if not ready, this will leave.

Returns: Indicates whether or not the key event was used by this control.

GetCaption ( TDes & )

voidGetCaption(TDes &aCaption)const

Return prompt needed by FEP to query dialog

GetDuration ( )

IMPORT_C TTimeIntervalSecondsGetDuration()const

Get duration from duration editor

Returns: Return duration from editor.

GetFloatingPointNumberL ( )

IMPORT_C TRealGetFloatingPointNumberL()const

Get number from floating point editor.

Returns: Returns number from editor

GetLocation ( TPosition & )

IMPORT_C voidGetLocation(TPosition &aLocation)const

Get location from location editor

Modifies aLocation in such way that either longitude or latitude will change.

GetNumber ( )

IMPORT_C TIntGetNumber()const

Get number from number editor.

Returns: Returns number from editor

GetText ( TDes & )

IMPORT_C voidGetText(TDes &aDes)const

Get text from text, secret text, numeric secret text snd phonenumber editor.

ParameterDescription
aDesAddress of variable where text returned.

GetTextEntryLength ( )

IMPORT_C TIntGetTextEntryLength()const

Return the max length of the text in the text editor

Returns: max text length

GetTextLength ( )

IMPORT_C TIntGetTextLength()const

Get text length from editor.

Returns: Length of text from editor

GetTime ( )

IMPORT_C TTimeGetTime()const

Get time from date or time editors

Returns: Returns data from editor.

HandleControlEventL ( CCoeControl *, TCoeEvent )

IMPORT_C voidHandleControlEventL(CCoeControl *aControl,
TCoeEventaEventType
)
ParameterDescription
aControlControl who caused the event
aEventTypeType of the event

HandleEdwinEventL ( CEikEdwin *, TEdwinEvent )

IMPORT_C voidHandleEdwinEventL(CEikEdwin *aEdwin,
TEdwinEventaEventType
)
ParameterDescription
aEdwinEditor who sent the event
aEventTypeType of the event

HandleEdwinSizeEventL ( CEikEdwin *, TEdwinSizeEvent, TSize )

IMPORT_C TBoolHandleEdwinSizeEventL(CEikEdwin *aEdwin,
TEdwinSizeEventaEventType,
TSizeaDesirableEdwinSize
)
ParameterDescription
aEdwinEditor who's size has changed
aEventTypeType of the size event
aDesirableEdwinSizeDesirable size of the edwin

HandlePointerEventL ( const TPointerEvent & )

IMPORT_C voidHandlePointerEventL(const TPointerEvent &aPointerEvent)[virtual]

From CCoeControl. Handles pointer events

HandleResourceChange ( TInt )

IMPORT_C voidHandleResourceChange(TIntaType)[virtual]

Layout ( )

voidLayout()[protected]

Perform layout by calling SizeChanged

LayoutEditor ( const TLayoutMethod & )

voidLayoutEditor(const TLayoutMethod &aLayoutM)[protected, virtual]

Layout the text editor

LayoutEditorFrame ( const TLayoutMethod & )

voidLayoutEditorFrame(const TLayoutMethod &aLayoutM)[protected, virtual]

Layout the editor frame

LayoutEditorIndicator ( const TLayoutMethod & )

voidLayoutEditorIndicator(const TLayoutMethod &aLayoutM)[protected, virtual]

Layout the editor state indicator icons

LayoutImageOrAnim ( const TLayoutMethod & )

voidLayoutImageOrAnim(const TLayoutMethod &aLayoutM)[protected, virtual]

Layout the image or the animation

LayoutPrompt ( const TLayoutMethod & )

voidLayoutPrompt(const TLayoutMethod &aLayoutM)[protected, virtual]

Layout the query prompt

LayoutRect ( )

TRect LayoutRect()[protected, virtual]

Layout rectangle (shift up and left by margins)

LocationEd ( )

CAknLocationEditor *&LocationEd()[protected]

LocationEd ( )

CAknLocationEditor *LocationEd()const [protected]

MinimumSize ( )

IMPORT_C TSizeMinimumSize()[virtual]

Reimplemented from CCoeControl::MinimumSize()

From CCoeControl Give the control a mimimum size.

Returns: The minimum size required by the control.

MopSupplyObject ( TTypeUid )

TTypeUid::Ptr MopSupplyObject(TTypeUidaId)[protected]

NbrOfEditorLines ( )

IMPORT_C TIntNbrOfEditorLines()const

Return number of editor lines

Returns: Number lines in the editor

NbrOfPromptLines ( )

IMPORT_C TIntNbrOfPromptLines()const

Return number of prompt lines

Returns: Number of lines in the prompt

OfferKeyEventL ( const TKeyEvent &, TEventCode )

IMPORT_C TKeyResponseOfferKeyEventL(const TKeyEvent &aKeyEvent,
TEventCodeaType
)[virtual]

From CCoeControl Handle key events. When a key event occurs, CONE calls this function for each control on the control stack, until one of them returns EKeyWasConsumed to indicate that it processed the key event.

ParameterDescription
aKeyEventThe key event.
aTypeThe type of the event: EEventKey, EEventKeyUp or EEventKeyDown.

Returns: Indicates whether or not the key event was used by this control.

PrepareForFocusLossL ( )

voidPrepareForFocusLossL()[virtual]

From CCoeControl Added to pass-through focus-loss warnings. if not ready, this will leave.

Returns: Indicates whether or not the key event was used by this control.

QueryExtension ( )

CAknQueryExtension *QueryExtension()const [protected]

Get the extension object instance, if any exists.

QueryType ( )

TInt QueryType()const [inline]

At the moment the layout is a good indication of the query type (PIN,number,etc) The query dialog uses this information to determine query type in order to process key events in a way dependent on the query type. These key events can't be processes by the control directly because they involve actions only the dialog can perform

Returns: Layout indication

ReadPromptL ( TResourceReader & )

IMPORT_C voidReadPromptL(TResourceReader &aRes)[virtual]

Read prompt text from resource and call SetPrompt if there was text for prompt.

ParameterDescription
aResresource reader pointed to a query resource

SetAndUseFlagsL ( TBitFlags16 )

voidSetAndUseFlagsL(TBitFlags16aFlags)

This transfers CAknQueryControl's flags set by the dialog and then uses them. The method must be called after all the contained controls are constructed; Inside PreLayoutDynamicInitL is recommended.

SetAnimationL ( TInt )

IMPORT_C voidSetAnimationL(TIntaResource)

Sets and overrides other animation

SetDuration ( TTimeIntervalSeconds & )

IMPORT_C voidSetDuration(TTimeIntervalSeconds &aDuration)

Set duration to duration editor

ParameterDescription
aDurationDuration to editor

SetEcsCbaVisibleL ( TBool )

voidSetEcsCbaVisibleL(TBoolaVisible)

Sets the ECS CBA visibility in the query.

TBool aVisible ETrue if an ECS number is entered to the query, EFalse otherwise.

SetFloatingPointNumberL ( const TReal * )

IMPORT_C voidSetFloatingPointNumberL(const TReal *aNumber)

Set number to floating point editor

ParameterDescription
aNumberNumber to editor

SetImageL ( CEikImage * )

IMPORT_C voidSetImageL(CEikImage *aImage)

Sets and overrides other image or animation Takes ownership of aImage

SetImageL ( const TDesC &, TInt, TInt )

IMPORT_C voidSetImageL(const TDesC &aImageFile,
TIntaBmpId,
TIntaBmpMaskId
)

Sets and overrides other image or animation

SetLineWidthsL ( )

voidSetLineWidthsL()[protected, virtual]

Determine the line widths for the prompt, depends on layout

SetLocation ( const TPosition & )

IMPORT_C voidSetLocation(const TPosition &aLocation)

Set location to location editor

Modifies editor in such way that it'll start showing either longitude or latitude from the given location. It depends on resource file flags of the location editor which is used.

ParameterDescription
aLocationLocation to editor

SetMinimumAndMaximum ( const TTime &, const TTime & )

IMPORT_C voidSetMinimumAndMaximum(const TTime &aMinimum,
const TTime &aMaximum
)

Set minimum and maximum time or date to editor

ParameterDescription
aMinimumMinimum value
aMaximumMaximum value

SetMinimumAndMaximum ( const TTimeIntervalSeconds &, const TTimeIntervalSeconds & )

IMPORT_C voidSetMinimumAndMaximum(const TTimeIntervalSeconds &aMinimumDuration,
const TTimeIntervalSeconds &aMaximumDuration
)

Set minimum and maximum duration to editor

ParameterDescription
aMinimumDurationMinimum value
aMaximumDurationMaximum value

SetMinimumAndMaximum ( TInt, TInt )

IMPORT_C voidSetMinimumAndMaximum(TIntaMinimumValue,
TIntaMaximumValue
)

Set minimum and maximum number to editor

ParameterDescription
aMinimumValueMinimum value
aMaximumValueMaximum value

SetMinimumAndMaximum ( const TReal &, const TReal & )

IMPORT_C voidSetMinimumAndMaximum(const TReal &aMinimumValue,
const TReal &aMaximumValue
)

Set minimum and maximum number to floating point editor

ParameterDescription
aMinimumValueMinimum value
aMaximumValueMaximum value

SetNumberL ( TInt )

IMPORT_C voidSetNumberL(TIntaNumber)

Set number to number editor

ParameterDescription
aNumberNumber to editor

SetNumberOfEditorLines ( TInt )

IMPORT_C voidSetNumberOfEditorLines(TIntaNum)

Set the number of lines in the editor.

ParameterDescription
aNumNumber of lines in the editor

SetPromptL ( const TDesC & )

IMPORT_C voidSetPromptL(const TDesC &aDesC)[virtual]

Set prompt text for query. This call WrapToStringL.

ParameterDescription
aDesCText for prompt

SetQueryControlObserver ( MAknQueryControlObserver * )

IMPORT_C voidSetQueryControlObserver(MAknQueryControlObserver *aQueryControlObserver)

Set observer for query control.

ParameterDescription
aQueryControlObserverPointer to oberver class

SetTextEntryLength ( TInt )

IMPORT_C voidSetTextEntryLength(TIntaLength)

Set max length of text to text editor. This will override length from resource

ParameterDescription
aLengthMax length of text in editor

SetTextL ( const TDesC & )

IMPORT_C voidSetTextL(const TDesC &aDesC)

Set text to text and phonenumber editor.

ParameterDescription
aDesCText for editor

SetTime ( TTime & )

IMPORT_C voidSetTime(TTime &aTime)

Set date of time to editor

ParameterDescription
aTimeTime or date to editor.

SizeChanged ( )

voidSizeChanged()[protected, virtual]

Reimplemented from CCoeControl::SizeChanged()

From CCoeControl Respond to size changed. This function is called by CONE whenever SetExtentL(), SetSizeL(), SetRectL(), SetCornerAndSizeL(), or SetExtentToWholeScreenL() are called on the control.

StartAnimationL ( )

IMPORT_C voidStartAnimationL()

starts animation if one present

WindowLayout ( TAknWindowLineLayout & )

voidWindowLayout(TAknWindowLineLayout &aLayout)const [virtual]

Return window layout depending on Layout Window layout is done by the dialog