|
1 // Copyright (c) 2004-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 // Pop3TopPopulateAll |
|
17 // [Action Parameters] |
|
18 // CPop3ClientMtm paramMtm <input> : Reference to Pop3 client MTM |
|
19 // CMsvEntrySelection paramSelection <input> : Reference to the message selection |
|
20 // TMsvId paramServiceId <input> : Value of POP3 Service Id |
|
21 // TTfImPop3GetMailInfo paramMailInfo <input> : Reference to param pack containing |
|
22 // : a TImPop3GetMailInfo containing POP3 |
|
23 // : TOP size limit info |
|
24 // CMsvEntrySelection paramSelection <input> : Reference to the selection. |
|
25 // [Action Description] |
|
26 // [APIs Used] |
|
27 // __ACTION_INFO_END__ |
|
28 // |
|
29 // |
|
30 |
|
31 /** |
|
32 @file |
|
33 */ |
|
34 |
|
35 |
|
36 |
|
37 #include "CMtfTestCase.h" |
|
38 #include "CMtfTestActionPop3PopulateAll.h" |
|
39 |
|
40 |
|
41 /** |
|
42 Function : CMtfTestActionPop3PopulateAll |
|
43 Description : Constructor |
|
44 @internalTechnology |
|
45 @param : aTestCase - CMtfTestCase for the CMtfTestAction base class |
|
46 @return : N/A |
|
47 @pre none |
|
48 @post none |
|
49 */ |
|
50 CMtfTestActionPop3PopulateAll::CMtfTestActionPop3PopulateAll(CMtfTestCase& aTestCase) |
|
51 : CMtfTestActionPop3TopBase(aTestCase) |
|
52 { |
|
53 } |
|
54 /** |
|
55 Function : ~CMtfTestActionPop3PopulateAll |
|
56 Description : Destructor |
|
57 @internalTechnology |
|
58 @param : |
|
59 @return : |
|
60 @pre |
|
61 @post |
|
62 */ |
|
63 CMtfTestActionPop3PopulateAll::~CMtfTestActionPop3PopulateAll() |
|
64 { |
|
65 } |
|
66 |
|
67 /** |
|
68 Function : NewL |
|
69 Description : |
|
70 @internalTechnology |
|
71 @param : aTestCase - CMtfTestCase for the CMtfTestAction base class |
|
72 @param : aActionParams - CMtfTestActionParameters |
|
73 @return : CMtfTestAction* - a base class pointer to the newly created CMtfTestActionPop3PopulateAll object |
|
74 @pre none |
|
75 @post none |
|
76 */ |
|
77 CMtfTestAction* CMtfTestActionPop3PopulateAll::NewL( CMtfTestCase& aTestCase, CMtfTestActionParameters* aActionParams ) |
|
78 { |
|
79 CMtfTestActionPop3PopulateAll *self = new (ELeave) CMtfTestActionPop3PopulateAll(aTestCase); |
|
80 CleanupStack::PushL( self ); |
|
81 self->ConstructL( aActionParams ); |
|
82 CleanupStack::Pop( self ); |
|
83 return self; |
|
84 } |
|
85 |
|
86 /** |
|
87 Function : ExecuteActionL |
|
88 Description : Entry point for the this test action in the test framework |
|
89 @internalTechnology |
|
90 @param : none |
|
91 @return : void |
|
92 @pre none |
|
93 @post none |
|
94 */ |
|
95 void CMtfTestActionPop3PopulateAll::ExecuteActionL() |
|
96 { |
|
97 TestCase().INFO_PRINTF2(_L("Test Action %S start..."), &KTestActionPop3PopulateAll); |
|
98 DoInvokeAsyncFunctionL( KPOP3MTMPopulateAll ); |
|
99 TestCase().INFO_PRINTF2(_L("Test Action %S completed."), &KTestActionPop3PopulateAll); |
|
100 } |
|
101 |
|
102 |