2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #if !defined(__EIKLBO_H__)
25 * List box observer interface.
27 * Each list box observer may be registered with a number of list
28 * boxes; each of these send events to the list box observer through
29 * its HandeListBoxEventL() method.
31 * Writing derived classes:
33 * Application authors should implement a class which derives from this
34 * interface to receive events from list boxes
36 class MEikListBoxObserver
41 * List box event codes
45 /** Keypress event. */
46 EEventEnterKeyPressed,
47 /** Item single-tap event */
49 /** Item two-taps event. */
50 EEventItemDoubleClicked,
51 /** Special event: reported by directory tree and directory contents list boxes. */
53 /** Editing started. */
55 /** Editing stopped. */
57 /** Pen is down and over an item */
59 /** Pen is dragged from item to another */
60 EEventItemDraggingActioned,
61 /** Panning is started */
63 /** Panning is stopped */
65 /** Flick is started */
67 /** Flick is stopped */
69 /** Item single-tap event. This event should be used
70 by applications that are single click compatible. */
71 EEventItemSingleClicked,
72 /** An empty listbox was clicked */
73 EEventEmptyListClicked,
74 /** An empty area of non-empty listbox was clicked */
75 EEventEmptyAreaClicked
80 * Handles list box events.
82 * This pure virtual function is invoked by CEikListBox to
83 * notify the observer of list box events.
85 * @param aListBox The originating list box.
86 * @param aEventType A code for the event. Further information
87 * may be obtained by accessing the list box itself.
89 virtual void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType)=0;