imstutils/imconversationview/imcvuiapp/inc/mimcvtapeventobserver.h
branchRCL_3
changeset 29 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
28:3104fc151679 29:9a48e301e94b
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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 to observe events in text control
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MIMCVTAPEVENTOBSERVER_H
       
    20 #define MIMCVTAPEVENTOBSERVER_H
       
    21 
       
    22 #include <e32def.h>
       
    23 
       
    24 /**
       
    25  *  Interface to observe events in touchable controls
       
    26  *  @lib imcvuiapp.exe
       
    27  *  @since S60 v5.0
       
    28  */
       
    29 class MIMCVTapEventObserver
       
    30     {
       
    31 public:
       
    32 
       
    33     /**  Tap event types */
       
    34     enum TTapEvent
       
    35         {
       
    36         ESingleTap = 0,  // This pure single tap on one item.
       
    37                          // User needs to start and release the 
       
    38                          // tap on same item
       
    39         EDoubleTap,      // Double tap on single item.
       
    40                          // There's no time limit between the taps
       
    41         EStartTap,       // When user puts stylus on control
       
    42         EReleaseTap,     // When user raises the stylus off the control
       
    43         
       
    44                          // NOTE: When DoubleTap event happens, the observer
       
    45                          // is also notified about SingleTap and Release.
       
    46         };
       
    47 
       
    48     /**
       
    49      * This method is called when observed object is tapped
       
    50      * @since S60 v5.0
       
    51      * @param aEvent Event which happened in touchable control
       
    52      * @param aControlId in which control the event occured
       
    53      * @return none
       
    54      */
       
    55     virtual void HandleTapEventL( TTapEvent aEvent, TUint aControlId ) = 0;
       
    56 
       
    57 protected:
       
    58 
       
    59     ~MIMCVTapEventObserver() {}
       
    60     };
       
    61 
       
    62 
       
    63 #endif // MIMCVTAPEVENTOBSERVER_H