usbengines/usbotgwatcher/inc/cusbbusactivityobserver.h
branchRCL_3
changeset 20 a15c582fbf97
parent 13 7068aba64af5
child 21 ff9df6630274
equal deleted inserted replaced
13:7068aba64af5 20: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:  Monitors USB activity
       
    15  *
     8  *
    16 */
     9  * Initial Contributors:
    17 
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Monitors USB activity
       
    15  *
       
    16  */
    18 
    17 
    19 #ifndef C_USBBUSACTIVITYOBSERVER_H
    18 #ifndef C_USBBUSACTIVITYOBSERVER_H
    20 #define C_USBBUSACTIVITYOBSERVER_H
    19 #define C_USBBUSACTIVITYOBSERVER_H
    21 
    20 
    22 #include <e32base.h>
    21 #include <e32base.h>
    37 
    36 
    38     /**
    37     /**
    39      * Called when when bus is in Idle, and some activity appears on the bus
    38      * Called when when bus is in Idle, and some activity appears on the bus
    40      */
    39      */
    41     virtual void BusActiveL() = 0;
    40     virtual void BusActiveL() = 0;
    42     
    41 
    43     /**
    42     /**
    44       * Called when when error happened
    43      * Called when when error happened
    45       * @param aError errorcode
    44      * @param aError errorcode
    46       */
    45      */
    47      virtual void BusActivityErrorL(TInt aError) = 0;   
    46     virtual void BusActivityErrorL(TInt aError) = 0;
    48     
    47 
    49     };
    48     };
    50 
    49 
    51 /**
    50 /**
    52  *  Class observes USB OTG State property
    51  *  Class observes USB OTG State property
    53  *
    52  *
   124 private:
   123 private:
   125     // data
   124     // data
   126 
   125 
   127     /**
   126     /**
   128      * The observer reports state changes to own observers
   127      * The observer reports state changes to own observers
   129      * Owns
   128      * Not owns
   130      */
   129      */
   131     RPointerArray<MUsbBusActivityObserver> iObservers;
   130     RPointerArray<MUsbBusActivityObserver> iObservers;
   132 
   131 
   133     /**
   132     /**
   134      * The observer observes property change
   133      * The observer observes property change