diff -r 21625e5de155 -r 93c0009bd947 usbmgmt/usbmgrtest/t_usb_charging/inc/usbchargingarmtest.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/usbmgmt/usbmgrtest/t_usb_charging/inc/usbchargingarmtest.h Thu Sep 16 12:03:29 2010 +0800 @@ -0,0 +1,66 @@ +/* +* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef __USBCHARGINGARM_H__ +#define __USBCHARGINGARM_H__ + +#include +#include +#include +#include +#include + +#include "testbase.h" + +class CUsbChargingCurrentWatcher; +class CUsbStateWatcher; +/** +*/ +class CUsbChargingArmTest : public CTestBase + { +public: + static CTestBase* NewL(MTestManager& aManager); + ~CUsbChargingArmTest(); + void ShowUsbChargingValue(TPublishedUsbChargingInfo& aValue); + void ShowUsbDeviceState(TUsbDeviceState aDeviceState); + inline RUsb& Usb(); + +private: + CUsbChargingArmTest(MTestManager& aManager); + void ConstructL(); + void ShowChargingType(TUsbChargingPortType aChargingType); + void ShowConnStatus(TUsbConnectionStatus aStatus); + + int StartMassStorage(); + +private: // from CTestBase + void ProcessKeyL(TKeyCode aKeyCode); + void DisplayTestSpecificMenu(); + +private: // owned + RUsb iUsbMan; + CUsbChargingCurrentWatcher* iChargingCurrentWatcher; + CUsbStateWatcher* iUsbStateWatcher; + RFs iFs; + }; + +inline RUsb& CUsbChargingArmTest::Usb() + { + return iUsbMan; + } + +#endif // __USBCHARGINGARM_H__