buildverification/smoketest/messaging/Inc/TestMessCreateSmsUtilBase.h
branchRCL_3
changeset 11 493058e57c8c
parent 0 9736f095102e
equal deleted inserted replaced
10:4ca382093dae 11:493058e57c8c
       
     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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This class is the base class for create CDMA or GSM SMS utility class
       
    15 // 
       
    16 //
       
    17 
       
    18 #if (!defined __TEST_MESS_CREATE_SMS_UTIL_BASE_H__)
       
    19 #define __TEST_MESS_CREATE_SMS_UTIL_BASE_H__
       
    20 
       
    21 #include "TestMessBase.h"
       
    22 
       
    23 // EPOC includes
       
    24 #include <mtmuids.h>
       
    25 #include <txtrich.h>
       
    26 
       
    27 #include <smut.h>
       
    28 
       
    29 /*@{*/
       
    30 _LIT(KBearer,				"bearer");
       
    31 _LIT(KEncoding,				"encoding");
       
    32 _LIT(KDef,					"default");
       
    33 _LIT(KDefBearer,			"smsbearer");
       
    34 _LIT(KDefEncoding,			"smsencoding");
       
    35 _LIT(KDefDeliveryReport,	"smsDeliveryReport");
       
    36 _LIT(KDeliveryReport,		"DeliveryReport");
       
    37 _LIT(KRejectDuplicate,		"SmsRejectDuplicate");
       
    38 _LIT(KReplyPath,			"SmsReplyPath");
       
    39 _LIT(KConCatenate,			"SmsConCatenate");
       
    40 
       
    41 _LIT(KBearerWap,			"wap");
       
    42 _LIT(KBearerWapSecure,		"wapsecure");
       
    43 /*@}*/
       
    44 
       
    45 /**
       
    46  This class is the base class for create GSM or CDMA SMS utility classes
       
    47 */
       
    48 class CTestMessCreateSmsUtilBase : public CBase
       
    49 	{
       
    50 public:
       
    51 	//Constructor
       
    52 	CTestMessCreateSmsUtilBase(CTestMessBase &aTestStep);
       
    53 
       
    54 	/**
       
    55 	 Prepare sms account details
       
    56 	*/
       
    57 	virtual void		PrepareAccountL(CMsvSession& aSession) = 0;
       
    58 
       
    59 	/**
       
    60 	 Creates the new header object
       
    61 	*/
       
    62 	virtual CSmsHeader*	NewHeaderL(CRichText &aBodyText) = 0;
       
    63 
       
    64 	/**
       
    65 	 Fills up the fields of the sms header object
       
    66 	*/
       
    67 	virtual void 		PrepareHeaderL(CSmsHeader &aSmsHeader) =0;
       
    68 
       
    69 	/**
       
    70 	 Fills up the fields of the sms account settings 
       
    71 	*/
       
    72 	virtual void 		SetSmsAccountSettings(CSmsSettings &aSmsSettings) =0;
       
    73 
       
    74 protected:
       
    75 	/**
       
    76 	 Reference to the test step which creates the utility class
       
    77 	*/
       
    78 	CTestMessBase&		iTestStep;
       
    79 	};
       
    80 
       
    81 #endif /* __TEST_MESS_CREATE_SMS_UTIL_BASE_H__ */