author | John Imhofe <john.imhofe@nokia.com> |
Mon, 21 Dec 2009 16:14:42 +0000 | |
changeset 2 | 4122176ea935 |
parent 0 | a41df078684a |
permissions | -rw-r--r-- |
0 | 1 |
/* |
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
0 | 3 |
* All rights reserved. |
4 |
* This component and the accompanying materials are made available |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
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 |
* |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
14 |
* Description: |
0 | 15 |
* |
16 |
*/ |
|
17 |
||
18 |
||
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
19 |
|
0 | 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 |