CAknMultilineQueryControl Class Reference

API published in: S60 1st Ed

Link against: avkon.lib

Capability Information

Required Capabilities

None


#include <aknmultilinequerycontrol.h>

Inherits CAknQueryControl.


Detailed Description

Multiline query control class.

Public Member Functions

IMPORT_C  CAknMultilineQueryControl ()
  C++ Constructor.
virtual IMPORT_C  ~CAknMultilineQueryControl ()
  C++ Destructor.
IMPORT_C void  SetNbrOfPromptLines (TInt aNbrOfPromptLinesFirstLine, TInt aNbrOfPromptLinesSecondLine)
  Set number of prompt lines to controls.
IMPORT_C TBool  IsFirst () const
  Return true if control is the first query in the dialog.
IMPORT_C TBool  IsSecond () const
  Return true if control is the second query in the dialog.
virtual IMPORT_C CCoeControl *  ControlByLayoutOrNull (TInt aLayout)
  Get pointer to query controls control (editor).
IMPORT_C TSize  MinimumSize ()
  From CCoeControl Give the control a mimimum size.
IMPORT_C void  HandlePointerEventL (const TPointerEvent &aPointerEvent)
  From CCoeControl.
IMPORT_C void  HandleResourceChange (TInt aType)

Protected Member Functions

void  SetLineWidthsL ()
  Set line widths for query prompt.
void  ConstructQueryL (TResourceReader &aRes)
  Read the query data from resource file.
TRect  LayoutRect ()
  Layout rectangle (shift up and left by margins).

Data Structures

class   TIndex
  LAF indexing. More...

Constructor & Destructor Documentation

IMPORT_C CAknMultilineQueryControl::CAknMultilineQueryControl  ) 
 

C++ Constructor.

virtual IMPORT_C CAknMultilineQueryControl::~CAknMultilineQueryControl  )  [virtual]
 

C++ Destructor.


Member Function Documentation

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

Read the query data from resource file.

Reimplemented from CAknQueryControl.

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

Get pointer to query controls control (editor).

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

Reimplemented from CAknQueryControl.

IMPORT_C void CAknMultilineQueryControl::HandlePointerEventL const TPointerEvent &  aPointerEvent  ) 
 

From CCoeControl.

Handles pointer events

Parameters:
aPointerEvent  The pointer event.

Reimplemented from CAknQueryControl.

IMPORT_C void CAknMultilineQueryControl::HandleResourceChange TInt  aType  ) 
 

Reimplemented from CAknQueryControl.

IMPORT_C TBool CAknMultilineQueryControl::IsFirst  )  const
 

Return true if control is the first query in the dialog.

IMPORT_C TBool CAknMultilineQueryControl::IsSecond  )  const
 

Return true if control is the second query in the dialog.

TRect CAknMultilineQueryControl::LayoutRect  )  [protected, virtual]
 

Layout rectangle (shift up and left by margins).

Reimplemented from CAknQueryControl.

IMPORT_C TSize CAknMultilineQueryControl::MinimumSize  ) 
 

From CCoeControl Give the control a mimimum size.

Returns:
The minimum size required by the control.

Reimplemented from CAknQueryControl.

void CAknMultilineQueryControl::SetLineWidthsL  )  [protected, virtual]
 

Set line widths for query prompt.

Reimplemented from CAknQueryControl.

IMPORT_C void CAknMultilineQueryControl::SetNbrOfPromptLines TInt  aNbrOfPromptLinesFirstLine,
TInt  aNbrOfPromptLinesSecondLine
 

Set number of prompt lines to controls.

This have to call before setting sizs of the components

Parameters:
aNbrOfPromptLinesFirstLine  Numbers of lines in first prompt text
aNbrOfPromptLinesSecondLine  Numbers of lines in Second prompt text

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

Copyright © Nokia Corporation 2001-2008
Back to top