bthci/hci2implementations/hctls/brcmh4/inc/controllermanager.h
branchbroadcom_h4
changeset 37 f53839ff73b7
equal deleted inserted replaced
4:28479eeba3fb 37:f53839ff73b7
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef CONTROLLERMANAGER_H
       
    22 #define CONTROLLERMANAGER_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <bluetooth/hci/hctlpowerinterface.h>
       
    26 
       
    27 class MControllerStateObserver;
       
    28 class CHCTLBcmH4;
       
    29 
       
    30 /**
       
    31 This is the class that implements a controller manager.
       
    32 This is a class which provides a framework for managing the
       
    33 power management and reset of the host controller.
       
    34 */
       
    35 
       
    36 NONSHARABLE_CLASS(CControllerManager) : public CBase, public MHCTLPowerInterface
       
    37     {
       
    38 public:
       
    39     static CControllerManager* NewL(CHCTLBcmH4& aHctl);
       
    40 
       
    41 	void SetControllerStateObserver(MControllerStateObserver& aControllerStateObserver);
       
    42 	void HardReset();
       
    43 
       
    44 private:
       
    45 	// From MHCTLPowerInterface
       
    46 	virtual TInt MhpiGetPower(TBTPowerState& aState);
       
    47 	virtual TInt MhpiSetPower(const TBTPowerState aState);
       
    48 
       
    49     CControllerManager(CHCTLBcmH4& aHctl);
       
    50 
       
    51 private:
       
    52     MControllerStateObserver* iControllerStateObserver;
       
    53     CHCTLBcmH4& iHctl;
       
    54     };
       
    55 
       
    56 #endif // CONTROLLERMANAGER_H