phonebookui/Phonebook/View/inc/MPbkControlKeyObserver.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 *      Phonebook UI control key event observer.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __MPbkControlKeyObserver_H__
       
    21 #define __MPbkControlKeyObserver_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include <coedef.h> // TKeyResponse
       
    25 #include <w32std.h> // TKeyEvent, TEventCode
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30  * @internal Only Phonebook internal use supported!
       
    31  *
       
    32  * Phonebook UI control key event observer interface.
       
    33  */
       
    34 class MPbkControlKeyObserver
       
    35     {
       
    36     public:  // Interface
       
    37         /**
       
    38          * Called from OfferKeyEventL of the observed control.
       
    39          *
       
    40          * @param   aKeyEvent   see CCoeControl::OfferKeyEventL.
       
    41          * @param   aType       see CCoeControl::OfferKeyEventL.
       
    42          * @return see CCoeControl::OfferKeyEventL.
       
    43          * @see CCoeControl::OfferKeyEventL. If returns EKeyWasConsumed the 
       
    44          *      control should not forward the key event.
       
    45          */
       
    46         virtual TKeyResponse PbkControlKeyEventL
       
    47             (const TKeyEvent& aKeyEvent,TEventCode aType) = 0;
       
    48     };
       
    49 
       
    50 
       
    51 #endif // __MPbkControlKeyObserver_H__
       
    52 
       
    53 // End of File