obex/obexprotocol/obex/inc/obexpackettimer.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2005-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 OBEXPACKETTIMER_H
       
    17 #define OBEXPACKETTIMER_H
       
    18 
       
    19 /**
       
    20 @file
       
    21 @internalComponent
       
    22 @released
       
    23 */
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 const TInt KLowestPossibleTimerValue = 0;
       
    28 
       
    29 /** This class handles the timing of Obex reponse packets 
       
    30     from the server
       
    31 */
       
    32 class CObexClient;
       
    33 	
       
    34 NONSHARABLE_CLASS(CObexPacketTimer) : public CTimer
       
    35 	{
       
    36 public:
       
    37 	static CObexPacketTimer* NewL(CObexClient& aObexClient);
       
    38 	virtual ~CObexPacketTimer();
       
    39 	
       
    40 	void SetTimer(TTimeIntervalMicroSeconds32 anInterval);
       
    41 	
       
    42 private:
       
    43 	CObexPacketTimer(CObexClient& aObexClient);
       
    44 	virtual void RunL();
       
    45 	
       
    46 private:
       
    47 	CObexClient& iObexClient;
       
    48 	};
       
    49 	
       
    50 #endif // OBEXPACKETTIMER_H