diff -r 000000000000 -r 8e480a14352b messagingfw/msgtestfw/TestActions/Sms/inc/CMtfTestActionCreateEmailOverSmsMessage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingfw/msgtestfw/TestActions/Sms/inc/CMtfTestActionCreateEmailOverSmsMessage.h Mon Jan 18 20:36:02 2010 +0200 @@ -0,0 +1,53 @@ +// 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 __CMTFTESTACTIONCREATEEMAILOVERSMSMESSAGE_H__ +#define __CMTFTESTACTIONCREATEEMAILOVERSMSMESSAGE_H__ + + +#include "CMtfSynchronousTestAction.h" + +class CMsvEntry; +class TMsvEntry; + +_LIT(KTestActionCreateEmailOverSmsMessage,"CreateEmailOverSmsMessage"); + +/** +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 Email over SMS message entry, and stores the CSmsHeader object and CRichText object. +Right now, it only supports single recipient message. After creating the message, the +action stores the message entry ID to the supplied parameter. + +@internalTechnology +*/ +class CMtfTestActionCreateEmailOverSmsMessage : public CMtfSynchronousTestAction + { +public: + static CMtfTestAction* NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* aActionParameters); + +public: + virtual void ExecuteActionL(); + +private: + CMtfTestActionCreateEmailOverSmsMessage(CMtfTestCase& aTestCase); + void InitializeHeaderFromConfigL(TMsvEntry* indexEntry, CMsvEntry* aEntry); + }; + + +#endif