usbengines/usbotgwatcher/inc/cusbstatehostabase.h
branchRCL_3
changeset 65 a44cdf4b4bf0
parent 64 8ecef05bbada
child 21 ff9df6630274
equal deleted inserted replaced
64:8ecef05bbada 65:a44cdf4b4bf0
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3  * All rights reserved.
     4 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     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:  Implementation of the conctet state
       
    15  *
     8  *
    16 */
     9  * Initial Contributors:
    17 
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Implementation of the conctet state
       
    15  *
       
    16  */
    18 
    17 
    19 #ifndef C_USBSTATEHOSTABASE_H
    18 #ifndef C_USBSTATEHOSTABASE_H
    20 #define C_USBSTATEHOSTABASE_H
    19 #define C_USBSTATEHOSTABASE_H
    21 
    20 
    22 #include "cusbstate.h"
    21 #include "cusbstate.h"
    39 protected:
    38 protected:
    40     /**
    39     /**
    41      * default construction
    40      * default construction
    42      * @param aWatcher owner
    41      * @param aWatcher owner
    43      */
    42      */
    44     CUsbStateHostABase(CUsbOtgWatcher* aWatcher);
    43     CUsbStateHostABase(CUsbOtgWatcher& aWatcher);
    45 
    44 
    46     /**
    45     /**
    47      * second phase construction
    46      * second phase construction
    48      */
    47      */
    49     void ConstructL();
    48     void ConstructL();
    50 
    49 
    51     //from CUsbState
       
    52     // From VBus observer
    50     // From VBus observer
    53     /**
    51     /**
    54      * VBus down
    52      * VBus down
    55      */
    53      */
    56     virtual void VBusDownL();
    54     virtual void VBusDownL();
    63 
    61 
    64     /**
    62     /**
    65      * VBus error happen
    63      * VBus error happen
    66      */
    64      */
    67     virtual void AVBusErrorL();
    65     virtual void AVBusErrorL();
       
    66 
       
    67     /**
       
    68      * VBus error happen
       
    69      */
       
    70     virtual void AHostL();
       
    71 
       
    72     /**
       
    73      * VBus error happen
       
    74      */
       
    75     virtual void APeripheralL();
    68 
    76 
    69     // From bus activity observer
    77     // From bus activity observer
    70     /**
    78     /**
    71      * Bus is in idle
    79      * Bus is in idle
    72      */
    80      */
    81      * Message received
    89      * Message received
    82      * @param aMessage message id
    90      * @param aMessage message id
    83      */
    91      */
    84     virtual void MessageNotificationReceivedL(TInt aMessage);
    92     virtual void MessageNotificationReceivedL(TInt aMessage);
    85     /**
    93     /**
       
    94      * SRP request received
       
    95      */
       
    96     virtual void SrpReceivedL();
       
    97     /**
    86      * Connected to hub in wrong level 
    98      * Connected to hub in wrong level 
    87      */
    99      */
    88     virtual void BadHubPositionL();
   100     virtual void BadHubPositionL();
    89     /**
   101     /**
    90      * VBus error happened
   102      * VBus error happened