vtuis/videotelui/inc/compman/mvtuikeyeventobserver.h
branchRCL_3
changeset 24 f15ac8e65a02
parent 23 890b5dd735f8
child 25 779871d1e4f4
equal deleted inserted replaced
23:890b5dd735f8 24:f15ac8e65a02
     1 /*
       
     2 * Copyright (c) 2006 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:  Key event observer API for components.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_VTUIKEYEVENTOBSERVER_H
       
    20 #define M_VTUIKEYEVENTOBSERVER_H
       
    21 
       
    22 #include <w32std.h>
       
    23 #include <coedef.h>
       
    24 
       
    25 /**
       
    26  *  MVtUiKeyEventObserver
       
    27  *
       
    28  *  Keyevent observer API definition.
       
    29  *
       
    30  *  @since S60 v3.2
       
    31  */
       
    32 class MVtUiKeyEventObserver
       
    33     {
       
    34 
       
    35 public:
       
    36 
       
    37     /**
       
    38      * Called when key event handling is required.
       
    39      *
       
    40      * @param aEvent The key event.
       
    41      * @param aCode The type of key event: EEventKey, EEventKeyUp or
       
    42      * EEventKeyDown.
       
    43      * @return Indicates whether or not the key event was used.
       
    44      */
       
    45     virtual TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent,
       
    46         TEventCode aCode ) = 0;
       
    47 
       
    48     };
       
    49 
       
    50 #endif // M_VTUIKEYEVENTOBSERVER_H