usbmgmt/usbmgrtest/t_usb_charging/inc/usbstatewatcher.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 __USBSTATEWATCHER_H__
       
    17 #define __USBSTATEWATCHER_H__
       
    18 
       
    19 #include <e32property.h>
       
    20 #include <e32cmn.h>
       
    21 #include "usbchargingarmtest.h"
       
    22 #include "testbase.h"
       
    23 
       
    24 /**
       
    25 */
       
    26 class CUsbStateWatcher : public CActive
       
    27     {
       
    28 public:
       
    29     static CUsbStateWatcher* NewL(CUsbChargingArmTest& aUsbChargingArm);
       
    30     ~CUsbStateWatcher();
       
    31 
       
    32 private:
       
    33     CUsbStateWatcher(CUsbChargingArmTest& aUsbChargingArm);
       
    34     void ConstructL();
       
    35     
       
    36     void DoCancel();
       
    37     void RunL();
       
    38     
       
    39     void GetAndShowDeviceStateL();
       
    40 
       
    41 private:
       
    42     CUsbChargingArmTest& iUsbChargingArm;
       
    43     TUsbDeviceState     iDeviceState;    
       
    44     };
       
    45 
       
    46 #endif // __USBSTATEWATCHER_H__