bthci/hci2implementations/hctls/usb_original/hctl/inc/controllermanager.h
changeset 27 83036355c0f3
equal deleted inserted replaced
4:28479eeba3fb 27:83036355c0f3
       
     1 // Copyright (c) 2007-2010 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 HOSTCONTROLLERMANAGER_H
       
    22 #define HOSTCONTROLLERMANAGER_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <bluetooth/hci/hctlpowerinterface.h>
       
    26 
       
    27 class MControllerStateObserver;
       
    28 class CHCTLUsbOriginal;
       
    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 NONSHARABLE_CLASS(CControllerManager)
       
    36 	: public CBase
       
    37 	, public MHCTLPowerInterface
       
    38 	{
       
    39 public:
       
    40 	static CControllerManager* NewL(CHCTLUsbOriginal& aHctl);
       
    41 	~CControllerManager();
       
    42 	
       
    43 	void SetControllerStateObserver(MControllerStateObserver& aControllerStateObserver);
       
    44 	void HardReset();
       
    45 	
       
    46 private:
       
    47 	CControllerManager(CHCTLUsbOriginal& aHctl);
       
    48 	
       
    49 private: // from MHCTLPowerInterface
       
    50 	virtual TInt MhpiGetPower(TBTPowerState& aState);
       
    51 	virtual TInt MhpiSetPower(const TBTPowerState aState);
       
    52 	
       
    53 private:
       
    54 	MControllerStateObserver* iControllerStateObserver;
       
    55 	CHCTLUsbOriginal& iHctl;
       
    56 	};
       
    57 
       
    58 #endif // HOSTCONTROLLERMANAGER_H