smsprotocols/smsstack/smsprot/Test/TE_Smsprt/Te_StatusReportScheme.h
branchRCL_3
changeset 14 7ef16719d8cb
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
9:962e6306d9d2 14:7ef16719d8cb
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 //
    14 //
    15 
    15 
    16 
    16 
    17 #ifndef __TE_STATUS_REPORT_SCHEME_H__
    17 #ifndef TE_STATUSREPORTSCHEME_H
    18 #define __TE_STATUS_REPORT_SCHEME_H__
    18 #define TE_STATUSREPORTSCHEME_H
    19 
    19 
       
    20 #include "smsstackbaseteststeps.h"
       
    21 #include "smsstacktestutilities.h"
       
    22 #include "smsstacktestconsts.h"
    20 
    23 
    21 #include "gsmuieoperations.h"
    24 #include "gsmuieoperations.h"
    22 #include "gsmunonieoperations.h"
    25 #include "gsmunonieoperations.h"
    23 #include "TE_smsprt.h"
       
    24 
    26 
    25 /**
    27 /**
    26   Base class housing common functionality used by all test steps exercising 
    28   Base class housing common functionality used by all test steps exercising 
    27   status report functionality
    29   status report functionality
    28 */
    30 */
    29 class CTestStatusReportScheme : public CSmsPrtTestStep
    31 class CSmsStatusReportSchemeTestStep : public CSmsBaseTestStep
    30 {
    32     {
    31 public:
    33 public:
    32 	enum TCodingScheme{ESevenBit=7, EEightBit};
    34     virtual TVerdict doTestStepPreambleL();
       
    35     virtual TVerdict doTestStepPostambleL();
    33 
    36 
    34 	CTestStatusReportScheme();
    37     CSmsStatusReportSchemeTestStep();
    35 	~CTestStatusReportScheme();
    38     ~CSmsStatusReportSchemeTestStep();
    36 	
       
    37 	//Utilites
       
    38 	void CreateSmsL(TCodingScheme, TPtrC);
       
    39 	void SendSmsMessageL();
       
    40 	void TriggerReceiveL();
       
    41 	void GetNumberOfPDUs();
       
    42 
    39 
    43 	//TPSRR
    40     //Utilites - legacy methods, will be replaced by ones from the base class
    44 	void SetAllTPSRRsL();
    41     void CreateSmsL(TCodingScheme, TPtrC);
    45 	void SetLastTPSRRL();
    42     void SendSmsMessageL();
    46 	void SetSomeTPSRRL(TInt, TInt, TInt);
    43     void TriggerReceiveL();
    47 	
    44     void GetNumberOfPDUs();
    48 	//SMS
    45 
    49 	void SetAllSMSCL();
    46     //TPSRR
    50 	void SetLastSMSCL();
    47     void SetAllTPSRRsL();
    51 	void SetSomeSMSCL(TInt, TInt, TInt);
    48     void SetLastTPSRRL();
    52 		
    49     void SetSomeTPSRRL(TInt, TInt, TInt);
    53 	//TEF framework	
    50 
    54 	//virtual TVerdict doTestStepL();
    51     //SMS
    55  	virtual TVerdict doTestStepPreambleL();
    52     void SetAllSMSCL();
    56 	virtual TVerdict doTestStepPostambleL();
    53     void SetLastSMSCL();
       
    54     void SetSomeSMSCL(TInt, TInt, TInt);
    57 
    55 
    58 protected:
    56 protected:
    59 	TCodingScheme iDataCodingScheme;
    57     RSocket iSocket;
    60 	CSmsMessage* iSmsMessage;
    58     TCodingScheme iDataCodingScheme;
    61 	TInt iNumberOfPDUs;
    59     CSmsMessage* iSmsMessage;
    62 	
    60     TInt iNumberOfPDUs;
       
    61 
    63 private:
    62 private:
    64 	void SetTestNumberL();
    63     void OpenSocketServerL();
    65 	void OpenSocketServerL();
    64     void SetCodingScheme();
    66 	void SetCodingScheme();
    65     };
    67 
    66 
    68 protected:
    67 #endif // TE_STATUSREPORTSCHEME_H
    69 	RSocketServ iSocketServer;
       
    70 	RSocket iSocket;
       
    71 };
       
    72 
       
    73 #endif
       
    74 
       
    75 
       
    76