|
1 /* |
|
2 * Copyright (c) 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: This file contains the header file of the CTestEngine. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TESTENGINECOMMON_H |
|
19 #define TESTENGINECOMMON_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <StifLogger.h> |
|
23 |
|
24 // DATA TYPES |
|
25 |
|
26 // Panic reasons |
|
27 enum TTestEnginePanic |
|
28 { |
|
29 EBadRequest, |
|
30 EBadDescriptor, |
|
31 EMainSchedulerError, |
|
32 ESvrCreateServer, |
|
33 ECreateTrapCleanup, |
|
34 EBadSubsessionHandle, |
|
35 ENoStartupInformation, |
|
36 EInvalidModuleName, |
|
37 EReqPending, |
|
38 EDoCancelDisorder, |
|
39 ECancelAsyncIPCError, |
|
40 EEventPanic |
|
41 }; |
|
42 |
|
43 // Struct to Test report settings |
|
44 class CTestReportSettings |
|
45 { |
|
46 public: |
|
47 |
|
48 /** |
|
49 * NewL is two-phased constructor. |
|
50 */ |
|
51 static CTestReportSettings* NewL(); |
|
52 |
|
53 |
|
54 ~CTestReportSettings(); |
|
55 |
|
56 private: |
|
57 CTestReportSettings(); |
|
58 /** |
|
59 * By default Symbian OS constructor is private. |
|
60 */ |
|
61 void ConstructL(); |
|
62 |
|
63 public: |
|
64 |
|
65 TBool iCreateTestReport; // Test report creation mode |
|
66 HBufC* iPath; // Test report path |
|
67 HBufC* iName; // Test report name |
|
68 CStifLogger::TLoggerType iFormat; // Test report file type |
|
69 CStifLogger::TOutput iOutput; // Test report output |
|
70 TBool iOverwrite; // Test report overwrite |
|
71 TBool iXML; // Test report in xml format |
|
72 |
|
73 }; |
|
74 |
|
75 #endif /* TESTENGINECOMMON_H */ |
|
76 |
|
77 // End of file |