diff -r 6b1d113cdff3 -r 6638e7f4bd8f telephonyprotocols/rawipnif/rawipnif2/inc/BcaController.h --- a/telephonyprotocols/rawipnif/rawipnif2/inc/BcaController.h Mon May 03 13:37:20 2010 +0300 +++ b/telephonyprotocols/rawipnif/rawipnif2/inc/BcaController.h Thu May 06 15:10:38 2010 +0100 @@ -1,98 +1,98 @@ -// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// Defines the interface to the BCA. -// -// - -/** - @file -*/ - -#ifndef BCACONTROLLER_H -#define BCACONTROLLER_H - -#include -#include -#include -#include -#include "RawIP2Flow.h" - -using namespace BasebandChannelAdaptation2; - -class CBttLogger; - -void Panic(TRawIP2NifPanic aPanic); -typedef MBca2Factory* (*TNewBca2FactoryL)(); - -/** class used to load, open and shutdown the BCA. -@internalComponent -*/ -class CBcaController : public CActive - { -public: - CBcaController(CRawIP2Flow& aRawIPFlow, CBttLogger* aTheLogger); - ~CBcaController(); - - static CBcaController* NewL(CRawIP2Flow& aRawIPFlow,CBttLogger* aTheLogger); - void ConstructL(); -public: - void StartLoadL(const CBCAProvision* aBCAProvisionConfig,MUpperControl* aControl, - MUpperDataReceiver* aData); - void Stop(TInt aError); - inline MBca2* Bca(); - -#ifdef WCDMA_STUB - inline TUint Nsapi() { return KErrNotFound; } -#endif - -protected: - // Inherited from CActive. - virtual void RunL(); - virtual void DoCancel(); -private: - CBttLogger* iTheLogger; // Unowned data. -private: - enum TBcaState - { - /** Bca ready to start */ - EIdling, - /** Bca IAP is set*/ - EIAPSet - }; - -private: - - /** BCA owned by NIF*/ - MBca2* iMBca; - /** used to load library*/ - TAutoClose iBcaDll; - /** BCA state*/ - TBcaState iState; - - CRawIP2Flow& iRawIPFlow; - MUpperControl* iUpperControl; //BasebandChannelAdaptation2 - MUpperDataReceiver* iUpperDataReceiver; //BasebandChannelAdaptation2 - const CBCAProvision* iBCAProvisionConfig; // for obtaining pond - MBca2::TBcaParams* iBcaParams; - - }; - -/** returns the BCA pointer. */ -inline MBca2* CBcaController::Bca() - { - return iMBca; - } - -#endif // BCAIOCONTROLLER_H - +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Defines the interface to the BCA. +// +// + +/** + @file +*/ + +#ifndef BCACONTROLLER_H +#define BCACONTROLLER_H + +#include +#include +#include +#include +#include "RawIP2Flow.h" + +using namespace BasebandChannelAdaptation2; + +class CBttLogger; + +void Panic(TRawIP2NifPanic aPanic); +typedef MBca2Factory* (*TNewBca2FactoryL)(); + +/** class used to load, open and shutdown the BCA. +@internalComponent +*/ +class CBcaController : public CActive + { +public: + CBcaController(CRawIP2Flow& aRawIPFlow, CBttLogger* aTheLogger); + ~CBcaController(); + + static CBcaController* NewL(CRawIP2Flow& aRawIPFlow,CBttLogger* aTheLogger); + void ConstructL(); +public: + void StartLoadL(const CBCAProvision* aBCAProvisionConfig,MUpperControl* aControl, + MUpperDataReceiver* aData); + void Stop(TInt aError); + inline MBca2* Bca(); + +#ifdef WCDMA_STUB + inline TUint Nsapi() { return KErrNotFound; } +#endif + +protected: + // Inherited from CActive. + virtual void RunL(); + virtual void DoCancel(); +private: + CBttLogger* iTheLogger; // Unowned data. +private: + enum TBcaState + { + /** Bca ready to start */ + EIdling, + /** Bca IAP is set*/ + EIAPSet + }; + +private: + + /** BCA owned by NIF*/ + MBca2* iMBca; + /** used to load library*/ + TAutoClose iBcaDll; + /** BCA state*/ + TBcaState iState; + + CRawIP2Flow& iRawIPFlow; + MUpperControl* iUpperControl; //BasebandChannelAdaptation2 + MUpperDataReceiver* iUpperDataReceiver; //BasebandChannelAdaptation2 + const CBCAProvision* iBCAProvisionConfig; // for obtaining pond + MBca2::TBcaParams* iBcaParams; + + }; + +/** returns the BCA pointer. */ +inline MBca2* CBcaController::Bca() + { + return iMBca; + } + +#endif // BCAIOCONTROLLER_H +