equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __CSCRIPTFILEPROCESSOR_H__ |
|
17 #define __CSCRIPTFILEPROCESSOR_H__ |
|
18 |
|
19 #include <s32file.h> |
|
20 |
|
21 class CScriptFileProcessor : public CBase |
|
22 { |
|
23 public: |
|
24 |
|
25 enum TDataDirection |
|
26 { |
|
27 EFromServer=0, |
|
28 EFromClient |
|
29 }; |
|
30 |
|
31 static CScriptFileProcessor* NewL(const TDesC& aScriptFile); |
|
32 static CScriptFileProcessor* NewLC(const TDesC& aScriptFile); |
|
33 ~CScriptFileProcessor(); |
|
34 TInt ReadLine(TDes8& aLine); |
|
35 CScriptFileProcessor::TDataDirection DataDirection() const; |
|
36 |
|
37 private: |
|
38 CScriptFileProcessor(); |
|
39 void ConstructL(const TDesC& aScriptFile); |
|
40 TInt ProcessLine(TDes8& aLine); |
|
41 |
|
42 private: |
|
43 RFileReadStream iFileReadStream; |
|
44 RFs iFSession; |
|
45 RFile iFile; |
|
46 TDataDirection iDataDirection; |
|
47 }; |
|
48 |
|
49 |
|
50 #endif //__CSCRIPTFILEPROCESSOR_H__ |