equal
deleted
inserted
replaced
31 #include "MControllerObserver.h" |
31 #include "MControllerObserver.h" |
32 #include "Constants.h" |
32 #include "Constants.h" |
33 |
33 |
34 using namespace BasebandChannelAdaptation; |
34 using namespace BasebandChannelAdaptation; |
35 |
35 |
36 class CBttLogger; |
|
37 class CSender; |
36 class CSender; |
38 class CReceiver; |
37 class CReceiver; |
39 class CBcaControl; |
38 class CBcaControl; |
40 |
39 |
41 /** |
40 /** |
55 @internalComponent |
54 @internalComponent |
56 */ |
55 */ |
57 class CBcaIoController : public CBase |
56 class CBcaIoController : public CBase |
58 { |
57 { |
59 public: |
58 public: |
60 static CBcaIoController* NewL(MControllerObserver& aObserver, CBttLogger* aTheLogger); |
59 static CBcaIoController* NewL(MControllerObserver& aObserver); |
61 ~CBcaIoController(); |
60 ~CBcaIoController(); |
62 |
61 |
63 void StartL(); |
62 void StartL(); |
64 void Stop(TInt aError = KErrNone); |
63 void Stop(TInt aError = KErrNone); |
65 ESock::MLowerDataSender::TSendResult Send(RMBufChain& aPdu); |
64 ESock::MLowerDataSender::TSendResult Send(RMBufChain& aPdu); |
89 void AddHeader(TDes8& aDes); |
88 void AddHeader(TDes8& aDes); |
90 TUint16 RemoveHeader(RMBufChain& aPdu); |
89 TUint16 RemoveHeader(RMBufChain& aPdu); |
91 #endif // RAWIP_HEADER_APPENDED_TO_PACKETS |
90 #endif // RAWIP_HEADER_APPENDED_TO_PACKETS |
92 |
91 |
93 protected: |
92 protected: |
94 CBttLogger* iTheLogger; |
|
95 TUint iMaxTxPacketSize; |
93 TUint iMaxTxPacketSize; |
96 TUint iMaxRxPacketSize; |
94 TUint iMaxRxPacketSize; |
97 |
95 |
98 private: |
96 private: |
99 |
97 |
100 CBcaIoController(MControllerObserver& aObserver, CBttLogger* aTheLogger); |
98 CBcaIoController(MControllerObserver& aObserver); |
101 void ConstructL(); |
99 void ConstructL(); |
102 |
100 |
103 enum TSendState |
101 enum TSendState |
104 { |
102 { |
105 EIdle, |
103 EIdle, |
254 @internalComponent |
252 @internalComponent |
255 */ |
253 */ |
256 class CBcaControl : public CActive |
254 class CBcaControl : public CActive |
257 { |
255 { |
258 public: |
256 public: |
259 CBcaControl(CBcaIoController& aObserver, CBttLogger* aTheLogger); |
257 CBcaControl(CBcaIoController& aObserver); |
260 ~CBcaControl(); |
258 ~CBcaControl(); |
261 public: |
259 public: |
262 void StartLoadL(); |
260 void StartLoadL(); |
263 void ShutdownBca(TInt aError); |
261 void ShutdownBca(TInt aError); |
264 inline MBca* Bca(); |
262 inline MBca* Bca(); |
266 // Inherited from CActive. |
264 // Inherited from CActive. |
267 virtual void RunL(); |
265 virtual void RunL(); |
268 virtual void DoCancel(); |
266 virtual void DoCancel(); |
269 private: // Unowned data. |
267 private: // Unowned data. |
270 CBcaIoController& iObserver; |
268 CBcaIoController& iObserver; |
271 CBttLogger* iTheLogger; |
|
272 private: |
269 private: |
273 enum TBcaState |
270 enum TBcaState |
274 { |
271 { |
275 /** Bca ready to start */ |
272 /** Bca ready to start */ |
276 EIdling, |
273 EIdling, |