telephonyprotocols/rawipnif/rawipnif2/inc/BcaController.h
branchRCL_3
changeset 19 630d2f34d719
parent 0 3553901f7fa8
child 20 07a122eea281
equal deleted inserted replaced
18:17af172ffa5f 19:630d2f34d719
     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".
    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;
       
    34 
    33 
    35 void Panic(TRawIP2NifPanic aPanic);
    34 void Panic(TRawIP2NifPanic aPanic);
    36 typedef MBca2Factory* (*TNewBca2FactoryL)();
    35 typedef MBca2Factory* (*TNewBca2FactoryL)();
    37 
    36 
    38 /** class used to load, open and shutdown the BCA.
    37 /** class used to load, open and shutdown the BCA.
    39 @internalComponent 
    38 @internalComponent 
    40 */
    39 */
    41 class CBcaController : public CActive
    40 class CBcaController : public CActive
    42 	{
    41 	{
    43 public:
    42 public:
    44 	CBcaController(CRawIP2Flow& aRawIPFlow, CBttLogger* aTheLogger);	
    43 	CBcaController(CRawIP2Flow& aRawIPFlow);	
    45 	~CBcaController();
    44 	~CBcaController();
    46 
    45 
    47 	static CBcaController* NewL(CRawIP2Flow& aRawIPFlow,CBttLogger* aTheLogger);
    46 	static CBcaController* NewL(CRawIP2Flow& aRawIPFlow);
    48 	void ConstructL();
    47 	void ConstructL();
    49 public:
    48 public:
    50 	void StartLoadL(const CBCAProvision* aBCAProvisionConfig,MUpperControl* aControl, 
    49 	void StartLoadL(const CBCAProvision* aBCAProvisionConfig,MUpperControl* aControl, 
    51 			MUpperDataReceiver* aData);
    50 			MUpperDataReceiver* aData);
    52 	void Stop(TInt aError);
    51 	void Stop(TInt aError);
    58     
    57     
    59 protected:
    58 protected:
    60 	// Inherited from CActive.
    59 	// Inherited from CActive.
    61 	virtual void RunL();
    60 	virtual void RunL();
    62 	virtual void DoCancel();	
    61 	virtual void DoCancel();	
    63 private: 
    62 
    64 	CBttLogger* iTheLogger; // Unowned data.
       
    65 private:
    63 private:
    66 		enum TBcaState
    64 		enum TBcaState
    67 		{
    65 		{
    68 		/** Bca ready to start */
    66 		/** Bca ready to start */
    69 		EIdling,
    67 		EIdling,