|
1 // Copyright (c) 2006-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 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef HCICMDQTIMER_H |
|
22 #define HCICMDQTIMER_H |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 class CHCICommandQItem; |
|
27 class MHCITimerClient; |
|
28 |
|
29 /** |
|
30 HCI Command Queue Timer base class. It is intended that this class |
|
31 be derived from and not directly instantiated. |
|
32 */ |
|
33 NONSHARABLE_CLASS(CHCICmdQTimer) : public CTimer |
|
34 { |
|
35 public: |
|
36 void Restart(TUint aMilliseconds, TUint aCommandQItemId, MHCITimerClient& aClient); |
|
37 |
|
38 protected: |
|
39 CHCICmdQTimer(); |
|
40 void ConstructL(); |
|
41 |
|
42 protected: |
|
43 TUint iCommandQItemId; |
|
44 MHCITimerClient* iClient; |
|
45 }; |
|
46 |
|
47 /** |
|
48 HCI Command Queue starvation timer. |
|
49 */ |
|
50 NONSHARABLE_CLASS(CHCICmdQStarvationTimer) : public CHCICmdQTimer |
|
51 { |
|
52 public: |
|
53 static CHCICmdQStarvationTimer* NewL(); |
|
54 |
|
55 private: |
|
56 CHCICmdQStarvationTimer(); |
|
57 void RunL(); |
|
58 }; |
|
59 |
|
60 /** |
|
61 HCI Command Queue command completion timer. |
|
62 */ |
|
63 NONSHARABLE_CLASS(CHCICmdQCompletionTimer) : public CHCICmdQTimer |
|
64 { |
|
65 public: |
|
66 static CHCICmdQCompletionTimer* NewL(); |
|
67 |
|
68 private: |
|
69 CHCICmdQCompletionTimer(); |
|
70 void RunL(); |
|
71 }; |
|
72 |
|
73 #endif // HCICMDQTIMER_H |