mulwidgets/mulsliderwidget/inc/mulsliderlongtaptimer.h
branchRCL_3
changeset 26 0e9bb658ef58
parent 0 e83bab7cf002
equal deleted inserted replaced
25:4ea6f81c838a 26:0e9bb658ef58
       
     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: Header for presentation elements - Slider long tap timer.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MULSLIDERLONGTAPTIMER_H_
       
    19 #define MULSLIDERLONGTAPTIMER_H_
       
    20 
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 #include<alf/alfevent.h>
       
    24 #include "imulsliderbaseelementinternal.h"
       
    25 
       
    26 
       
    27 namespace Alf
       
    28     {
       
    29         
       
    30 class MulSliderLongTapTimer: public CActive
       
    31     {
       
    32 
       
    33     enum TState
       
    34         {
       
    35         //To indicate the event is in running state.
       
    36         ERunning,
       
    37         
       
    38         //To indicate the event is in stopped state.
       
    39         EStopped
       
    40         };        
       
    41 public:
       
    42     /**
       
    43      * Constructor
       
    44      * @param aBaseElement
       
    45      */
       
    46     MulSliderLongTapTimer(IMulSliderBaseElementInternal* aSliderElement);
       
    47 
       
    48     /**
       
    49      * Destructor 
       
    50      */      
       
    51     ~MulSliderLongTapTimer();
       
    52 
       
    53     /**
       
    54      * Start the Timer. 
       
    55      */    
       
    56     void Start();
       
    57 
       
    58     /**
       
    59      * Stops the Timer. 
       
    60      */    
       
    61     void Stop();
       
    62    
       
    63     /**
       
    64      * user code runs under this active object. 
       
    65      */
       
    66     void RunL();
       
    67     
       
    68     /**
       
    69      * Implements cancellation of an outstanding request. 
       
    70      */
       
    71     void DoCancel();        
       
    72     
       
    73        
       
    74 private:
       
    75     
       
    76     RTimer iTimer;
       
    77     TState iState;  
       
    78     IMulSliderBaseElementInternal *iBaseElement;
       
    79     };
       
    80 
       
    81     }
       
    82 
       
    83 #endif /*MULSLIDERLONGTAPTIMER_H_*/