locationsystemui/locationsysui/locpsysettings/locpsysettingsui/inc/locpsykeyprocessor.h
branchRCL_3
changeset 44 2b4ea9893b66
parent 42 02ba3f1733c6
child 45 6b6920c56e2f
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
     1 /*
       
     2 * Copyright (c) 2002 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:  Interface which allows subscribers to consume key event or 
       
    15 *               pass the event to other view class.
       
    16 *       
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef MLOCPSYKEYPROCESSOR_H
       
    22 #define MLOCPSYKEYPROCESSOR_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <w32std.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *	An interface a CCoeControl class can implement to forward the keyevents
       
    31 *   before the actual control gets the key events. This is useful in
       
    32 *   situations where the control consumes keys which you need.
       
    33 */
       
    34 class MLocPsyKeyProcessor
       
    35     {
       
    36     public:
       
    37      /**
       
    38      * process the keyevent befor it reaches the control
       
    39      * @param aKeyEvent the event fired
       
    40      * @param aType the type of event
       
    41      * @return ETrue if key event was consumed, otherwise EFalse
       
    42      */
       
    43     virtual TBool ProcessKeyEventL( const TKeyEvent& aKeyEvent,
       
    44                                     TEventCode aType ) = 0;
       
    45     };
       
    46 
       
    47 #endif // MLOCPSYKEYPROCESSOR_H
       
    48 
       
    49 // End of File