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 module contains implementation of |
|
15 * CUIStoreHandler class member functions. |
|
16 * |
|
17 */ |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "UIStoreHandler.h" |
|
21 |
|
22 // EXTERNAL DATA STRUCTURES |
|
23 // None |
|
24 |
|
25 // EXTERNAL FUNCTION PROTOTYPES |
|
26 // None |
|
27 |
|
28 // CONSTANTS |
|
29 // None |
|
30 |
|
31 // MACROS |
|
32 // None |
|
33 |
|
34 // LOCAL CONSTANTS AND MACROS |
|
35 // None |
|
36 |
|
37 // MODULE DATA STRUCTURES |
|
38 // None |
|
39 |
|
40 // LOCAL FUNCTION PROTOTYPES |
|
41 // None |
|
42 |
|
43 // FORWARD DECLARATIONS |
|
44 // None |
|
45 class CUIStore; |
|
46 |
|
47 // ==================== LOCAL FUNCTIONS ======================================= |
|
48 // None |
|
49 |
|
50 // ================= MEMBER FUNCTIONS ========================================= |
|
51 // ---------------------------------------------------------------------------- |
|
52 // CUIStoreHandler::CUIStoreHandler |
|
53 // |
|
54 // Default constructor. |
|
55 // C++ default constructor can NOT contain any code, that might leave. |
|
56 // ---------------------------------------------------------------------------- |
|
57 // |
|
58 CUIStoreHandler::CUIStoreHandler( CAppUIAppUi* aAppUIAppUI ) : |
|
59 iAppUIAppUI( aAppUIAppUI ), |
|
60 iExecutedTestCaseCount( 0 ) |
|
61 { |
|
62 |
|
63 } |
|
64 |
|
65 // ---------------------------------------------------------------------------- |
|
66 // CUIStoreHandler::ConstructL |
|
67 // |
|
68 // Symbian OS second phase constructor. |
|
69 // Symbian OS default constructor can leave. |
|
70 // ---------------------------------------------------------------------------- |
|
71 // |
|
72 void CUIStoreHandler::ConstructL() |
|
73 { |
|
74 CUIStoreIf::ConstructL(); |
|
75 |
|
76 } |
|
77 |
|
78 // ---------------------------------------------------------------------------- |
|
79 // CUIStoreHandler::NewL |
|
80 // |
|
81 // Two-phased constructor. |
|
82 // ---------------------------------------------------------------------------- |
|
83 // |
|
84 CUIStoreHandler* CUIStoreHandler::NewL( CAppUIAppUi* aAppUIAppUI ) |
|
85 { |
|
86 // Create CUIStoreHandler object uistorehandler |
|
87 CUIStoreHandler* uistorehandler = new (ELeave) CUIStoreHandler( aAppUIAppUI ); |
|
88 |
|
89 CleanupStack::PushL( uistorehandler ); |
|
90 uistorehandler->ConstructL(); |
|
91 CleanupStack::Pop( uistorehandler ); |
|
92 |
|
93 return uistorehandler; |
|
94 |
|
95 } |
|
96 |
|
97 // ---------------------------------------------------------------------------- |
|
98 // CUIStoreHandler::~CUIStoreHandler |
|
99 // |
|
100 // Destructor. |
|
101 // ---------------------------------------------------------------------------- |
|
102 // |
|
103 CUIStoreHandler::~CUIStoreHandler() |
|
104 { |
|
105 |
|
106 } |
|
107 |
|
108 // ---------------------------------------------------------------------------- |
|
109 // CUIStoreHandler::Update |
|
110 // |
|
111 // Receives output update notify from started test case. |
|
112 // Checks if that test case is currently in output view then |
|
113 // sends notification to AppUI which handles notification onward. |
|
114 // ---------------------------------------------------------------------------- |
|
115 // |
|
116 void CUIStoreHandler::Update( CStartedTestCase* aTestCase, TInt aStatus ) |
|
117 { |
|
118 _LIT( KErrorMsg, "Error during output update" ); |
|
119 TRAPD(err,iAppUIAppUI->OutputUpdateL( aTestCase, aStatus )); |
|
120 if ( err != KErrNone ) |
|
121 { |
|
122 RDebug::Print( KErrorMsg ); |
|
123 } |
|
124 |
|
125 //iAppUi->OutputUpdate(); |
|
126 //if( aStatus == EPrintUpdate ) |
|
127 // { |
|
128 //iAppUIAppUI->OutputUpdate( aTestCase ); |
|
129 // } |
|
130 //else |
|
131 // { |
|
132 //iAppUIAppUI->TestCaseStateChanged(); |
|
133 // } |
|
134 |
|
135 } |
|
136 |
|
137 // ================= OTHER EXPORTED FUNCTIONS ================================= |
|
138 // None |
|
139 |
|
140 // End of File |
|