emailuis/uicomponents/inc/fscontrolbuttonobserver.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 FsControlButton class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_FSCONTROLBUTTONOBSERVER_H
       
    20 #define M_FSCONTROLBUTTONOBSERVER_H
       
    21 
       
    22 /**
       
    23  *  Control Button observer class.
       
    24  *
       
    25  *  @code
       
    26  *
       
    27  *  @endcode
       
    28  *
       
    29  *  @lib fs_generic.lib
       
    30  */
       
    31 NONSHARABLE_CLASS( MFsControlButtonObserver )
       
    32     {
       
    33 public:
       
    34     /** events sent to observers */
       
    35     enum TFsControlButtonEvent
       
    36         {
       
    37         EEventButtonPressed,
       
    38         EEventButton,
       
    39         EEventButtonReleased,
       
    40         EEventButtonVisibilityChanged,
       
    41         // <cmail> Touch
       
    42         EEventButtonDimmStateChanged,
       
    43         EEventButtonTouchPressed,
       
    44         EEventButtonTouchReleased,
       
    45         // </cmail>
       
    46         EFocusVisibilityChange
       
    47         };
       
    48 
       
    49 public:
       
    50     /**
       
    51      * Invoked when button is pressed.
       
    52      *
       
    53      * @param aEvent event type.
       
    54      * @param aId id of the pressed button.
       
    55      */
       
    56     virtual TBool HandleButtonEvent(
       
    57         TFsControlButtonEvent aEvent,
       
    58         TInt aId ) = 0;
       
    59     };
       
    60 
       
    61 #endif // M_FSCONTROLBUTTONOBSERVER_H