telephonyprotocols/rawipnif/rawipnif2/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".
    28 #include <networking/bca2factory.h>
    28 #include <networking/bca2factory.h>
    29 #include "RawIP2Flow.h"
    29 #include "RawIP2Flow.h"
    30 
    30 
    31 using namespace BasebandChannelAdaptation2;
    31 using namespace BasebandChannelAdaptation2;
    32 
    32 
       
    33 class CBttLogger;
    33 
    34 
    34 void Panic(TRawIP2NifPanic aPanic);
    35 void Panic(TRawIP2NifPanic aPanic);
    35 typedef MBca2Factory* (*TNewBca2FactoryL)();
    36 typedef MBca2Factory* (*TNewBca2FactoryL)();
    36 
    37 
    37 /** class used to load, open and shutdown the BCA.
    38 /** class used to load, open and shutdown the BCA.
    38 @internalComponent 
    39 @internalComponent 
    39 */
    40 */
    40 class CBcaController : public CActive
    41 class CBcaController : public CActive
    41 	{
    42 	{
    42 public:
    43 public:
    43 	CBcaController(CRawIP2Flow& aRawIPFlow);	
    44 	CBcaController(CRawIP2Flow& aRawIPFlow, CBttLogger* aTheLogger);	
    44 	~CBcaController();
    45 	~CBcaController();
    45 
    46 
    46 	static CBcaController* NewL(CRawIP2Flow& aRawIPFlow);
    47 	static CBcaController* NewL(CRawIP2Flow& aRawIPFlow,CBttLogger* aTheLogger);
    47 	void ConstructL();
    48 	void ConstructL();
    48 public:
    49 public:
    49 	void StartLoadL(const CBCAProvision* aBCAProvisionConfig,MUpperControl* aControl, 
    50 	void StartLoadL(const CBCAProvision* aBCAProvisionConfig,MUpperControl* aControl, 
    50 			MUpperDataReceiver* aData);
    51 			MUpperDataReceiver* aData);
    51 	void Stop(TInt aError);
    52 	void Stop(TInt aError);
    57     
    58     
    58 protected:
    59 protected:
    59 	// Inherited from CActive.
    60 	// Inherited from CActive.
    60 	virtual void RunL();
    61 	virtual void RunL();
    61 	virtual void DoCancel();	
    62 	virtual void DoCancel();	
    62 
    63 private: 
       
    64 	CBttLogger* iTheLogger; // Unowned data.
    63 private:
    65 private:
    64 		enum TBcaState
    66 		enum TBcaState
    65 		{
    67 		{
    66 		/** Bca ready to start */
    68 		/** Bca ready to start */
    67 		EIdling,
    69 		EIdling,