messagingfw/msgtestfw/TestActions/SendAs/inc/CMtfTestActionVerifySubject.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 #ifndef __CMTFTESTACTIONVERIFYSUBJECT_H__
       
    25 #define __CMTFTESTACTIONVERIFYSUBJECT_H__
       
    26 
       
    27 // System include
       
    28 #include <msvstore.h>
       
    29 
       
    30 // User include
       
    31 #include "CMtfSynchronousTestAction.h"
       
    32 
       
    33 /*@{*/
       
    34 /// Literal defined for the name of the Test Action
       
    35 _LIT(KTestActionVerifySubject,"VerifySubject");
       
    36 /*@}*/
       
    37 
       
    38 
       
    39 /**
       
    40 VerifySubject Test Action is intended compare the subject field of the message with the string 
       
    41 provided as input to the Test Action. If the subject field of the message does not match with the
       
    42 specified string, the Test Action fails.
       
    43 @internalTechnology
       
    44 */
       
    45 class CMtfTestActionVerifySubject : public CMtfSynchronousTestAction
       
    46 	{
       
    47 public:
       
    48 	virtual ~CMtfTestActionVerifySubject(); 
       
    49 
       
    50 	static CMtfTestAction* NewL(CMtfTestCase& aTestCase,
       
    51 		CMtfTestActionParameters* ActionParameters);
       
    52 
       
    53 	virtual void ExecuteActionL();
       
    54 
       
    55 private:
       
    56 	CMtfTestActionVerifySubject(CMtfTestCase& aTestCase);
       
    57 	
       
    58 	TInt VerifySubjectL(CMsvEntry& aMsvEntry,HBufC* aSubject);
       
    59 	};
       
    60 
       
    61 #endif //__CMTFTESTACTIONVERIFYSUBJECT_H__