epoc32/include/mw/eiklbo.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 1 666f914201fb
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
     1 /*
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 
    19 #if !defined(__EIKLBO_H__)
    20 #define __EIKLBO_H__
    21 
    22 class CEikListBox; 
    23 
    24 /**
    25 * List box observer interface.
    26 *
    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.
    30 *
    31 * Writing derived classes: 
    32 *
    33 * Application authors should implement a class which derives from this
    34 * interface to receive events from list boxes
    35 */
    36 class MEikListBoxObserver
    37     {
    38     public:
    39 
    40         /**
    41         * List box event codes
    42         */
    43         enum TListBoxEvent
    44             {
    45             /**  Keypress event. */
    46             EEventEnterKeyPressed,
    47             /**  Item single-tap event */
    48             EEventItemClicked,
    49             /**  Item two-taps event. */
    50             EEventItemDoubleClicked,
    51             /**  Special event: reported by directory tree and directory contents list boxes. */
    52             EEventItemActioned,
    53             /**  Editing started. */
    54             EEventEditingStarted,
    55             /**  Editing stopped. */
    56             EEventEditingStopped,
    57             /**  Pen is down and over an item */
    58             EEventPenDownOnItem,
    59             /**  Pen is dragged from item to another */
    60             EEventItemDraggingActioned,
    61             /**  Panning is started */
    62             EEventPanningStarted,
    63             /**  Panning is stopped */
    64             EEventPanningStopped,
    65             /**  Flick is started */
    66             EEventFlickStarted,
    67             /**  Flick is stopped */
    68             EEventFlickStopped
    69             };
    70 
    71     public:
    72         /**
    73         * Handles list box events.
    74         *
    75         * This pure virtual function is invoked by CEikListBox to
    76         * notify the observer of list box events.
    77         *
    78         * @param aListBox   The originating list box.
    79         * @param aEventType A code for the event. Further information 
    80         *                   may be obtained by accessing the list box itself.
    81         */
    82         virtual void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType)=0;
    83     };
    84 
    85 #endif