photosgallery/viewframework/views/viewbase/inc/glxkeyeventreceiver.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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 receiver interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef M_GLXKEYEVENTRECEIVER_H
       
    22 #define M_GLXKEYEVENTRECEIVER_H
       
    23 
       
    24 /**
       
    25  *  MGlxKeyEventReceiver
       
    26  *
       
    27  *  Key event receiver. 
       
    28  *
       
    29  *  @lib glxviewbase.lib
       
    30  */
       
    31 class MGlxKeyEventReceiver
       
    32 	{
       
    33 public:
       
    34 	/**
       
    35 	 * Interface to recieve keypress information from an associated CGlxKeyMonitor. 
       
    36 	 * @param aKeyEvent The key event. 
       
    37 	 * @param aType The type of key event: EEventKey, EEventKeyUp or EEventKeyDown
       
    38 	 * @return Indicates whether or not the key event was used by this control. EKeyWasNotConsumed or EKeyWasConsumed
       
    39 	 */
       
    40 	virtual TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType) = 0;
       
    41 	};
       
    42 
       
    43 #endif // M_GLXKEYEVENTRECEIVER_H