|
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 |
|
15 * CUIEngineErrorPrinter. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef UI_ENGINE_ERROR_H |
|
20 #define UI_ENGINE_ERROR_H |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include <e32base.h> |
|
26 #include "TestEngineClient.h" |
|
27 |
|
28 // CONSTANTS |
|
29 // None |
|
30 |
|
31 // MACROS |
|
32 // None |
|
33 |
|
34 // DATA TYPES |
|
35 // None |
|
36 |
|
37 // FUNCTION PROTOTYPES |
|
38 // None |
|
39 |
|
40 |
|
41 // FORWARD DECLARATIONS |
|
42 class CUIEngine; |
|
43 |
|
44 // CLASS DECLARATION |
|
45 |
|
46 |
|
47 // DESCRIPTION |
|
48 |
|
49 // CUIEngineErrorPrinter is an active object which handles the error notifications |
|
50 // from the test framework. |
|
51 class CUIEngineErrorPrinter |
|
52 :public CActive |
|
53 { |
|
54 public: // Enumerations |
|
55 |
|
56 private: // Enumerations |
|
57 |
|
58 public: // Constructors and destructor |
|
59 |
|
60 /** |
|
61 * NewL is first phase of two-phased constructor. |
|
62 */ |
|
63 static CUIEngineErrorPrinter* NewL( CUIEngine* aUIEngine ); |
|
64 |
|
65 /** |
|
66 * Destructor of CTestCaseRunner. |
|
67 */ |
|
68 virtual ~CUIEngineErrorPrinter(); |
|
69 |
|
70 /** |
|
71 * Start |
|
72 */ |
|
73 void StartL( RTestEngine& aTestCase ); |
|
74 |
|
75 public: // New functions |
|
76 |
|
77 public: // Functions from base classes |
|
78 |
|
79 /** |
|
80 * RunL derived from CActive handles the completed requests. |
|
81 */ |
|
82 void RunL(); |
|
83 |
|
84 /** |
|
85 * DoCancel derived from CActive handles the Cancel |
|
86 */ |
|
87 void DoCancel(); |
|
88 |
|
89 protected: // New functions |
|
90 // None |
|
91 |
|
92 protected: // Functions from base classes |
|
93 // None |
|
94 |
|
95 /** |
|
96 * C++ default constructor. |
|
97 */ |
|
98 CUIEngineErrorPrinter( CUIEngine* aUIEngine ); |
|
99 |
|
100 /** |
|
101 * By default Symbian OS constructor is private. |
|
102 */ |
|
103 void ConstructL( ); |
|
104 |
|
105 private: // Functions from base classes |
|
106 // None |
|
107 |
|
108 public: //Data |
|
109 // None |
|
110 |
|
111 protected: // Data |
|
112 // None |
|
113 |
|
114 private: // Data |
|
115 |
|
116 // Pointer to test case container |
|
117 CUIEngine* iUIEngine; |
|
118 |
|
119 // Testcase object handle |
|
120 RTestEngine iTestEngine; |
|
121 |
|
122 // Test result package |
|
123 TErrorNotification iError; |
|
124 TErrorNotificationPckg iErrorPckg; |
|
125 |
|
126 public: // Friend classes |
|
127 // None |
|
128 |
|
129 protected: // Friend classes |
|
130 // None |
|
131 |
|
132 private: // Friend classes |
|
133 // None |
|
134 |
|
135 }; |
|
136 |
|
137 #endif // UI_ENGINE_ERROR_H |
|
138 |
|
139 // End of File |