uiacceltk/hitchcock/coretoolkit/inc/huilongtapdetector.h
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2007 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:   Class which detects the long pointer press.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_HUILONGTAPDETECTOR_H
       
    21 #define C_HUILONGTAPDETECTOR_H
       
    22 
       
    23 #include <e32base.h>
       
    24 #include "uiacceltk/HuiEvent.h"
       
    25 
       
    26 class CHuiRoster;
       
    27 
       
    28 /**
       
    29  *  This class is responsible of timing the long tap event and
       
    30  *  generating it back to the roster.
       
    31  *
       
    32  *  @code
       
    33  *   ?good_class_usage_example(s)
       
    34  *  @endcode
       
    35  *
       
    36  *  @lib hitchcock.lib
       
    37  *  @since S60 v5.0
       
    38  */
       
    39 NONSHARABLE_CLASS( CHuiLongTapDetector ): public CTimer
       
    40     {
       
    41 
       
    42 public:
       
    43 
       
    44     /**
       
    45      * Two-phased constructor.
       
    46      * @param ?arg1 ?description
       
    47      * @param ?arg2 ?description
       
    48      */
       
    49     static CHuiLongTapDetector* NewL(CHuiRoster& aRoster);
       
    50     
       
    51 
       
    52     /**
       
    53     * Destructor.
       
    54     */
       
    55     virtual ~CHuiLongTapDetector();
       
    56 
       
    57     /**
       
    58      * ?description
       
    59      *
       
    60      * @since S60 ?S60_version
       
    61      * @param ?arg1 ?description
       
    62      * @param ?arg2 ?description
       
    63      * @return ?description
       
    64      */
       
    65     void OfferPointerEvent( const THuiEvent& aEvent );
       
    66 
       
    67 
       
    68 private:
       
    69 
       
    70     CHuiLongTapDetector(CHuiRoster& aRoster);
       
    71 
       
    72     void ConstructL();
       
    73     
       
    74     // from base class CActive
       
    75     
       
    76     void RunL();
       
    77     
       
    78     TInt RunError( TInt aError );
       
    79 
       
    80 private: // data
       
    81 
       
    82     /**
       
    83      * ?description_of_member
       
    84      */
       
    85     CHuiRoster& iRoster;
       
    86     THuiEvent iPreviousPointerEvent;
       
    87     };
       
    88 
       
    89 
       
    90 #endif // C_HUILONGTAPDETECTOR_H