common/tools/ats/smoketest/messaging/Inc/TestMessCreateCdmaSmsUtil.h
changeset 117 483f966c6335
child 872 17498133d9ad
equal deleted inserted replaced
113:7f0174848f99 117:483f966c6335
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This class creates a Cdma sms header and service settings. It sets the fields by reading
       
    15 // from the ini file
       
    16 // 
       
    17 //
       
    18  
       
    19 
       
    20 #if (!defined __TEST_MESS_CREATE_CDMA_SMS_UTIL_H__)
       
    21 #define __TEST_MESS_CREATE_CDMA_SMS_UTIL_H__
       
    22 
       
    23 #include "TestMessCreateSmsUtilBase.h"
       
    24 
       
    25 /**
       
    26  This class creates a Cdma sms header and service settings.It sets the fields by reading
       
    27  from the ini file
       
    28 */
       
    29 class CTestMessCreateCdmaSmsUtil : public CTestMessCreateSmsUtilBase
       
    30 {
       
    31 public:
       
    32 	//Constructor
       
    33 	CTestMessCreateCdmaSmsUtil(CTestMessBase &aTestStep);
       
    34 
       
    35 	//Creates a new header
       
    36 	CSmsHeader* NewHeaderL(CRichText &aBodyText);
       
    37 
       
    38 	//Sets the fields of the header
       
    39 	void PrepareHeaderL(CSmsHeader &aSmsHeader);
       
    40 
       
    41 	//Sets the account settings.
       
    42 	void SetSmsAccountSettings(CSmsSettings &aSmsSettings);
       
    43 
       
    44 private:
       
    45 	//Gets the message type of the SMS
       
    46 	TSmsMessageType GetMessageTypeId(TPtrC aMessageType);
       
    47 	
       
    48 	//Gets the tele service ID
       
    49 	tia637::TTeleserviceId GetTeleServiceId(TPtrC aTeleService);
       
    50 
       
    51 	//Gets the message conversion ID
       
    52 	TSmsPIDConversion GetMessageConversionId(TPtrC aMessageConversion);
       
    53 	
       
    54 };
       
    55 
       
    56 #endif /* __TEST_MESS_CREATE_CDMA_SMS_UTIL_H__ */