basiclocationinfodisplay/blid/ui/inc/MKeyProcessor.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2005 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: 
       
    15 *     Interface which allows subscribers to consume key event or pass the event
       
    16 *     to other view class.
       
    17 *       
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef MKEYPROCESSOR_H
       
    23 #define MKEYPROCESSOR_H
       
    24 
       
    25 // INCLUDES
       
    26 #include <w32std.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class MAknTabObserver;
       
    30 
       
    31 // ===========================================================================
       
    32 // MKeyProcessor
       
    33 // ===========================================================================
       
    34 
       
    35 /**
       
    36 *	An interface a CCoeControl class can implement to forward the keyevents 
       
    37 *   before the actual control gets the key events. This is useful in 
       
    38 *   situations where the control consumes keys which you need.
       
    39 */
       
    40 class MKeyProcessor
       
    41     {
       
    42     public:
       
    43     /**
       
    44      * process the keyevent befor it reaches the control
       
    45      * @param aKeyEvent the event fired
       
    46      * @param aType the type of event
       
    47      * @return ETrue if key event was consumed, otherwise EFalse
       
    48      */
       
    49     virtual TBool ProcessKeyEventL( const TKeyEvent& aKeyEvent,
       
    50                                     TEventCode aType ) = 0;
       
    51 
       
    52 	/**
       
    53      * returns the pointer to MAknTabObserver interface
       
    54      * @return pointer to the MAknTabObserver interface
       
    55      */
       
    56     virtual MAknTabObserver* TabObserver() = 0;
       
    57     };
       
    58 
       
    59             
       
    60 #endif //MKEYPROCESSOR_H
       
    61 
       
    62 // End of File