diff -r 000000000000 -r cec860690d41 haitest/bspsvs/suite/bsp/mmc/inc/T_MmcSDPsuDriverData.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/haitest/bspsvs/suite/bsp/mmc/inc/T_MmcSDPsuDriverData.h Tue Feb 02 01:39:10 2010 +0200 @@ -0,0 +1,69 @@ +/* +* 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: +* +*/ + + +#if (!defined __T_MMCSDPsu_DRIVER_DATA_H__) +#define __T_MMCSDPsu_DRIVER_DATA_H__ + +// User Includes +#include "T_MmcSDDriverData.h" + +/** + * Test MMCSD PowerSupply class + * + */ +class CT_MMCSDPsuDriverData : public CT_MmcSDDriverData + { +public: + /** + * Public destructor + */ + ~CT_MMCSDPsuDriverData(); + + /** + * Two phase constructor + * + * @leave system wide error + */ + static CT_MMCSDPsuDriverData* NewL(); + + virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); + +protected: + /** + * Protected constructor. First phase construction + */ + CT_MMCSDPsuDriverData(); + void ConstructL(); + + void DoCmdPsuInfo(const TDesC& aSection); + void DoCmdSetPsuVoltage(const TDesC& aSection); + void DoCmdPbusState(const TDesC& aSection); + void DoCmdSetPsuState(const TDesC& aSection); + void DoCmdVccState(const TDesC& aSection); + void DoCmdPsuNumber(const TDesC& aSection); + void DoCmdMediaChangeID(const TDesC& aSection); + void DoCmdPsuCurLimit(const TDesC& aSection); + +private: + static const TEnumEntryTable iEnumTableVoltageCheckMethod[]; + static const TEnumEntryTable iEnumTablePbusState[]; + static const TEnumEntryTable iEnumTableVccState[]; + TInt iAsyncErrorIndex; + }; + +#endif /* __T_MMCSDPsu_DRIVER_DATA_H__ */