|
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 // Pop3TopPopulate |
|
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 "CMtfTestActionPop3Populate.h" |
|
39 |
|
40 |
|
41 /** |
|
42 Function : CMtfTestActionPop3Populate |
|
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 CMtfTestActionPop3Populate::CMtfTestActionPop3Populate(CMtfTestCase& aTestCase) |
|
51 : CMtfTestActionPop3TopBase(aTestCase) |
|
52 { |
|
53 } |
|
54 |
|
55 /** |
|
56 Function : ~CMtfTestActionPop3Populate |
|
57 Description : Destructor |
|
58 @internalTechnology |
|
59 @param : |
|
60 @return : |
|
61 @pre |
|
62 @post |
|
63 */ |
|
64 CMtfTestActionPop3Populate::~CMtfTestActionPop3Populate() |
|
65 { |
|
66 } |
|
67 |
|
68 |
|
69 /** |
|
70 Function : NewL |
|
71 Description : |
|
72 @internalTechnology |
|
73 @param : aTestCase - CMtfTestCase for the CMtfTestAction base class |
|
74 @param : aActionParams - CMtfTestActionParameters |
|
75 @return : CMtfTestAction* - a base class pointer to the newly created CMtfTestActionPop3Populate object |
|
76 @pre none |
|
77 @post none |
|
78 */ |
|
79 CMtfTestAction* CMtfTestActionPop3Populate::NewL( CMtfTestCase& aTestCase, CMtfTestActionParameters* aActionParams ) |
|
80 { |
|
81 CMtfTestActionPop3Populate *self = new (ELeave) CMtfTestActionPop3Populate(aTestCase); |
|
82 CleanupStack::PushL( self ); |
|
83 self->ConstructL( aActionParams ); |
|
84 CleanupStack::Pop( self ); |
|
85 return self; |
|
86 } |
|
87 |
|
88 |
|
89 /** |
|
90 Function : ExecuteActionL |
|
91 Description : Entry point for the this test action in the test framework |
|
92 @internalTechnology |
|
93 @param : none |
|
94 @return : void |
|
95 @pre none |
|
96 @post none |
|
97 */ |
|
98 void CMtfTestActionPop3Populate::ExecuteActionL() |
|
99 { |
|
100 TestCase().INFO_PRINTF2(_L("Test Action %S start..."), &KTestActionPop3Populate); |
|
101 DoInvokeAsyncFunctionL( KPOP3MTMPopulate ); |
|
102 TestCase().INFO_PRINTF2(_L("Test Action %S completed."), &KTestActionPop3Populate); |
|
103 } |
|
104 |
|
105 |