menufw/menufwui/mmwidgets/inc/mmkeyeventobserver.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     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:  receives key pressed notifications
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_MMKEYEVENTOBSERVER_H
       
    20 #define M_MMKEYEVENTOBSERVER_H
       
    21 
       
    22 #include <coedef.h>
       
    23 
       
    24 /**
       
    25  *  Interface for handling key events.
       
    26  *
       
    27  *  @code
       
    28  *  @endcode
       
    29  *  @lib 
       
    30  *  @since S60 v3.0
       
    31  */
       
    32 class MMmKeyEventObserver
       
    33     {
       
    34 public:
       
    35 	
       
    36     /**
       
    37      * Called by implementing class to handle incoming key event (e.g. rocker key pressed).
       
    38      *
       
    39      * @since S60 v3.0
       
    40      * @param aKeyEvent The type of key event triggered.
       
    41      * @param aType The Code of the event.
       
    42      * @return Information if the key event has been handled.
       
    43      */
       
    44     virtual TKeyResponse HandleKeyPressedL( const TKeyEvent &aKeyEvent, 
       
    45         TEventCode aType ) = 0; 
       
    46     
       
    47     };
       
    48     
       
    49 #endif // M_MMKEYEVENTOBSERVER_H