logsui/AppSrc/MLogsKeyProcessor.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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: 
       
    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 MLogsKeyProcessor_H
       
    23 #define MLogsKeyProcessor_H
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class MAknTabObserver;
       
    27 
       
    28 // ===========================================================================
       
    29 // MLogsKeyProcessor
       
    30 // ===========================================================================
       
    31 
       
    32 /**
       
    33 *	An interface a CCoeControl class can implement to forward the keyevents before
       
    34 *	the actual control gets the key events. This is useful in situations where 
       
    35 *	the control consumes keys which you need.
       
    36 */
       
    37 class MLogsKeyProcessor
       
    38     {
       
    39     public:
       
    40     /**
       
    41      * process the keyevent befor it reaches the control
       
    42      * @param aKeyEvent the event fired
       
    43      * @param aType the type of event
       
    44      * @return ETrue if key event was consumed, otherwise EFalse
       
    45      */
       
    46     virtual TBool ProcessKeyEventL( const TKeyEvent& aKeyEvent,TEventCode aType ) = 0;
       
    47 
       
    48 	/**
       
    49      * returns the pointer to MAknTabObserver interface
       
    50      * @return pointer to the MAknTabObserver interface
       
    51      */
       
    52     virtual MAknTabObserver* TabObserver() = 0;
       
    53     
       
    54     /**
       
    55      * Called when the current focused listbox item is tapped 
       
    56      * or after a double tap.       
       
    57      *         
       
    58      * @param aIndex to the current focused listbox item 
       
    59      */ 
       
    60     //virtual void ProcessPointerEventL(TInt aIndex) = 0;
       
    61     
       
    62     /**
       
    63      * Called when the current focused listbox focus changed (by tapping)
       
    64      */ 
       
    65     // virtual void FocusChangedL() = 0;
       
    66     };
       
    67 
       
    68             
       
    69 #endif
       
    70 
       
    71 // End of File