|
1 // Copyright (c) 2003-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 // __ACTION_INFO_BEGIN__ |
|
15 // [Action Name] |
|
16 // DeletePop3Mtm |
|
17 // [Action Parameters] |
|
18 // Mtm <input>: Reference to POP3 client MTM. |
|
19 // [Action Description] |
|
20 // Deletes POP3 client MTM. |
|
21 // [APIs Used] |
|
22 // none |
|
23 // __ACTION_INFO_END__ |
|
24 // |
|
25 // |
|
26 |
|
27 /** |
|
28 @file |
|
29 */ |
|
30 |
|
31 |
|
32 #include "CMtfTestActionDeletePop3Mtm.h" |
|
33 #include "CMtfTestCase.h" |
|
34 #include "CMtfTestActionParameters.h" |
|
35 |
|
36 #include <popcmtm.h> |
|
37 |
|
38 |
|
39 CMtfTestAction* CMtfTestActionDeletePop3Mtm::NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* aActionParameters) |
|
40 { |
|
41 CMtfTestActionDeletePop3Mtm* self = new (ELeave) CMtfTestActionDeletePop3Mtm(aTestCase); |
|
42 CleanupStack::PushL(self); |
|
43 self->ConstructL(aActionParameters); |
|
44 CleanupStack::Pop(); |
|
45 return self; |
|
46 } |
|
47 |
|
48 |
|
49 CMtfTestActionDeletePop3Mtm::CMtfTestActionDeletePop3Mtm(CMtfTestCase& aTestCase) |
|
50 : CMtfSynchronousTestAction(aTestCase) |
|
51 { |
|
52 } |
|
53 |
|
54 |
|
55 CMtfTestActionDeletePop3Mtm::~CMtfTestActionDeletePop3Mtm() |
|
56 { |
|
57 } |
|
58 |
|
59 |
|
60 void CMtfTestActionDeletePop3Mtm::ExecuteActionL() |
|
61 { |
|
62 TestCase().INFO_PRINTF2(_L("Test Action %S start..."), &KTestActionDeletePop3Mtm); |
|
63 DeleteParameterL<CPop3ClientMtm>(TestCase(),ActionParameters().Parameter(0)); |
|
64 |
|
65 TestCase().INFO_PRINTF2(_L("Test Action %S completed."), &KTestActionDeletePop3Mtm); |
|
66 TestCase().ActionCompletedL(*this); |
|
67 } |
|
68 |