usbengines/usbotgwatcher/inc/cusbstatehostundefined.h
branchRCL_3
changeset 7 ff9df6630274
parent 6 a15c582fbf97
equal deleted inserted replaced
6:a15c582fbf97 7:ff9df6630274
     1 /*
     1 /*
     2  * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2008 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".
    17 
    17 
    18 #ifndef C_USBSTATEHOSTUNDEFINED_H
    18 #ifndef C_USBSTATEHOSTUNDEFINED_H
    19 #define C_USBSTATEHOSTUNDEFINED_H
    19 #define C_USBSTATEHOSTUNDEFINED_H
    20 
    20 
    21 #include "cusbstatehostabase.h"
    21 #include "cusbstatehostabase.h"
       
    22 
    22 class CUsbOtgWatcher;
    23 class CUsbOtgWatcher;
    23 /**
    24 /**
    24  *  This class implements behaviour in undefined state (when host)
    25  *  This class implements behaviour in undefined state (when host)
    25  *
    26  *
    26  */
    27  */
    54     /**
    55     /**
    55      * This function is needed to find a real state by id
    56      * This function is needed to find a real state by id
    56      * This might be used in switching states in watcher. New state object searched by its id
    57      * This might be used in switching states in watcher. New state object searched by its id
    57      * @return Id
    58      * @return Id
    58      */
    59      */
    59     virtual TUsbStateIds Id();
    60     TUsbStateIds Id();
    60 
    61 
    61     // From VBus observer
    62     // From VBus observer
    62     /**
    63     /**
    63      * VBus down
    64      * VBus down
    64      */
    65      */
    65     virtual void VBusDownL();
    66     void VBusDownL();
    66 
    67 
    67     /**
    68     /**
    68      * VBus UP
    69      * VBus UP
    69      */
    70      */
    70     virtual void VBusUpL();
    71     void VBusUpL();
    71 
    72 
    72     /**
    73     /**
    73      * VBus error
    74      * VBus error
    74      */
    75      */
    75     virtual void VBusErrorL();
    76     void VBusErrorL();
    76 
    77 
    77     /**
    78     /**
    78      * AVBus Error
    79      * AVBus Error
    79      */
    80      */
    80     virtual void AVBusErrorL();
    81     void AVBusErrorL();
    81 
    82 
    82     /**
    83     /**
    83      * Became to Idle when B
    84      * Became to Idle when B
    84      */
    85      */
    85     virtual void BIdleL();
    86     void BIdleL();
    86 
    87 
    87     /**
    88     /**
    88      * Became to Peripheral when B
    89      * Became to Peripheral when B
    89      */
    90      */
    90     virtual void BPeripheralL();
    91     void BPeripheralL();
    91 
    92 
    92     // From Host Event notification observer
    93     // From Host Event notification observer
       
    94     /**
       
    95      * Device is attached
       
    96      * @param aInfo Device event data
       
    97      */
       
    98     void DeviceAttachedL(TDeviceEventInformation aInfo);
       
    99 
    93     /**
   100     /**
    94      * Device is detached
   101      * Device is detached
    95      * @param aInfo Device event data
   102      * @param aInfo Device event data
    96      */
   103      */
    97     virtual void DeviceDetachedL(TDeviceEventInformation aInfo);
   104     void DeviceDetachedL(TDeviceEventInformation aInfo);
       
   105 
       
   106     /**
       
   107      * Drivers successfully loaded
       
   108      * @param aInfo Device event data
       
   109      */
       
   110     void DriverLoadSuccessL(TDeviceEventInformation aInfo);
       
   111 
       
   112     /**
       
   113      * Drivers loaded partially
       
   114      * @param aInfo Device event data
       
   115      */
       
   116     void DriverLoadPartialSuccessL(TDeviceEventInformation aInfo);
       
   117     /**
       
   118      * Drivers loading failed
       
   119      * @param aInfo Device event data
       
   120      */
       
   121     void DriverLoadFailureL(TDeviceEventInformation aInfo);
    98 
   122 
    99     // From message notification observer
   123     // From message notification observer
   100     /**
   124     /**
   101      * Message received
   125      * Message received
   102      * @param aMessage message id
   126      * @param aMessage message id
   103      */
   127      */
   104     virtual void MessageNotificationReceivedL(TInt aMessage);
   128     void MessageNotificationReceivedL(TInt aMessage);
       
   129 
   105     /**
   130     /**
   106      * SRP request received
   131      * SRP request received
   107      */
   132      */
   108     virtual void SrpReceivedL();
   133     void SrpReceivedL();
       
   134 
   109     /**
   135     /**
   110      * Connected to hub in wrong level 
   136      * Connected to hub in wrong level 
   111      */
   137      */
   112     virtual void BadHubPositionL();
   138     void BadHubPositionL();
       
   139 
   113     /**
   140     /**
   114      * Session request received
   141      * Session request received
   115      */
   142      */
   116     virtual void SessionRequestedL();
   143     void SessionRequestedL();
   117 
   144 
   118 private:
   145 private:
   119     // data
   146     // data
   120     };
   147     };
   121 
   148