messagingfw/msgtestfw/TestActions/Sms/inc/CMtfTestActionCreateSmsMessage.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 15:05:36 +0300
branchRCL_3
changeset 59 d1d846af7341
parent 0 8e480a14352b
permissions -rw-r--r--
Revision: 201039 Kit: 201041

// Copyright (c) 2004-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 __CMTFTESTACTIONCREATESMSMESSAGE_H__
#define __CMTFTESTACTIONCREATESMSMESSAGE_H__


#include "CMtfSynchronousTestAction.h"

class CMsvEntry;

_LIT(KTestActionCreateSmsMessage,"CreateSmsMessage");

/**
This action creates a simple SMS message.

The test action first gets the configuration settings from an SMS message configuration file.
It then creates an SMS message entry, and stores the CSmsHeader object and CRichText object.
Right now, it only supports single recipient message.  After creating the SMS message, the 
action stores the message entry ID to the supplied parameter.

@internalTechnology
*/
class CMtfTestActionCreateSmsMessage : public CMtfSynchronousTestAction
	{
public:
	static CMtfTestAction* NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* aActionParameters);

public:
	virtual void ExecuteActionL();
	
private:
	CMtfTestActionCreateSmsMessage(CMtfTestCase& aTestCase);
	void InitializeHeaderFromConfigL(CMsvEntry* aEntry);
	};


#endif