usbengines/usbotgwatcher/inc/cusbstatehostdelayhandle.h
changeset 34 7858bc6ead78
parent 31 dfdd8240f7c8
child 35 9d8b04ca6939
equal deleted inserted replaced
31:dfdd8240f7c8 34:7858bc6ead78
     1 /*
       
     2  * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Implements concrete state
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef C_USBSTATEHOSTDELAYHANDLE_H
       
    19 #define C_USBSTATEHOSTDELAYHANDLE_H
       
    20 
       
    21 #include "cusbstatehosthandle.h"
       
    22 
       
    23 class CUsbOtgWatcher;
       
    24 
       
    25 /**
       
    26  *  problem handling, vbus not dropping
       
    27  *
       
    28  */
       
    29 NONSHARABLE_CLASS( CUsbStateHostDelayHandle ) : public CUsbStateHostHandle
       
    30     {
       
    31     friend class CtUsbOtgWatcher;
       
    32     friend class CUsbOtgWatcher;
       
    33 
       
    34 public:
       
    35 
       
    36     /**
       
    37      * Destructor.
       
    38      */
       
    39     virtual ~CUsbStateHostDelayHandle();
       
    40 
       
    41 protected:
       
    42 
       
    43     // From VBus observer
       
    44     /**
       
    45      * VBus up
       
    46      */
       
    47     virtual void VBusUpL();
       
    48 
       
    49     // From Host Event notification observer
       
    50     /**
       
    51      * Device is attached
       
    52      * @param aInfo Device event data
       
    53      */
       
    54     virtual void DeviceAttachedL(TDeviceEventInformation aInfo);
       
    55 
       
    56     /**
       
    57      * Default constructor
       
    58      * @param aWatcher owner
       
    59      */
       
    60     CUsbStateHostDelayHandle(CUsbOtgWatcher& aWatcher);
       
    61 
       
    62     /**
       
    63      * 2nd phase construction
       
    64      */
       
    65     void ConstructL();
       
    66 
       
    67     // data
       
    68 
       
    69 private:
       
    70     };
       
    71 
       
    72 #endif //  C_USBSTATEHOSTDELAYHANDLE_H