kerneltest/f32test/shostmassstorage/msman/inc/cusbhostao.h
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 // Copyright (c) 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 the License "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 #ifndef CUSBHOSTAO_H
       
    18 #define CUSBHOSTAO_H
       
    19 
       
    20 class MUsbHostBusEventObserver
       
    21     {
       
    22 public:
       
    23     virtual void ProcessBusEventL() = 0;
       
    24     };
       
    25 
       
    26 class CUsbHostAo: public CActive
       
    27     {
       
    28 public:
       
    29 	static CUsbHostAo* NewL(RUsbHubDriver& aHubDriver,
       
    30                             RUsbHubDriver::TBusEvent& aEvent,
       
    31                             MUsbHostBusEventObserver& aObserver);
       
    32 	~CUsbHostAo();
       
    33 protected:
       
    34 	CUsbHostAo(RUsbHubDriver& aHubDriver,
       
    35                RUsbHubDriver::TBusEvent& aEvent,
       
    36                MUsbHostBusEventObserver& aObserver);
       
    37 	void ConstructL();
       
    38 
       
    39 public:
       
    40     void Wait();
       
    41 
       
    42 protected:
       
    43     virtual void DoCancel();
       
    44     virtual void RunL();
       
    45 	virtual TInt RunError(TInt aError);
       
    46 
       
    47 protected:
       
    48     RUsbHubDriver& iHubDriver;
       
    49     RUsbHubDriver::TBusEvent& iEvent;
       
    50 
       
    51     MUsbHostBusEventObserver& iObserver;
       
    52     };
       
    53 
       
    54 
       
    55 
       
    56 
       
    57 #endif
       
    58 
       
    59