|
1 /* |
|
2 * Copyright (c) 2005-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 the License "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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 /** |
|
24 @file |
|
25 */ |
|
26 |
|
27 #ifndef __TMESSAGE_H__ |
|
28 #define __TMESSAGE_H__ |
|
29 |
|
30 #include <testhandler2/t_testaction.h> |
|
31 |
|
32 class TTestActionSpec; |
|
33 |
|
34 class CTestActionMessage : public CTestAction |
|
35 { |
|
36 public: |
|
37 static CTestActionMessage* NewL(CConsoleBase& aConsole, Output& aOut, |
|
38 const TTestActionSpec& aTestActionSpec); |
|
39 static CTestActionMessage* NewLC(CConsoleBase& aConsole, Output& aOut, |
|
40 const TTestActionSpec& aTestActionSpec); |
|
41 ~CTestActionMessage(); |
|
42 virtual void PerformCancel() {}; |
|
43 virtual void DoPerformPrerequisite(TRequestStatus& aStatus); |
|
44 virtual void PerformAction(TRequestStatus& aStatus); |
|
45 virtual void DoPerformPostrequisite(TRequestStatus& aStatus); |
|
46 virtual void PerformMessage(); |
|
47 virtual void Reset(); |
|
48 |
|
49 private: |
|
50 CTestActionMessage(CConsoleBase& aConsole, Output& aOut); |
|
51 void ConstructL(const TTestActionSpec& aTestActionSpec); |
|
52 void DoReportAction(); |
|
53 void DoCheckResult(TInt aError); |
|
54 |
|
55 private: |
|
56 HBufC8* iMessage; |
|
57 }; |
|
58 |
|
59 #endif |