os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/inc/T_FileTextData.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 #ifndef __T_FILE_TEXT_DATA_H__
    21 #define __T_FILE_TEXT_DATA_H__
    22 
    23 //	User Includes
    24 #include "T_FsData.h"
    25 #include "DataWrapperBase.h"
    26 
    27 //	EPOC includes
    28 #include <f32file.h>
    29 #include <e32std.h>
    30 #include <f32fsys.h>
    31 
    32 
    33 class CT_FileTextData: public CDataWrapperBase
    34 	{
    35 public:
    36 	static CT_FileTextData* NewL();
    37 	~CT_FileTextData();
    38 
    39 	virtual TBool DoCommandL( const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/ );
    40 	virtual TAny* GetObject();
    41 
    42 protected:
    43 	CT_FileTextData( );
    44 	void ConstructL();
    45 
    46 private:
    47     // command processors
    48     inline void DoCleanup();
    49     inline void DoCmdNew();
    50     inline void DoCmdRead( const TDesC& aSection );
    51     inline void DoCmdSeek( const TDesC& aSection );
    52     inline void DoCmdSet( const TDesC& aSection );
    53     inline void DoCmdWrite( const TDesC& aSection );
    54     
    55     // helper functions
    56 	TBool GetSeekMode( const TDesC& aSection, TSeek& aMode, TBool aOptional );
    57 		
    58 private:
    59 		
    60 	// TFileText class instance
    61 	TFileText*			iFileText;
    62 	};
    63 
    64 #endif // __T_FILE_TEXT_DATA_H__
    65