messagingfw/msgtestfw/TestActions/Email/Pop3/src/CMtfTestActionPop3PopulateNew.cpp
changeset 22 bde600d88860
parent 0 8e480a14352b
equal deleted inserted replaced
21:08008ce8a6df 22:bde600d88860
       
     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 // Pop3TopPopulateNew
       
    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 "CMtfTestActionPop3PopulateNew.h"
       
    39 
       
    40 
       
    41 /**
       
    42   Function : CMtfTestActionPop3PopulateNew
       
    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 CMtfTestActionPop3PopulateNew::CMtfTestActionPop3PopulateNew(CMtfTestCase& aTestCase)
       
    51 	: CMtfTestActionPop3TopBase(aTestCase)
       
    52 	{
       
    53 	}
       
    54 
       
    55 
       
    56 /**
       
    57   Function : ~CMtfTestActionPop3PopulateNew
       
    58   Description : Destructor
       
    59   @internalTechnology
       
    60   @param :
       
    61   @return : 
       
    62   @pre 
       
    63   @post 
       
    64 */
       
    65 CMtfTestActionPop3PopulateNew::~CMtfTestActionPop3PopulateNew()
       
    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 CMtfTestActionPop3PopulateNew object
       
    76   @pre none
       
    77   @post none
       
    78 */
       
    79 CMtfTestAction* CMtfTestActionPop3PopulateNew::NewL( CMtfTestCase& aTestCase, CMtfTestActionParameters* aActionParams )
       
    80 	{
       
    81 	CMtfTestActionPop3PopulateNew *self = new (ELeave) CMtfTestActionPop3PopulateNew(aTestCase);
       
    82 	CleanupStack::PushL( self );
       
    83 	self->ConstructL( aActionParams );
       
    84 	CleanupStack::Pop( self );
       
    85 	return self;
       
    86 	}
       
    87 
       
    88 /**
       
    89   Function : ExecuteActionL
       
    90   Description : Entry point for the this test action in the test framework
       
    91   @internalTechnology
       
    92   @param : none
       
    93   @return : void
       
    94   @pre none 
       
    95   @post none
       
    96 */
       
    97 void CMtfTestActionPop3PopulateNew::ExecuteActionL()
       
    98 	{
       
    99 	TestCase().INFO_PRINTF2(_L("Test Action %S start..."), &KTestActionPop3PopulateNew);
       
   100 	DoInvokeAsyncFunctionL( KPOP3MTMPopulateNew );
       
   101 	TestCase().INFO_PRINTF2(_L("Test Action %S completed."), &KTestActionPop3PopulateNew);
       
   102 	}
       
   103 
       
   104