usbengines/usbotgwatcher/inc/cusbotgstateobserver.h
branchRCL_3
changeset 6 a15c582fbf97
parent 5 7068aba64af5
child 7 ff9df6630274
equal deleted inserted replaced
5:7068aba64af5 6:a15c582fbf97
     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:  Observes OTG states
       
    15  *
     8  *
    16 */
     9  * Initial Contributors:
    17 
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Observes OTG states
       
    15  *
       
    16  */
    18 
    17 
    19 #ifndef C_USBOTGSTATEOBSERVER_H
    18 #ifndef C_USBOTGSTATEOBSERVER_H
    20 #define C_USBOTGSTATEOBSERVER_H
    19 #define C_USBOTGSTATEOBSERVER_H
    21 
    20 
    22 #include <e32base.h>
    21 #include <e32base.h>
    62 
    61 
    63     /**
    62     /**
    64      * Local device is B, and get to Host state
    63      * Local device is B, and get to Host state
    65      */
    64      */
    66     virtual void BHostL() = 0;
    65     virtual void BHostL() = 0;
    67     
    66 
    68     /**
    67     /**
    69      * Error handler
    68      * Error handler
    70      * @param aError error code
    69      * @param aError error code
    71      */
    70      */
    72     virtual void OtgStateErrorL(TInt aError) = 0;    
    71     virtual void OtgStateErrorL(TInt aError) = 0;
    73     };
    72     };
    74 
    73 
    75 /**
    74 /**
    76  *  Class observes OTG State property
    75  *  Class observes OTG State property
    77  *
    76  *
   149 private:
   148 private:
   150     // data
   149     // data
   151 
   150 
   152     /**
   151     /**
   153      * The observer reports state changes to own observers
   152      * The observer reports state changes to own observers
   154      * Owns
   153      * Not owns
   155      */
   154      */
   156     RPointerArray<MUsbOtgStateObserver> iObservers;
   155     RPointerArray<MUsbOtgStateObserver> iObservers;
   157 
   156 
   158     /**
   157     /**
   159      * The observer observes property change
   158      * The observer observes property change