os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/inc/T_RawDiskData.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_RawDiskData
    24 */
    25 
    26 #if (!defined __T_RAWDISK_DATA_H__)
    27 #define __T_RAWDISK_DATA_H__
    28 
    29 //	User Includes
    30 #include "DataWrapperBase.h"
    31 #include "T_FsData.h"
    32 
    33 //	EPOC includes
    34 #include <f32file.h>
    35 
    36 class CT_RawDiskData : public CDataWrapperBase
    37 	{
    38 public:
    39 	static CT_RawDiskData*	NewL();
    40 	~CT_RawDiskData();
    41 
    42 	virtual TAny*	GetObject();
    43 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
    44 
    45 
    46 protected:
    47 	CT_RawDiskData();
    48 	void ConstructL();
    49 
    50 private:
    51 	//	Commands
    52 	void	DoCmdNewL();
    53 	void	DoCmdOpen(const TDesC& aSection);
    54 	void	DoCmdClose();
    55 	void 	DoCmdReadL(const TDesC& aSection);
    56 	void 	DoCmdWriteL(const TDesC& aSection);
    57 	void	DoCmdDestructor();
    58 
    59 
    60 	//	Helpers
    61 	inline void	DoCleanup();
    62     TBool GetDriveNumber(const TDesC& aSection, const TDesC& aParameterName, TDriveNumber& aDriveNumber);
    63 
    64 private:
    65 
    66 	/** Instance for handling to resource file */
    67     RRawDisk*       iRawDisk;
    68 
    69 	};
    70 
    71 #endif /* __T_RAWDISK_DATA_H__ */