class CAknMessageQueryControl : public CAknControl |
Interface to control to implement message queries, to be contained within CAknMessageQueryDialog.
0.9
Public Member Functions | |
---|---|
CAknMessageQueryControl() | |
~CAknMessageQueryControl() | |
void | ActivateL() |
CCoeControl * | ComponentControl(TInt) |
IMPORT_C void | ConstructFromResourceL(TResourceReader &) |
TInt | CountComponentControls() |
TInt | CurrentLink() |
void | DehighlightLink() |
void | HandlePointerEventL(const TPointerEvent &) |
TInt | Lines() |
IMPORT_C TBool | LinkHighLighted() |
TBool | LinkTappedL(TInt) |
TSize | MinimumSize() |
TKeyResponse | OfferKeyEventL(const TKeyEvent &, TEventCode) |
TBool | ScrollBarGrabbing() |
void | SetListQLayout(TBool) |
IMPORT_C void | SetMessageTextL(TDesC *) |
void | SetMessageTextWithFormattingL(TDesC *, RArray< TDesC * > *, RArray< TInt > *, RArray< TMsgQueryTag > *) |
void | SizeChanged() |
Protected Member Functions | |
---|---|
IMPORT_C void | Draw(const TRect &) |
TRect | LayoutRect() |
Private Member Functions | |
---|---|
TBool | CanScrollPage(TBool) |
void | CreateEditorL() |
void | DoSizeChangedL() |
TBool | IsLinkVisible(TInt) |
void | LayoutEditorL() |
TBool | SetCurPosL(TInt) |
void | SetHighlightOnL(TBool) |
void | TruncateTextForListQLayout(TDes &) |
void | UpdatePageInfo() |
void | UpdateScrollIndicatorL() |
Inherited Enumerations | |
---|---|
CCoeControl:TZoomType |
Private Attributes | |
---|---|
TCharFormat | iCharFormat |
TCharFormatMask | iCharFormatMask |
TInt | iCurPos |
CEikRichTextEditor * | iEdwin |
CAknMessageQueryControlExtension * | iExtension |
TInt | iFirstVisibleLink |
TDesC * | iFullMessage |
TBool | iHighlightOn |
TInt | iLinesPerPage |
RArray< TDesC * > | iLinkTextArray |
RArray< TInt > | iLinkTextLocationArray |
TInt | iLinksCount |
TBool | iListQLayout |
TInt | iNumberOfLines |
TInt | iPositionsCount |
CEikScrollBarFrame * | iSBFrame |
TInt | iTopLine |
TInt | iVisibleLinksCount |
Inherited Attributes | |
---|---|
CCoeControl::iCoeEnv | |
CCoeControl::iContext | |
CCoeControl::iPosition | |
CCoeControl::iSize |
void | ActivateL | ( | ) | [virtual] |
From CCoeControl. Sets control as ready to be drawn. This function calls CCoeControl::ActivateL().
TBool | CanScrollPage | ( | TBool | aMoveDown | ) | [private] |
aMoveDown The scroll direction is down, if ETrue.
TBool aMoveDown |
CCoeControl * | ComponentControl | ( | TInt | anIndex | ) | const [virtual] |
From CCoeControl. Gets the specified component of a compound control. It returns one of the control's component controls, identified by anIndex. The component control with an index of anIndex.
TInt anIndex | The index of the control to get. |
IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aReader | ) | [virtual] |
Constructs controls from a resource file.
TResourceReader & aReader | The resource reader with which to access AVKON_MESSAGE_QUERY resource. |
TInt | CountComponentControls | ( | ) | const [virtual] |
From CCoeControl. Gets the number of controls contained in a compound control. The number of component controls contained by this control.
TInt | CurrentLink | ( | ) | const |
Fetches the current link chosen by the UI. 3.0
The index of the link or -1 if no link is chosen.
void | DehighlightLink | ( | ) |
Dehighlights the current link (if any is selected) by setting the current position to 0.
IMPORT_C void | Draw | ( | const TRect & | aRect | ) | const [protected, virtual] |
From CCoeControl. Draw a control. 2.0
const TRect & aRect | The region of the control to be redrawn. Not used. |
void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
From CCoeControl. Handles pointer events 3.0
const TPointerEvent & aPointerEvent |
TRect | LayoutRect | ( | ) | const [protected] |
Get a layout rectangle (shift up and left by margins). 2.6
The layout rectangle.
IMPORT_C TBool | LinkHighLighted | ( | ) | const |
Determines whether the link is highlighted. 2.8
ETrue if the link is highlighted.
TBool | LinkTappedL | ( | TInt | aPos | ) |
Determines if a link is tapped. ETrue if a link is tapped.
3.2
TInt aPos | Position of the character tapped. |
TSize | MinimumSize | ( | ) | [virtual] |
From CCoeControl. Sets the control's minimum required size. The minimum size required by the control.
TKeyResponse | OfferKeyEventL | ( | const TKeyEvent & | aKeyEvent, |
TEventCode | ||||
) | [virtual] |
Handles key events. Indicates whether or not the key event was used by this control.
const TKeyEvent & aKeyEvent | The key event. |
TEventCode |
TBool | ScrollBarGrabbing | ( | ) |
Check if scroll bar has received a pointer down event ETrue if scroll bar has received a pointer down event
TBool | SetCurPosL | ( | TInt | aCurPos | ) | [private] |
Changes the current position of the virtual cursor. Dehighlights the old link and highlights the new one, if any is selected. Checks for the valid range. EFalse if out of range, the position was not changed. ETrue if the position was changed successfully.
TInt aCurPos |
void | SetHighlightOnL | ( | TBool | aOn | ) | [private] |
Highlights or dehighlights the current link with proper font decoration.
TBool aOn |
void | SetListQLayout | ( | TBool | aListQLayout | ) |
When set, controls knows that it is in listquery dialog where max. lines is 3 and background is not drawn
TBool aListQLayout |
IMPORT_C void | SetMessageTextL | ( | TDesC * | aMessage | ) |
Sets the message text.
TDesC * aMessage | Message text. |
void | SetMessageTextWithFormattingL | ( | TDesC * | aMessage, |
RArray< TDesC * > * | aFormatTextArray, | |||
RArray< TInt > * | aFormatTextLocationArray, | |||
RArray< TMsgQueryTag > * | aFormatTypeArray | |||
) |
Formats message text with links and bold text. To be called from CAknMessageQueryDialog.
3.2
void | SizeChanged | ( | ) | [virtual] |
From CCoeControl. Responds to size changes to sets the size and position of the contents of this control.
void | TruncateTextForListQLayout | ( | TDes & | aMessage | ) | [private] |
Truncates the text that doesn't fit to the maximum lines number allowed for the list query layout (=3). The truncated text is expanded with the ellipsis character.
If the message query doesn't use the list query layout (iListQLayout == EFalse), this function returns immediately.
TDes & aMessage |
void | UpdatePageInfo | ( | ) | [private] |
visible links
cursor positions. The visible links are fetched from the links array. Number of cursor positions is calculated on the basis of visible links. Sets variables: iVisibleLinksCount, iFirstVisibleLink, iPositionsCount
TInt | iPositionsCount | [private] |
Cursor positions are places on the current page, where a virtual cursor can stop. The positions are considered visible links plus top and bottom of the page. Position indexes are zero-based. If there are no visible links, there is only one cursor position with index 0.