emailuis/uicomponents/inc/fscontrolbarobserver.h
branchRCL_3
changeset 25 3533d4323edc
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     1 /*
       
     2 * Copyright (c) 2007 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 "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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Observer for FsControlBar class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_FSCONTROLBAROBSERVER_H
       
    20 #define M_FSCONTROLBAROBSERVER_H
       
    21 
       
    22 /**
       
    23  *  Control Bar observer class.
       
    24  *
       
    25  *  @code
       
    26  *
       
    27  *  @endcode
       
    28  *
       
    29  *  @lib fs_generic.lib
       
    30  */
       
    31 NONSHARABLE_CLASS( MFsControlBarObserver )
       
    32     {
       
    33 public:
       
    34     /** events sent to observers */
       
    35     enum TFsControlBarEvent
       
    36         {
       
    37         EEventSelectionChanged = 0,
       
    38         EEventFocusGained,
       
    39         EEventFocusLost,
       
    40         EEventFocusLostAtBottom,
       
    41         EEventFocusLostAtSide,
       
    42         // <cmail> Touch
       
    43         EEventTouchFocused,
       
    44         // </cmail>
       
    45         EEventButtonPressed,
       
    46         EEventButton,
       
    47         // <cmail> Touch
       
    48         EEventButtonReleased,
       
    49         EEventButtonTouched,
       
    50         // </cmail>
       
    51         EEventFocusVisibilityChanged
       
    52         };
       
    53 
       
    54 public:
       
    55     /**
       
    56      * Invoked when event occurs.
       
    57      *
       
    58      * @param aEvent event type.
       
    59      * @param aData additional data. For EButton - id of pressed button.
       
    60      */
       
    61     virtual void HandleControlBarEvent(
       
    62         TFsControlBarEvent aEvent,
       
    63         TInt aData ) = 0;
       
    64     };
       
    65 
       
    66 #endif // M_FSCONTROLBAROBSERVER_H