equal
deleted
inserted
replaced
|
1 // Copyright (c) 2001-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 // Basic test script handling. |
|
15 // |
|
16 // |
|
17 |
|
18 |
|
19 #ifndef __T_TESTSCRIPT_H |
|
20 #define __T_TESTSCRIPT_H |
|
21 |
|
22 |
|
23 #include <e32std.h> |
|
24 #include <f32file.h> |
|
25 #include <e32base.h> |
|
26 |
|
27 |
|
28 // |
|
29 // |
|
30 // CTestScript |
|
31 // |
|
32 |
|
33 class CTestScript : public CBase |
|
34 { |
|
35 public: |
|
36 typedef TBuf8<128> TTestScriptString; |
|
37 |
|
38 static CTestScript* NewL(RFs& aFs); |
|
39 ~CTestScript(); |
|
40 |
|
41 TBool LoadFileL(const TDesC& aFileName); |
|
42 TBool GetLineL(TTestScriptString& aLine); |
|
43 |
|
44 private: |
|
45 void ConstructL(); |
|
46 CTestScript(RFs& aFs); |
|
47 |
|
48 private: |
|
49 TBuf<512> iLastError; |
|
50 RFile iFile; |
|
51 RFs& iFs; |
|
52 TBool iEndOfFile; |
|
53 }; |
|
54 |
|
55 |
|
56 #endif |