bluetooth/btcomm/src/BTSimTimer.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 1997-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 BTSIMTIMER_H__
       
    17 #define BTSIMTIMER_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 class CBTPortProxy;
       
    22 
       
    23 /**
       
    24 	CBTTimerSimple is in effect an alarm.
       
    25 	It will signal back after the alarm has went off, calling CBTProxy::Alarm().
       
    26 */ 
       
    27 NONSHARABLE_CLASS(CBTTimerSimple) : public CTimer
       
    28 	{
       
    29 public:
       
    30 	virtual ~CBTTimerSimple();
       
    31 	static CBTTimerSimple* NewL(TInt aPriority, CBTPortProxy* aContext);
       
    32 	virtual void CancelAlarm();
       
    33 private:
       
    34 	void RunL();
       
    35 	CBTTimerSimple(TInt aPriority, CBTPortProxy* aContext);
       
    36 	void ConstructL();
       
    37 private:
       
    38 	CBTPortProxy* iClient;
       
    39 	};
       
    40 
       
    41 
       
    42 #endif