messagingfw/msgtestfw/TestActions/SendAs/inc/CMtfTestActionVerifyRecipients.h
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 /**
       
     2 * Copyright (c) 2004-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 "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  @file
       
    22 */
       
    23 
       
    24 
       
    25 #ifndef __CMTFTESTACTIONVERIFYRECIPIENTS_H__
       
    26 #define __CMTFTESTACTIONVERIFYRECIPIENTS_H__
       
    27 
       
    28 //System Include
       
    29 #include <msvstore.h>
       
    30 #include <badesca.h>
       
    31 #include <msvapi.h>
       
    32 #include <miuthdr.h>
       
    33 
       
    34 //User Include
       
    35 #include "CMtfSynchronousTestAction.h"
       
    36 
       
    37 /*@{*/
       
    38 /// Literal defined for the name of the Test Action
       
    39 _LIT(KTestActionVerifyRecipients,"VerifyRecipients");
       
    40 /*@}*/
       
    41 
       
    42 /**
       
    43  VerifyRecipients Test Action is intended verify the recipient address set for
       
    44  the message by comparing it with the recipient addresses provided as input to
       
    45  the Test Action.
       
    46 @internalTechnology
       
    47 */
       
    48 class CMtfTestActionVerifyRecipients : public CMtfSynchronousTestAction
       
    49 	{
       
    50 public:
       
    51 	virtual ~CMtfTestActionVerifyRecipients(); 
       
    52 
       
    53 	static CMtfTestAction* NewL(CMtfTestCase& aTestCase,
       
    54 								CMtfTestActionParameters* ActionParameters);
       
    55 								
       
    56 	virtual void ExecuteActionL();
       
    57 
       
    58 private:
       
    59 	CMtfTestActionVerifyRecipients(CMtfTestCase& aTestCase);
       
    60 	
       
    61 	void ObtainRecipientsL(CMsvEntry* aMsvEntry, CDesC16ArrayFlat&  aRecipientArray);
       
    62 	
       
    63 	TInt VerifyRecipientsL (CMsvEntry& aMsgEntry,
       
    64 							CMsvStore& aMsgStore,
       
    65 							TImHeaderEncodingInfo::TFieldList recipientType,
       
    66 							CDesC16Array&  aRecipientArray);
       
    67 	};
       
    68 
       
    69 
       
    70 #endif //__CMTFTESTACTIONVERIFYRECIPIENTS_H__