telephonyprotocols/rawipnif/inc/BcaController.h
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-2009 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"
    29 #include "Constants.h"
    30 #include "Constants.h"
    30 
    31 
    31 #ifdef RAWIP_HEADER_APPENDED_TO_PACKETS
    32 #ifdef RAWIP_HEADER_APPENDED_TO_PACKETS
    32 #include "IPTagHeader.h"
    33 #include "IPTagHeader.h"
    33 #endif // RAWIP_HEADER_APPENDED_TO_PACKETS
    34 #endif // RAWIP_HEADER_APPENDED_TO_PACKETS
       
    35 
       
    36 class CBttLogger;
    34 
    37 
    35 /** 
    38 /** 
    36 @internalComponent 
    39 @internalComponent 
    37 */	
    40 */	
    38 class CBcaController : public CBase
    41 class CBcaController : public CBase
    39 	{
    42 	{
    40 public:
    43 public:
    41 	CBcaController(MControllerObserver& aObserver);
    44 	CBcaController(MControllerObserver& aObserver, CBttLogger* aTheLogger);
    42 	void BaseConstructL();
    45 	void BaseConstructL();
    43 	~CBcaController();
    46 	~CBcaController();
    44 
    47 
    45 public: // Flow Control
    48 public: // Flow Control
    46 	void UpdateInternalFlowFlag(TFlowControl aValue);
    49 	void UpdateInternalFlowFlag(TFlowControl aValue);
    98 	void EmptySendQueue();
   101 	void EmptySendQueue();
    99 	
   102 	
   100 private: // Unowned data.
   103 private: // Unowned data.
   101     MControllerObserver& iObserver;
   104     MControllerObserver& iObserver;
   102 protected:
   105 protected:
       
   106 	CBttLogger* iTheLogger;
   103 	TInt iMaxTxPacketSize;
   107 	TInt iMaxTxPacketSize;
   104 	TInt iMaxRxPacketSize;
   108 	TInt iMaxRxPacketSize;
   105 	
   109 	
   106 private:
   110 private:
   107 	// Flow control flags
   111 	// Flow control flags