diff -r 000000000000 -r c9bc50fca66e usbmgmt/usbmgrtest/t_charging_emu/inc/CUsbBatteryChargingTestPlugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/usbmgmt/usbmgrtest/t_charging_emu/inc/CUsbBatteryChargingTestPlugin.h Tue Feb 02 02:02:59 2010 +0200 @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2005-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: +* +*/ + +/** + @file + @internalComponent +*/ + +#ifndef USBBATTERYCHARGINGTESTPLUGIN_H +#define USBBATTERYCHARGINGTESTPLUGIN_H + +#include +#include +#define __D32USBC_H__ // ensure that d32usbc is ignored + +#define private protected + +#include + + +// define extension of the plugin, which includes an API to query the plugin state, etc. + +class TPluginTestInfo + { +public: + TUint iAvailableMilliAmps; + TInt iPluginState; + TUsbDeviceState iDeviceState; + TUsbBatteryChargingUserSetting iUserSetting; + TInt iCurrentIndexRequested; + TUint iRequestedCurrentValue; + }; + +class MUsbBatteryChargingTestPluginInterface2 + { +public: + virtual void GetPluginInfo(TPluginTestInfo& aInfo) = 0; + }; + +const TUid KUidUsbBatteryChargingTestPluginInterface2 = {0x1020DEA6}; + +class CUsbBatteryChargingTestPlugin : public CUsbBatteryChargingPlugin, + public MUsbBatteryChargingTestPluginInterface2 + { +public: + static CUsbBatteryChargingTestPlugin* NewL(MUsbmanExtensionPluginObserver& aObserver); + CUsbBatteryChargingTestPlugin(MUsbmanExtensionPluginObserver& aObserver); + void GetPluginInfo(TPluginTestInfo& aInfo); + TAny* GetInterface(TUid aUid); + }; + + +#endif // USBBATTERYCHARGINGTESTPLUGIN_H