Link against: avkon.lib
None
#include <aknsfld.h>
Inherits CAknControl.
There are different styles for the search field defined by a TSearchFieldStyle.
Public Types |
|
enum | TSearchFieldStyle { ESearch, EInput, EUrl, EPhone, EPlain, EPopup, EPinb, EClockApp, EFixed, ESearchWithoutLine, EPopupWindow, EAdaptiveSearch, EAdaptive, EPopupAdaptiveSearch, EPopupAdaptiveSearchWindow } |
Search field style. More... |
|
Public Member Functions |
|
IMPORT_C | ~CAknSearchField () |
Destructor. |
|
IMPORT_C TInt | TextLength () const |
Returns the length of search text. |
|
IMPORT_C void | GetSearchText (TDes &aSearchTxt) const |
Returns the text of search field by writing it into the buffer aSearchTxt. |
|
IMPORT_C void | SetSearchTextL (const TDesC &aSearchTxt) |
Sets text into search field. |
|
IMPORT_C void | SelectSearchTextL () |
Selects the whole search text. |
|
IMPORT_C void | ResetL () |
Clears text in the search field. |
|
IMPORT_C void | SetInfoTextL (const TDesC &aText) |
Sets additional info text to the search field. |
|
IMPORT_C void | ClipboardL (CEikEdwin::TClipboardFunc aClipboardFunc) |
Calls editor's ClipboardL() function. |
|
IMPORT_C CAknSearchField::TSearchFieldStyle | SearchFieldStyle () const |
Return search field style. |
|
IMPORT_C void | SetSkinEnabledL (const TBool aEnabled) |
Sets whether skins are enabled on this control. |
|
void | HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType) |
From MCoeControlObserver , Acts upon changes in the hosted control's state. |
|
IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
From CCoeControl , Handles key event. |
|
void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl , Handles pointer event. |
|
IMPORT_C TSize | MinimumSize () |
From CCoeControl , Returns minimum size. |
|
IMPORT_C void | MakeVisible (TBool aVisible) |
Sets this control as visible or invisible. |
|
IMPORT_C void | SetLinePos (TInt aLinePos) |
Sets position of the line on main pane. |
|
IMPORT_C CEikEdwin & | Editor () const |
Access to the edwin owned by the search field. |
|
IMPORT_C void | SetAdaptiveGridChars (const TDesC &aGridChars) const |
Set adaptive search grid characters. |
|
IMPORT_C void | ShowAdaptiveSearchGrid () const |
Show adaptive search grid. |
|
IMPORT_C void | SetListColumnFilterFlags (const TBitFlags32 aFlag) |
Set column filter flag for adaptive search grid. |
|
IMPORT_C TBitFlags32 | ListColumnFilterFlags () const |
Send column filter flag for adaptive search grid. |
|
IMPORT_C void | AddAdaptiveSearchTextObserverL (MAdaptiveSearchTextObserver *aObserver) |
Adds an adaptive search text observer. |
|
IMPORT_C TBool | RemoveAdaptiveSearchTextObserver (MAdaptiveSearchTextObserver *aObserver) |
Removes an adaptive search text observer. |
|
IMPORT_C TBool | AdaptiveSearchEnabled () |
Returns information whether adaptive search is enabled or not. |
|
IMPORT_C TBool | LanguageChanged () const |
Notify client if input language changed in settings, for adaptive search. |
|
void | SetListbox (CEikListBox *aListBox) |
Sets a list box for this control. |
|
void | SetParentCtrl (CCoeControl *aParent) |
Sets the parent control for this control. |
|
TBool | IsPopup () |
Indicates that is the control popup or not. |
|
void | SetOldItemIndex (TInt aOldItemIndex) |
Sets index, where listbox focus should return when popup findbox is canceled. |
|
TInt | OldItemIndex () |
Returns index, where listbox focus should return when popup findbox is canceled. |
|
void | SetLanguageChangedFlag (TBool aLanguageChanged) |
Set the language changed flag, for adaptive search. |
|
void | HandleHWKeyboardModeChangeL () |
Handle HW keyboard active/deactive event. |
|
Static Public Member Functions |
|
static IMPORT_C CAknSearchField * | NewL (const CCoeControl &aParent, TSearchFieldStyle aFieldStyle, CGulIcon *aIcon, TInt aTextLimit) |
Two-phased constructor. |
|
|
Destructor. |
|
Returns information whether adaptive search is enabled or not.
|
|
Adds an adaptive search text observer. Duplicates are not checked (i.e. adding the same observer multiple times is not prevented).
|
|
Calls editor's
|
|
Access to the edwin owned by the search field.
|
|
Returns the text of search field by writing it into the buffer aSearchTxt.
|
|
From This class's implementation is trivial and should be able to be safely re-implemented in directly client-derived classes. For non-base setting page classes, a call to the base class should be made.
|
|
Handle HW keyboard active/deactive event.
|
|
From
|
|
Indicates that is the control popup or not.
|
|
Notify client if input language changed in settings, for adaptive search.
|
|
Send column filter flag for adaptive search grid.
|
|
Sets this control as visible or invisible.
|
|
From Minimum size depends on zoom factor.
|
|
Two-phased constructor.
|
|
From
|
|
Returns index, where listbox focus should return when popup findbox is canceled.
|
|
Removes an adaptive search text observer.
|
|
Clears text in the search field. |
|
Return search field style.
|
|
Selects the whole search text. |
|
Set adaptive search grid characters.
|
|
Sets additional info text to the search field.
|
|
Set the language changed flag, for adaptive search.
|
|
Sets position of the line on main pane.
|
|
Sets a list box for this control.
|
|
Set column filter flag for adaptive search grid.
|
|
Sets index, where listbox focus should return when popup findbox is canceled.
|
|
Sets the parent control for this control.
|
|
Sets text into search field.
|
|
Sets whether skins are enabled on this control.
The default value is determined from global setting from
|
|
Show adaptive search grid. Application can activate adaptive search grid from the option menu.
|
|
Returns the length of search text.
|