class CAknListQueryDialog : public CAknQueryDialog |
List query class.
This class is be used for list or multiselection list queries.
Public Member Functions | |
---|---|
CAknListQueryDialog(TInt *) | |
CAknListQueryDialog(CListBoxView::CSelectionIndexArray *) | |
~CAknListQueryDialog() | |
IMPORT_C void | ActivateL() |
IMPORT_C void | HandleListBoxEventL(CEikListBox *, TListBoxEvent) |
IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
IMPORT_C void | HandleResourceChange(TInt) |
IMPORT_C CEikListBox * | ListBox() |
IMPORT_C CAknListQueryControl * | ListControl() |
IMPORT_C CAknMessageQueryControl * | MessageBox() |
IMPORT_C TKeyResponse | OfferKeyEventL(const TKeyEvent &, TEventCode) |
IMPORT_C void | PublishDialogL(TInt, TUid, CArrayFixFlat< TInt > *) |
IMPORT_C CAknPopupHeadingPane * | QueryHeading() |
IMPORT_C void | SetIconArrayL(CArrayPtr< CGulIcon > *) |
IMPORT_C void | SetItemTextArray(MDesCArray *) |
IMPORT_C void | SetMediatorObserver(MAknDialogMediatorObserver *) |
IMPORT_C void | SetOwnershipType(TListBoxModelItemArrayOwnership) |
IMPORT_C void | SetSizeAndPosition(const TSize &) |
IMPORT_C void | SetTone(TInt) |
Protected Member Functions | |
---|---|
IMPORT_C TInt | BorderStyle() |
IMPORT_C void | CloseState() |
IMPORT_C CAknSearchField * | FindBox() |
IMPORT_C TBool | OkToExitL(TInt) |
IMPORT_C void | PostLayoutDynInitL() |
IMPORT_C void | PreLayoutDynInitL(void) |
Private Member Functions | |
---|---|
IMPORT_C void | CAknDialog_Reserved() |
IMPORT_C void | CAknQueryDialog_Reserved() |
IMPORT_C void | CEikDialog_Reserved_1() |
IMPORT_C void | CEikDialog_Reserved_2() |
TInt | ClosePopup(TAny *) |
TInt | ClosePopupAcceptingChanges(TAny *) |
IMPORT_C void * | ExtensionInterface(TUid) |
Inherited Enumerations | |
---|---|
CAknQueryDialog:TTone | |
CCoeControl:TZoomType | |
CEikDialog:@169 |
Private Attributes | |
---|---|
TInt | iDragActioned |
TBool | iEnterKeyPressed |
CIdle * | iIdle |
TInt * | iIndex |
TAknPopupWindowLayoutDef | iLayout |
CAknListQueryMediatorObserver * | iMediatorObs |
CListBoxView::CSelectionIndexArray * | iSelectionIndexArray |
IMPORT_C | CAknListQueryDialog | ( | TInt * | aIndex | ) |
C++ default constructor.
TInt * aIndex | After the query is dismissed, the index will hold the value of selected item. |
IMPORT_C | CAknListQueryDialog | ( | CListBoxView::CSelectionIndexArray * | aSelectionIndexArray | ) |
C++ default constructor.
CListBoxView::CSelectionIndexArray * aSelectionIndexArray | Will hold the values of selected items (in multiselection list). |
IMPORT_C void | ActivateL | ( | ) | [virtual] |
From CCoeControl.
Sets the control to be ready for drawing.
IMPORT_C TInt | BorderStyle | ( | ) | [protected, virtual] |
Gets border style of the list query.
Border style (AknBorderId type)
TInt | ClosePopup | ( | TAny * | aObj | ) | [private, static] |
Closes the dialog.
Gets called by iIdle.
EFalse always.
TAny * aObj | Target dialog to be closed. |
TInt | ClosePopupAcceptingChanges | ( | TAny * | aObj | ) | [private, static] |
Closes the dialog and accepts selected item.
Gets called by iIdle.
EFalse always.
TAny * aObj | Target dialog to be closed. |
IMPORT_C void | CloseState | ( | ) | [protected] |
From MAknIntermediateState.
Tries to close the query with non-leaving way.
IMPORT_C void * | ExtensionInterface | ( | TUid | aInterface | ) | [private, virtual] |
From CAknControl
TUid aInterface |
IMPORT_C CAknSearchField * | FindBox | ( | ) | const [protected] |
Gets search field if it has been set.
Pointer to search field. If no search field is used returns NULL.
IMPORT_C void | HandleListBoxEventL | ( | CEikListBox * | aListBox, |
TListBoxEvent | aEventType | |||
) |
From MEikListBoxObserver.
Handles events from listbox.
CEikListBox * aListBox | The listbox which caused the event. |
TListBoxEvent aEventType | Type of the event. |
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
From CCoeControl.
Handles pointer events.
This function gets called whenever a pointer event occurs in the control, i.e. when the pointer is within the control's extent, or when the control has grabbed the pointer. The control should implement this function to handle pointer events.
Note: events of type EButton1Down are processed before HandlePointerEventL() is called, in order to transfer keyboard focus to the control in which the EButton1Down event occurred.
If overriding HandlePointerEventL(), the implementation must include a base call to CCoeControl's HandlePointerEventL().
const TPointerEvent & aPointerEvent |
IMPORT_C void | HandleResourceChange | ( | TInt | aType | ) | [virtual] |
From CCoeControl.
Handles a change to the control's resources.
The types of resources handled are those which are shared across the environment, e.g. colours or fonts. For colour scheme changes, DrawDeferred() is called in order to redraw the control.
If overriding HandleResourceChange(), the implementation must include a base call to CCoeControl's HandleResourceChange().
ER5U
TInt aType | A message UID value. |
IMPORT_C CAknListQueryControl * | ListControl | ( | ) | const |
Gets pointer to list query control or NULL.
Pointer to list query control or in case that there is no such element a NULL pointer.
IMPORT_C CAknMessageQueryControl * | MessageBox | ( | ) | const |
Gets pointer to message query control or NULL.
Pointer to message query control or in case that there is no such element a NULL pointer.
IMPORT_C TKeyResponse | OfferKeyEventL | ( | const TKeyEvent & | aKeyEvent, |
TEventCode | aType | |||
) | [virtual] |
From CCoeControl.
Handles 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.
Indicates whether or not the key event was used by this control.
const TKeyEvent & aKeyEvent | The key event. |
TEventCode aType | The type of the event: EEventKey, EEventKeyUp or EEventKeyDown. |
IMPORT_C TBool | OkToExitL | ( | TInt | aButtonId | ) | [protected, virtual] |
From CEikDialog.
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.
ETrue if the dialog should exit, and EFalse if it should not.
TInt aButtonId | The ID of the button that was activated |
IMPORT_C void | PostLayoutDynInitL | ( | ) | [protected, virtual] |
From CEikDialog.
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.
IMPORT_C void | PreLayoutDynInitL | ( | void | ) | [protected, virtual] |
From CEikDialog.
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.
void |
IMPORT_C void | PublishDialogL | ( | TInt | aDialogIndex, |
TUid | aCatUid = KNullUid, | |||
CArrayFixFlat< TInt > * | aItemIds = 0 | |||
) |
3.1 Override to CEikDialog default functionality Instantiates mediator support and send a command with given parameters when a dialog is brought to display
void
TInt aDialogIndex | Unique index to identify a dialog within the category 0 has special meaning, it causes implementation to omit all communication with secondary display. (use with sleeping dialogs only) |
TUid aCatUid = KNullUid | gategory uid, if default paramter is passed, application uid is used as a category |
CArrayFixFlat< TInt > * aItemIds = 0 |
IMPORT_C CAknPopupHeadingPane * | QueryHeading | ( | ) | const [virtual] |
Gets pointer to query heading or NULL.
Pointer to query heading or in case there is no such element a NULL pointer.
IMPORT_C void | SetIconArrayL | ( | CArrayPtr< CGulIcon > * | aIcons | ) |
Destroys a possible old icon array in the listbox and installs a new one and takes ownership of the new icon array.
IMPORT_C void | SetItemTextArray | ( | MDesCArray * | aItemTextArray | ) |
Sets item text array to the listbox.
MDesCArray * aItemTextArray | Item text array to be added. |
IMPORT_C void | SetMediatorObserver | ( | MAknDialogMediatorObserver * | aObserver | ) |
Instantiates mediator support and passes possible feedback to given intance. If no observer is set, dialog tries to handle feedback by it self. Please note that no commands will be instantiated unless command identifiers are are set using PublishDialogL.
3.1
MAknDialogMediatorObserver * aObserver | Pointer to instance implementing MAknDialogMediatorObserver API. Can be NULL. |
IMPORT_C void | SetOwnershipType | ( | TListBoxModelItemArrayOwnership | aOwnershipType | ) |
Sets ownership type of the item array.
TListBoxModelItemArrayOwnership aOwnershipType | Type of ownership. |
IMPORT_C void | SetSizeAndPosition | ( | const TSize & | aSize | ) | [virtual] |
From CEikDialog.
Sets the type and position of the list box.
const TSize & aSize | Not used. |
IMPORT_C void | SetTone | ( | TInt | aTone | ) |
Sets the tone for the dialog.
TInt aTone | Tone to be used by the dialog. |
CListBoxView::CSelectionIndexArray * | iSelectionIndexArray | [private] |