usbengines/usbotgwatcher/inc/cusbidpinobserver.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:  Monitors ID pin change
       
    15  *
     8  *
    16 */
     9  * Initial Contributors:
    17 
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Monitors ID pin change
       
    15  *
       
    16  */
    18 
    17 
    19 #ifndef C_USBIDPINOBSERVER_H
    18 #ifndef C_USBIDPINOBSERVER_H
    20 #define C_USBIDPINOBSERVER_H
    19 #define C_USBIDPINOBSERVER_H
    21 
    20 
    22 #include <e32base.h>
    21 #include <e32base.h>
    37 
    36 
    38     /**
    37     /**
    39      * IdPin appeared
    38      * IdPin appeared
    40      */
    39      */
    41     virtual void IdPinOnL() = 0;
    40     virtual void IdPinOnL() = 0;
    42     
    41 
    43     /**
    42     /**
    44      * IdPin error
    43      * IdPin error
    45      * @param aError error code
    44      * @param aError error code
    46      */
    45      */
    47     virtual void IdPinErrorL(TInt aError) = 0;
    46     virtual void IdPinErrorL(TInt aError) = 0;
    48     
       
    49 
    47 
    50     };
    48     };
    51 
    49 
    52 /**
    50 /**
    53  *  Class observes ID-PIN property
    51  *  Class observes ID-PIN property
    65     /**
    63     /**
    66      * Two-phased constructor.
    64      * Two-phased constructor.
    67      * @return instance of the objects of this class
    65      * @return instance of the objects of this class
    68      */
    66      */
    69     static CUsbIdPinObserver* NewL();
    67     static CUsbIdPinObserver* NewL();
    70     
    68 
    71     /**
    69     /**
    72      * Destructor.
    70      * Destructor.
    73      */
    71      */
    74     virtual ~CUsbIdPinObserver();
    72     virtual ~CUsbIdPinObserver();
    75 
    73 
   126 private:
   124 private:
   127     // data
   125     // data
   128 
   126 
   129     /**
   127     /**
   130      *  The observer reports state changes to its own observers
   128      *  The observer reports state changes to its own observers
   131      * Own
   129      * Not own
   132      */
   130      */
   133     RPointerArray<MUsbIdPinObserver> iObservers;
   131     RPointerArray<MUsbIdPinObserver> iObservers;
   134 
   132 
   135     /**
   133     /**
   136      * The observer observes property change
   134      * The observer observes property change