applayerpluginsandutils/httptransportplugins/httptransporthandler/chttptimer.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CHTTPTIMER_H__
       
    17 #define __CHTTPTIMER_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 const TInt KMicrovalue = 1000000;
       
    22 const TInt KDefTimeoutValue = 60000000;
       
    23 const TInt KMinTimeoutValue = 60;	//In Seconds.
       
    24 
       
    25 class MHttpTimerObserver;
       
    26 
       
    27 class CHttpTimer: public CActive
       
    28 	{
       
    29 	public:
       
    30 		static CHttpTimer* NewL(MHttpTimerObserver& aTimerObserver);
       
    31 		~CHttpTimer();
       
    32 		void After(TTimeIntervalMicroSeconds32 anInterval);
       
    33 		void DoCancel();
       
    34 		void RunL();
       
    35 	private:
       
    36 		CHttpTimer(MHttpTimerObserver& aTimerObserver);
       
    37 		
       
    38 		RTimer iTimer;
       
    39 		MHttpTimerObserver&			iTimerObserver;
       
    40 	};
       
    41 
       
    42 
       
    43 #endif /*__CHTTPTIMER_H__*/