messagingappbase/smsmtm/test/inc/T_SmcmFail.h
changeset 23 238255e8b033
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
       
     1 // Copyright (c) 1999-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 //
       
    15 
       
    16 #ifndef T_SMCMFAIL_H_
       
    17 #define T_SMCMFAIL_H_
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <txtrich.h>    //CRichText
       
    21 #include <e32test.h>
       
    22 #include "smutset.h"	// sms settings
       
    23 #include "smsclnt.h"	// sms (a)sync commands
       
    24 #include <smuthdr.h>
       
    25 #include <smstestbase.h>
       
    26 
       
    27 GLDEF_D RTest				test(_L("SMCM Test Harness"));
       
    28 GLDEF_D CTrapCleanup*		theCleanup;
       
    29 
       
    30 const TMsvPartList KMsvMessagePartBody			= 0x00000001;
       
    31 const TMsvPartList KMsvMessagePartRecipient		= 0x00000002;
       
    32 const TMsvPartList KMsvMessagePartOriginator	= 0x00000004;
       
    33 const TMsvPartList KMsvMessagePartDescription	= 0x00000008;
       
    34 const TMsvPartList KMsvMessagePartDate			= 0x00000010;
       
    35 const TMsvPartList KMsvMessagePartAttachments	= 0x00000020;
       
    36 
       
    37 GLDEF_C TInt E32Main(void);
       
    38 LOCAL_C void doMainL(void);
       
    39 
       
    40 class CSmcmFailTest : public CSmsTestBase
       
    41 	{
       
    42 public:
       
    43 	static CSmcmFailTest* NewL(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aCurrentTest);
       
    44 	~CSmcmFailTest();
       
    45 
       
    46 private:
       
    47 	CSmcmFailTest(CSmsTestUtils& aSmsTest, const TDesC& aScriptFile, TInt& aCurrentTest);
       
    48 	void ConstructL();
       
    49 
       
    50 	void RunL() {};
       
    51 	void DoCancel() {};
       
    52 
       
    53 	void ShowMenuL();
       
    54 	void RunAutoL();
       
    55 
       
    56 	//Test Functions
       
    57 	void TestSettingsFailL();
       
    58 	void TestHeaderFailL();
       
    59 	void TestNumberFailL();
       
    60 	void TestReplyFailL();
       
    61 	void TestForwardFailL();
       
    62 	void TestLoadFailL();
       
    63 	void TestSaveFailL();
       
    64 	void TestAddresseeFailL();
       
    65 	void TestBifFailL();
       
    66 
       
    67 	void CleanFolderL(TMsvId aFolder);
       
    68 
       
    69 	CRichText*			iRichText;
       
    70 	CParaFormatLayer*	iParaLayer;
       
    71 	CCharFormatLayer*	iCharLayer;
       
    72 	};
       
    73 
       
    74 
       
    75 #endif