smsprotocols/smsstack/smsprot/Test/TE_SMSEMSPRT/TE_SMSEMSPRTBASE.h
changeset 20 244d7c5f118e
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
19:1f776524b15c 20:244d7c5f118e
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 //
    14 //
    15 
    15 
    16 #ifndef _TE_SMSEMSPRTBASE_H_
    16 #ifndef TE_SMSEMSPRTBASE_H
    17 #define _TE_SMSEMSPRTBASE_H_
    17 #define TE_SMSEMSPRTBASE_H
    18 
       
    19 
    18 
    20 #include <test/testexecuteserverbase.h>
    19 #include <test/testexecuteserverbase.h>
    21 #include <simtsy.h>
    20 #include <simtsy.h>
    22 #include <testconfigfileparser.h>
    21 #include <testconfigfileparser.h>
    23 
    22 #include <mmlist.h>
       
    23 #include <mmretrieve.h>
    24 
    24 
    25 #include "gsmubuf.h"
    25 #include "gsmubuf.h"
    26 #include "Gsmumsg.h"
    26 #include "Gsmumsg.h"
    27 #include "gsmuset.h"
    27 #include "gsmuset.h"
    28 
    28 
    29 #include "smsuaddr.H"
    29 #include "smsuaddr.H"
    30 #include "smsustrm.h"
    30 #include "smsustrm.h"
    31 #include "smspdudb.h"
    31 #include "smspdudb.h"
    32 #include "smsstacktestutilities.h"
    32 #include "smsstacktestutilities.h"
    33 #include <mmlist.h>
    33 #include "smsstackbaseteststeps.h"
    34 #include <mmretrieve.h>
       
    35 
    34 
    36 #include "attributes.h"
    35 #include "attributes.h"
    37 #include "smspproc.h"
    36 #include "smspproc.h"
    38 #include "EMSFormatIE.h"
    37 #include "EMSFormatIE.h"
    39 #include "EMSSoundIE.h"
    38 #include "EMSSoundIE.h"
    41 #include "EMSUserPromptIE.h"
    40 #include "EMSUserPromptIE.h"
    42 #include "EMSAnimationIE.h"
    41 #include "EMSAnimationIE.h"
    43 #include "EmsTestUtils.h"
    42 #include "EmsTestUtils.h"
    44 #include "EMSObjectDistributionIE.h"
    43 #include "EMSObjectDistributionIE.h"
    45 
    44 
       
    45 class CSmsEmsPrtTestStep : public CSmsBaseTestStep
       
    46     {
       
    47 public:
       
    48     virtual TVerdict doTestStepPreambleL();
       
    49     virtual TVerdict doTestStepPostambleL();
       
    50     
       
    51 	TBool SendReceiveMsgL(CSmsMessage& aMsg);
       
    52     
       
    53 protected:
       
    54 	RSocket iSocket;
       
    55     };
    46 
    56 
    47 const TUint KSocketMessageSlots = 16;   // Override the default value of 8
    57 #endif // TE_SMSEMSPRTBASE_H
    48 
       
    49 // The basic text we send - 26 chars long
       
    50 _LIT(KBasicSmsText,"abcdefghijklmnopqrstuvwxyz");
       
    51 _LIT(KTSmsEmsPrtConfigFileName, "tsmsemsprt_config.txt");
       
    52 
       
    53 _LIT(KGmsSmsConfigFileName,"setupgsmsms.txt");
       
    54 
       
    55 class CSmsEmsPrtTestStep : public CTestStep
       
    56 {
       
    57 
       
    58 public:
       
    59 	CSmsMessage* ConfigCreateSmsMessageLC(const TDesC& aDes,
       
    60 			TSmsDataCodingScheme::TSmsAlphabet aAlphabet = TSmsDataCodingScheme::ESmsAlphabet8Bit);
       
    61 	CSmsMessage* CreateSmsMessageL(const TDesC& aDes, TSmsDataCodingScheme::TSmsAlphabet aAlphabet, CSmsPDU::TSmsPDUType aType  = CSmsPDU::ESmsSubmit) ;
       
    62 	TBool SendReceiveMsgL(CSmsMessage& aMsg);
       
    63 	void SendSmsL(const CSmsMessage* aSms, RSocket& aSocket);
       
    64 	void PrintMessageL(const CSmsMessage* aSms);
       
    65 	void WaitForRecvL(RSocket& aSocket);
       
    66 	CSmsMessage* RecvSmsL(RSocket& aSocket, TInt aIoctl = KIoctlReadMessageSucceeded) ;
       
    67 	TText8 IsCharDisplayable( const TText8 aChar ) ;
       
    68 	void PrepareRegTestL() ;
       
    69 	void EndRegTest();
       
    70 	TInt CommInit() ;
       
    71     void CreateCommDBL();
       
    72 	void ParseSettingsFromFileL();
       
    73 
       
    74 
       
    75 	RFs iFs;
       
    76 	TSmsServiceCenterAddress iTelephoneNumber; //Test SIM
       
    77 	TSmsServiceCenterAddress iServiceCenterNumber; //Radiolinja
       
    78 	RSocketServ iSocketServ;
       
    79 	RSocket iSocket;
       
    80 
       
    81  	virtual TVerdict doTestStepPreambleL();
       
    82 	virtual TVerdict doTestStepPostambleL();
       
    83 	virtual TInt GetTestNumber() = 0 ;
       
    84 
       
    85 	CSmsStackTestUtils* iSmsStackTestUtils;
       
    86 
       
    87 };
       
    88 
       
    89 #endif // _TE_SMSEMSPRTBASE_H_