usbmgmt/usbmgrtest/t_usb_charging/inc/usbchargingcurrentwatcher.h
changeset 49 93c0009bd947
child 59 bbdce6bffaad
equal deleted inserted replaced
48:21625e5de155 49:93c0009bd947
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __USBCHARGINGCURRENTWATCHER_H__
       
    17 #define __USBCHARGINGCURRENTWATCHER_H__
       
    18 
       
    19 #include <e32property.h>
       
    20 #include <e32cmn.h>
       
    21 #include "usbchargingarmtest.h"
       
    22 #include "testbase.h"
       
    23 
       
    24 /**
       
    25 */
       
    26 class CUsbChargingCurrentWatcher : public CActive
       
    27     {
       
    28 public:
       
    29     static CUsbChargingCurrentWatcher* NewL(CUsbChargingArmTest& aUsbChargingArm);
       
    30     ~CUsbChargingCurrentWatcher();
       
    31 
       
    32 private:
       
    33     CUsbChargingCurrentWatcher(CUsbChargingArmTest& aUsbChargingArm);
       
    34     void ConstructL();
       
    35     
       
    36     void DoCancel();
       
    37     void RunL();
       
    38     
       
    39     void PostAndNotifyCurrentL();
       
    40 
       
    41 private:
       
    42     RProperty           iChargingCurrentProp;  
       
    43     CUsbChargingArmTest& iUsbChargingArm;
       
    44     };
       
    45 
       
    46 #endif // __USBCHARGINGCURRENTWATCHER_H__