equal
deleted
inserted
replaced
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
24 |
24 |
25 #include <e32base.h> |
25 #include <e32base.h> |
26 #include <c32comm.h> |
26 #include <c32comm.h> |
27 |
27 |
28 #include "MControllerObserver.h" |
28 #include "MControllerObserver.h" |
29 #include "bttlog.h" |
|
30 #include "Constants.h" |
29 #include "Constants.h" |
31 |
30 |
32 #ifdef RAWIP_HEADER_APPENDED_TO_PACKETS |
31 #ifdef RAWIP_HEADER_APPENDED_TO_PACKETS |
33 #include "IPTagHeader.h" |
32 #include "IPTagHeader.h" |
34 #endif // RAWIP_HEADER_APPENDED_TO_PACKETS |
33 #endif // RAWIP_HEADER_APPENDED_TO_PACKETS |
35 |
|
36 class CBttLogger; |
|
37 |
34 |
38 /** |
35 /** |
39 @internalComponent |
36 @internalComponent |
40 */ |
37 */ |
41 class CBcaController : public CBase |
38 class CBcaController : public CBase |
42 { |
39 { |
43 public: |
40 public: |
44 CBcaController(MControllerObserver& aObserver, CBttLogger* aTheLogger); |
41 CBcaController(MControllerObserver& aObserver); |
45 void BaseConstructL(); |
42 void BaseConstructL(); |
46 ~CBcaController(); |
43 ~CBcaController(); |
47 |
44 |
48 public: // Flow Control |
45 public: // Flow Control |
49 void UpdateInternalFlowFlag(TFlowControl aValue); |
46 void UpdateInternalFlowFlag(TFlowControl aValue); |
101 void EmptySendQueue(); |
98 void EmptySendQueue(); |
102 |
99 |
103 private: // Unowned data. |
100 private: // Unowned data. |
104 MControllerObserver& iObserver; |
101 MControllerObserver& iObserver; |
105 protected: |
102 protected: |
106 CBttLogger* iTheLogger; |
|
107 TInt iMaxTxPacketSize; |
103 TInt iMaxTxPacketSize; |
108 TInt iMaxRxPacketSize; |
104 TInt iMaxRxPacketSize; |
109 |
105 |
110 private: |
106 private: |
111 // Flow control flags |
107 // Flow control flags |