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