os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/inc/T_DriveUnitData.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 *
    16 */
    17 
    18 
    19 /**
    20 @test
    21 @internalComponent
    22 
    23 This contains CT_DriveUnitData
    24 */
    25 
    26 #if (!defined __T_DRIVEUNIT_DATA_H__)
    27 #define __T_DRIVEUNIT_DATA_H__
    28 
    29 //	User Includes
    30 #include "DataWrapperBase.h"
    31 #include "T_FsData.h"
    32 //	EPOC includes
    33 #include <f32file.h>
    34 
    35 
    36 class CT_DriveUnitData : public CDataWrapperBase
    37 	{
    38 public:
    39 	static CT_DriveUnitData*	NewL();
    40 	~CT_DriveUnitData();
    41 
    42 	virtual TAny*	GetObject();
    43 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
    44 
    45 protected:
    46 	CT_DriveUnitData();
    47 	void	ConstructL();
    48 
    49 private:
    50 	//	Commands
    51 	void	DoCmdNewL(const TDesC& aSection);
    52 	void	DoCmdDestructor();
    53 	void 	DoCmdAssign(const TDesC& aSection);
    54 	void 	DoCmdConvertToInt(const TDesC& aSection);
    55 	void 	DoCmdName(const TDesC& aSection);
    56 
    57 	//	Helpers
    58 	void	DoCleanup();
    59 
    60 private:
    61 
    62 	/** Instance for handling to resource file */
    63 	TDriveUnit*		iDriveUnit;
    64 
    65 	};
    66 
    67 #endif /* __T_DRIVEUNIT_DATA_H__ */