smsprotocols/smsstack/gsmu/test/te_gsmu_ems/Te_gsmu_emsSuiteStepBase.h
changeset 0 3553901f7fa8
child 3 962e6306d9d2
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     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 __TE_GSMU_EMS_STEP_BASE__
       
    25 #define __TE_GSMU_EMS_STEP_BASE__
       
    26 
       
    27 #include <test/testexecutestepbase.h>
       
    28 // Please add your include here if you have
       
    29 #include <fbs.h>
       
    30 #include <e32math.h>
       
    31 #include "gsmumsg.h"
       
    32 #include "gsmubuf.h"
       
    33 #include "gsmuset.h"
       
    34 #include "smsuaddr.h"
       
    35 #include "emsinformationelement.h"
       
    36 #include "emsformatie.h"
       
    37 #include "emssoundie.h"
       
    38 #include "emspictureie.h"
       
    39 #include "emsanimationie.h"
       
    40 #include "emsuserpromptie.h"
       
    41 #include "emsobjectdistributionie.h"
       
    42 
       
    43 // MACROS taken from old test code
       
    44 #define KSmsMaxEMSLength 64000
       
    45 #define KMaxSmsBufferLength 39015
       
    46 
       
    47 _LIT(KPicsMBM,"\\Ems\\pics.mbm");
       
    48 _LIT(KCDrive,"C:");
       
    49 _LIT(KZDrive,"Z:");
       
    50 _LIT(KAnimsMBM,"\\Ems\\anims.mbm");
       
    51 _LIT(KPromptMsg, "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789");
       
    52 _LIT(KLongFormatMsg, "0123456789012345678 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789");
       
    53 
       
    54 
       
    55 _LIT8(KBarbieMelody,"MELODY:*3#g3e3#g3*5#c3*4a2r2#f3#d3#f3b3#g2#f3e3r2#c3#f#c2r2#f3e3#g2\r\n");
       
    56 _LIT8(KOasisMelody,"MELODY:c2.c3c2c2c2f2f2d2#d2.#d3#d2#d2#d2#g2#g2c2.c3c2c2c2f2f2d2#d2.#d3#d2#d2#d2#g2g2c2.c3c2c2c2f2f\r\n");
       
    57 _LIT8(KItchyMelody,"BEAT:127\r\nMELODY:*5c3a3*5r2*5c3*5a3*5r2*5c3a3*5c3a3*5c3*5a3*5r2*5r3*5c3*5e3*5r3*5e3*5f3*5g3*5r2*5d3*5c3*5d2*5f3*5#a2*5a2\r\n");
       
    58 _LIT8(KTooBigMelody,"BEAT:127\r\nMELODY:*5c3a3*5r2*5c3*5a3*5r2*5c3a3*5c3a3*5c3*5a3*5r2*5r3*5c3*5e3*5r3*5e3*5f3*5g3*5r2*5d3*5c3*5d2*5f3*5#a2*5a2*5c3*5e3*5r3*5e3*5f3*5g3*5r2*5d3*5c3*5d2*5f3*5#a2*5a2\r\n");
       
    59 
       
    60 _LIT(KText, "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123");
       
    61 
       
    62 
       
    63 /**
       
    64  *  The reason to have a new step base is that it is very much possible
       
    65  *  that the all individual test steps have project related common variables
       
    66  *  and members
       
    67  *  and this is the place to define these common variable and members.
       
    68  */
       
    69 class CTe_gsmu_emsSuiteStepBase : public CTestStep
       
    70 	{
       
    71 public:
       
    72 	virtual TVerdict doTestStepPreambleL();
       
    73 	virtual TVerdict doTestStepPostambleL();
       
    74 
       
    75 protected:
       
    76 	HBufC8*		iReadData;
       
    77 	HBufC8*		iWriteData;
       
    78 
       
    79 	// Missing functions and definitions copied from the old test code
       
    80 	RFs iFs;
       
    81 
       
    82 	CSmsMessage* CreateSmsMessageL(const TDesC& aDes, TSmsDataCodingScheme::TSmsAlphabet aAlphabet, CSmsPDU::TSmsPDUType aType= CSmsPDU::ESmsSubmit);
       
    83 	TInt LoadBitmap(CFbsBitmap& aBitmap,const TDesC& aName,TUint aId);
       
    84 	CSmsMessage* CreateVariableLengthSmsMessageLC(TSmsDataCodingScheme::TSmsAlphabet aAlphabet,
       
    85 													  TInt aLength);
       
    86 	void CompareEmsElementsL(CSmsMessage& aOriginalMessage,CSmsMessage& aOtherMessage);
       
    87 	TBool CompareEmsElementL(const CEmsInformationElement& aOriginalElement,RPointerArray<const CEmsInformationElement>& aOtherElementsArray);
       
    88 	HBufC8* CreatePictureBufferL(const CFbsBitmap& aBitmap);
       
    89 	};
       
    90 
       
    91 #endif // __TE_GSMU_EMS_STEP_BASE__