equal
deleted
inserted
replaced
|
1 // Copyright (c) 2003-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 // Defines the accept watchdog timer for baseband SAPs |
|
15 // to guard against: |
|
16 // 1) race condition in accepting a link just as the Controller drops the link |
|
17 // automatically due to it Accept Timer firing |
|
18 // 2) Broken HW not delivering this important event |
|
19 // 3) HW that reports only via a useless Command Status event |
|
20 // |
|
21 // |
|
22 |
|
23 #include <e32base.h> |
|
24 class CBTBasebandSAP; |
|
25 |
|
26 #ifndef _ACCEPTWATCHDOG_H |
|
27 #define _ACCEPTWATCHDOG_H |
|
28 |
|
29 static const TInt KAcceptWatchdogTimeout = 60000000; // microsecondseconds(have to cover the case of security mode3) |
|
30 |
|
31 NONSHARABLE_CLASS(TAcceptWatchdog) |
|
32 { |
|
33 public: |
|
34 explicit TAcceptWatchdog(CBTBasebandSAP& aParent); |
|
35 static TInt AcceptTimeout(TAny* aTAcceptWatchdog); |
|
36 void Start(); |
|
37 void Cancel(); |
|
38 #ifdef _DEBUG |
|
39 ~TAcceptWatchdog(); |
|
40 #endif |
|
41 |
|
42 private: |
|
43 TAcceptWatchdog(); // want to hide |
|
44 private: |
|
45 CBTBasebandSAP& iParent; |
|
46 TDeltaTimerEntry iIdleTimerEntry; |
|
47 TBool iActive; |
|
48 }; |
|
49 |
|
50 |
|
51 #endif //_ACCEPTWATCHDOG_H |