smsprotocols/smsstack/smsprot/Test/TE_Smsprt/Te_StatusReportScheme.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 01:41:59 +0200
changeset 0 3553901f7fa8
child 14 7ef16719d8cb
permissions -rw-r--r--
Revision: 201005 Kit: 201005

// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//


#ifndef __TE_STATUS_REPORT_SCHEME_H__
#define __TE_STATUS_REPORT_SCHEME_H__


#include "gsmuieoperations.h"
#include "gsmunonieoperations.h"
#include "TE_smsprt.h"

/**
  Base class housing common functionality used by all test steps exercising 
  status report functionality
*/
class CTestStatusReportScheme : public CSmsPrtTestStep
{
public:
	enum TCodingScheme{ESevenBit=7, EEightBit};

	CTestStatusReportScheme();
	~CTestStatusReportScheme();
	
	//Utilites
	void CreateSmsL(TCodingScheme, TPtrC);
	void SendSmsMessageL();
	void TriggerReceiveL();
	void GetNumberOfPDUs();

	//TPSRR
	void SetAllTPSRRsL();
	void SetLastTPSRRL();
	void SetSomeTPSRRL(TInt, TInt, TInt);
	
	//SMS
	void SetAllSMSCL();
	void SetLastSMSCL();
	void SetSomeSMSCL(TInt, TInt, TInt);
		
	//TEF framework	
	//virtual TVerdict doTestStepL();
 	virtual TVerdict doTestStepPreambleL();
	virtual TVerdict doTestStepPostambleL();

protected:
	TCodingScheme iDataCodingScheme;
	CSmsMessage* iSmsMessage;
	TInt iNumberOfPDUs;
	
private:
	void SetTestNumberL();
	void OpenSocketServerL();
	void SetCodingScheme();

protected:
	RSocketServ iSocketServer;
	RSocket iSocket;
};

#endif