sl@0: // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: sl@0: #ifndef CUSBHOSTAO_H sl@0: #define CUSBHOSTAO_H sl@0: sl@0: class MUsbHostBusEventObserver sl@0: { sl@0: public: sl@0: virtual void ProcessBusEventL() = 0; sl@0: }; sl@0: sl@0: class CUsbHostAo: public CActive sl@0: { sl@0: public: sl@0: static CUsbHostAo* NewL(RUsbHubDriver& aHubDriver, sl@0: RUsbHubDriver::TBusEvent& aEvent, sl@0: MUsbHostBusEventObserver& aObserver); sl@0: ~CUsbHostAo(); sl@0: protected: sl@0: CUsbHostAo(RUsbHubDriver& aHubDriver, sl@0: RUsbHubDriver::TBusEvent& aEvent, sl@0: MUsbHostBusEventObserver& aObserver); sl@0: void ConstructL(); sl@0: sl@0: public: sl@0: void Wait(); sl@0: sl@0: protected: sl@0: virtual void DoCancel(); sl@0: virtual void RunL(); sl@0: virtual TInt RunError(TInt aError); sl@0: sl@0: protected: sl@0: RUsbHubDriver& iHubDriver; sl@0: RUsbHubDriver::TBusEvent& iEvent; sl@0: sl@0: MUsbHostBusEventObserver& iObserver; sl@0: }; sl@0: sl@0: sl@0: sl@0: sl@0: #endif sl@0: sl@0: