CAknExtQueryControl Class Reference

API published in: S60 1st Ed

Link against: avkon.lib

Capability Information

Required Capabilities

None


#include <aknquerycontrol.h>

Inherits CAknQueryControl.

Inherited by CAknExtMultilineQueryControl.


Detailed Description

The extended control for a query dialog.

ip and fixed point editors

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

See also:
CAknQueryDialog, CAknText

Public Member Functions

IMPORT_C  CAknExtQueryControl ()
  C++ Constructor.
virtual IMPORT_C  ~CAknExtQueryControl ()
  C++ Destructor.
IMPORT_C TInetAddr  GetInetAddress () const
  Get ip address from ip editor.
IMPORT_C void  SetInetAddress (TInetAddr &aInetAddress)
  Set ip address to editor.
IMPORT_C TInt  GetFixedPointNumber () const
  Get number from fixed point editor.
IMPORT_C void  SetFixedPointNumberL (const TInt *aNumber)
  Set number to fixed point editor.
IMPORT_C void  SetMinimumAndMaximum (const TInetAddr &aMinimumAddress, const TInetAddr &aMaximumAddress)
  Set minimum and maximum ip address to editor.
IMPORT_C void  SetMinimumAndMaximum (TInt aMinimumValue, TInt aMaximumValue)
  Set minimum and maximum fixed point number to editor.
virtual IMPORT_C CCoeControl *  ControlByLayoutOrNull (TInt aLayout)
  Get pointer to query controls control (editor).
TBool  EditorContentIsValidL () const
void  SetAndUseFlagsL (TBitFlags16 aFlags)
  This transfers CAknQueryControl's flags set by the dialog and then uses them.
void  PrepareForFocusLossL ()
  From CCoeControl Added to pass-through focus-loss warnings.
void  FocusChanged (TDrawNow aDrawNow)
  From CCoeControl Added to pass-through focus-loss warnings.
IMPORT_C void  HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType)
  From MCoeControlObserver.
TInt  CountComponentControls () const
  From CCoeControl Count number of controls contained in a compound control.
CCoeControl *  ComponentControl (TInt anIndex) const
  From CCoeControl Get the components of a compound control.
IMPORT_C void  HandlePointerEventL (const TPointerEvent &aPointerEvent)
  From CCoeControl.

Protected Member Functions

virtual void  ConstructQueryL (TResourceReader &aRes)
  After having read the query type from resource.
virtual void  LayoutEditor (const TLayoutMethod &aLayoutM)
  Layout the text editor.

Protected Attributes

CAknIpFieldEditor iIpEditor
CEikFixedPointEditor iFixedPointEditor

Data Structures

class   TIndex
  Manage indexes into LAF tables. More...

Constructor & Destructor Documentation

IMPORT_C CAknExtQueryControl::CAknExtQueryControl  ) 
 

C++ Constructor.

virtual IMPORT_C CAknExtQueryControl::~CAknExtQueryControl  )  [virtual]
 

C++ Destructor.


Member Function Documentation

CCoeControl* CAknExtQueryControl::ComponentControl TInt  anIndex  )  const
 

From CCoeControl Get the components of a compound control.

It returns one of the control's component controls, identified by aIndex.

Parameters:
anIndex  The index of the control to get.
Returns:
The component control with an index of aIndex.

Reimplemented from CAknQueryControl.

virtual void CAknExtQueryControl::ConstructQueryL TResourceReader &  aRes  )  [protected, virtual]
 

After having read the query type from resource.

This method is called in CostructFromResourceL()

See also:
ConstructFromResourceL()

Reimplemented from CAknQueryControl.

Reimplemented in CAknExtMultilineQueryControl.

virtual IMPORT_C CCoeControl* CAknExtQueryControl::ControlByLayoutOrNull TInt  aLayout  )  [virtual]
 

Get pointer to query controls control (editor).

Parameters:
aLayout  Controls layout (for one line queries use EDataLayout, ECodeLayout... and for multiline queries use EMultiDataFirstEdwin, EMultiDataSecondEdwin...)
Returns:
Pointer to control, NULL if not found

Reimplemented from CAknQueryControl.

Reimplemented in CAknExtMultilineQueryControl.

TInt CAknExtQueryControl::CountComponentControls  )  const
 

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

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

Reimplemented from CAknQueryControl.

TBool CAknExtQueryControl::EditorContentIsValidL  )  const
 
Returns:
true if the content of the editor is valid, false otherwise

Reimplemented from CAknQueryControl.

void CAknExtQueryControl::FocusChanged TDrawNow  aDrawNow  ) 
 

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.

Reimplemented from CAknQueryControl.

IMPORT_C TInt CAknExtQueryControl::GetFixedPointNumber  )  const
 

Get number from fixed point editor.

Returns:
Returns number from editor
IMPORT_C TInetAddr CAknExtQueryControl::GetInetAddress  )  const
 

Get ip address from ip editor.

Returns:
Returns data from editor
IMPORT_C void CAknExtQueryControl::HandleControlEventL CCoeControl *  aControl,
TCoeEvent  aEventType
 

From MCoeControlObserver.

Parameters:
aControl  Control who caused the event
aEventType  Type of the event

Reimplemented from CAknQueryControl.

IMPORT_C void CAknExtQueryControl::HandlePointerEventL const TPointerEvent &  aPointerEvent  ) 
 

From CCoeControl.

Handles pointer event.

Parameters:
aPointerEvent  Pointer event to be handled.

Reimplemented from CAknQueryControl.

Reimplemented in CAknExtMultilineQueryControl.

virtual void CAknExtQueryControl::LayoutEditor const TLayoutMethod aLayoutM  )  [protected, virtual]
 

Layout the text editor.

void CAknExtQueryControl::PrepareForFocusLossL  ) 
 

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.

Reimplemented from CAknQueryControl.

void CAknExtQueryControl::SetAndUseFlagsL TBitFlags16  aFlags  ) 
 

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.

Parameters:
flag  pattern to set and then act on.

Reimplemented from CAknQueryControl.

IMPORT_C void CAknExtQueryControl::SetFixedPointNumberL const TInt *  aNumber  ) 
 

Set number to fixed point editor.

Parameters:
aNumber  Number to editor
IMPORT_C void CAknExtQueryControl::SetInetAddress TInetAddr &  aInetAddress  ) 
 

Set ip address to editor.

Parameters:
aInetAddress  to editor.
IMPORT_C void CAknExtQueryControl::SetMinimumAndMaximum TInt  aMinimumValue,
TInt  aMaximumValue
 

Set minimum and maximum fixed point number to editor.

Parameters:
aMinimumValue  Minimum value
aMaximumValue  Maximum value

Reimplemented from CAknQueryControl.

IMPORT_C void CAknExtQueryControl::SetMinimumAndMaximum const TInetAddr &  aMinimumAddress,
const TInetAddr &  aMaximumAddress
 

Set minimum and maximum ip address to editor.

Parameters:
aMinimum  Minimum value
aMaximum  Maximum value

Field Documentation

CEikFixedPointEditor* CAknExtQueryControl::iFixedPointEditor [protected]
 
CAknIpFieldEditor* CAknExtQueryControl::iIpEditor [protected]
 

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top