IMPSengine/client/inc/impshandlertimer.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2005 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: Handler timer
       
    15 * 
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IMPSHANDLERTIMER_H
       
    20 #define IMPSHANDLERTIMER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "impshandler.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CImpsHandler2;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 
       
    31 /**
       
    32 * CImpsHandlerTimer
       
    33 * 
       
    34 */
       
    35 class CImpsHandlerTimer : public CActive
       
    36     {
       
    37     public:
       
    38         /**
       
    39         * Constructor
       
    40         * @param aServer WV engine server
       
    41         * @param aPriority Active objects priority
       
    42         */
       
    43         CImpsHandlerTimer( TInt aPriority, CImpsHandler2&  aHandler );
       
    44 
       
    45         /**
       
    46         * Destructor
       
    47         */
       
    48         virtual ~CImpsHandlerTimer();
       
    49 
       
    50         /**
       
    51         * Start waiting.
       
    52         * Use CActive::Cancel() to cancel the request.
       
    53         */
       
    54         void Start( );
       
    55 
       
    56         
       
    57     protected:
       
    58         // From base class
       
    59         void RunL();
       
    60         void DoCancel();
       
    61 
       
    62     protected:
       
    63         RTimer          iTimer;
       
    64         CImpsHandler2&  iHandler;    
       
    65     };
       
    66 
       
    67 
       
    68 
       
    69 #endif      // IMPSHANDLERTIMER_H
       
    70             
       
    71 // End of File
       
    72 
       
    73