messagingfw/msgtestfw/TestActions/Sms/inc/CMtfTestActionCreateSmsMessage.h
author William Roberts <williamr@symbian.org>
Thu, 22 Jul 2010 16:38:12 +0100
branchGCC_SURGE
changeset 35 f8ad95794a08
parent 0 8e480a14352b
permissions -rw-r--r--
Catchup to latest Symbian^4

// 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