epoc32/include/smutset.inl
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/smutset.inl	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/smutset.inl	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,607 @@
     1.4 -smutset.inl
     1.5 +// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +//
    1.19 +
    1.20 +#include <smcmmain.h>
    1.21 +#include <smut.h>
    1.22 +
    1.23 +/** 
    1.24 +Constructor.
    1.25 +
    1.26 +@param	aType	
    1.27 +The type of operation for which progress information is being given.
    1.28 +*/
    1.29 +inline TSmsProgress::TSmsProgress(TSmsProgressType aType)
    1.30 +:	iError(KErrNone),
    1.31 +	iType(aType),
    1.32 +	iState(0),
    1.33 +	iRcpDone(0),
    1.34 +	iRcpCount(0),
    1.35 +	iMsgDone(0),
    1.36 +	iMsgCount(0),
    1.37 +	iEnumerateFolder(0)
    1.38 +	{
    1.39 +	iServiceCenterAddress.Zero();
    1.40 +	}
    1.41 +
    1.42 +/** 
    1.43 +Gets the validity period for messages sent by the SMS MTM.
    1.44 +
    1.45 +If the service centre is unable to deliver the SMS message before this time 
    1.46 +expires, a failure report may be generated by the service centre, and no further 
    1.47 +attempts will be made to deliver the message to ther recipient.
    1.48 +
    1.49 +Validity period is only used for SMS-SUBMIT, mobile originated messages.
    1.50 +
    1.51 +@return
    1.52 +The validity period of the message.
    1.53 +*/
    1.54 +inline const TTimeIntervalMinutes& CSmsMessageSettings::ValidityPeriod() const
    1.55 +	{
    1.56 +	return iValidityPeriod;
    1.57 +	}
    1.58 +
    1.59 +/** 
    1.60 +Sets the validity period for messages sent by the SMS MTM.
    1.61 +
    1.62 +@param	aValidityPeriod	
    1.63 +The validity period.
    1.64 +
    1.65 +@panic	SMCM	8	
    1.66 +The validity period is negative or greater than the maximum validity period
    1.67 +(debug only).
    1.68 +*/
    1.69 +inline void CSmsMessageSettings::SetValidityPeriod(TTimeIntervalMinutes aValidityPeriod)
    1.70 +	{
    1.71 +	__ASSERT_DEBUG(aValidityPeriod.Int()>=0 && aValidityPeriod.Int()<=ESmsVPMaximum,Panic(ESmscVPOutOfRange));
    1.72 +	iValidityPeriod=aValidityPeriod;
    1.73 +	}
    1.74 +
    1.75 +/**
    1.76 +Gets the values of the UI concatenated-SMS-allowed flag.
    1.77 +
    1.78 +If true, the UI should pass a long message in one piece to the MTM. If false, 
    1.79 +it should split the message manually into 140 byte parts. The value of this 
    1.80 +flag does not affect the behaviour of the SMS MTM.
    1.81 +
    1.82 +@return	
    1.83 +The concatenated-SMS-allowed flag.
    1.84 +*/
    1.85 +inline TBool CSmsMessageSettings::CanConcatenate() const
    1.86 +	{
    1.87 +	return iMsgFlags&ESmsSettingsCanConcatenate;
    1.88 +	}
    1.89 +
    1.90 +/** 
    1.91 +Sets the values of the UI concatenated-SMS-allowed flag.
    1.92 +
    1.93 +If true, the UI should pass a long message in one piece to the MTM. If false, 
    1.94 +it should split the message manually into 140 byte parts. The value of this 
    1.95 +flag does not affect the behaviour of the SMS MTM.
    1.96 +
    1.97 +@param	aCanConcatenate	
    1.98 +The value to set the concatenated-SMS-allowed flag to.
    1.99 +*/
   1.100 +inline void CSmsMessageSettings::SetCanConcatenate(TBool aCanConcatenate)
   1.101 +	{
   1.102 +	iMsgFlags = (iMsgFlags & ~ESmsSettingsCanConcatenate) | (aCanConcatenate?ESmsSettingsCanConcatenate : ESmsSettingsNoFlags);
   1.103 +	}
   1.104 +
   1.105 +/**
   1.106 +Gets the value of the reject-duplicate setting.
   1.107 +
   1.108 +If this is true, the service instructs the SC to reject an Sms-Submit for an 
   1.109 +SMS still held in the SC that has the same message reference number and same 
   1.110 +destination address as an previously submitted SMS from the same originating 
   1.111 +address.
   1.112 +
   1.113 +@return	
   1.114 +The value of the reject-duplicate setting.
   1.115 +*/
   1.116 +inline TBool CSmsMessageSettings::RejectDuplicate() const
   1.117 +	{	
   1.118 +	return iMsgFlags&ESmsSettingsRejectDuplicate;
   1.119 +	}
   1.120 +
   1.121 +/**
   1.122 +Sets the value of the reject-duplicate setting.
   1.123 +
   1.124 +@param	aRejectDuplicate	
   1.125 +The value to set the reject-duplicate setting to.
   1.126 +*/
   1.127 +inline void CSmsMessageSettings::SetRejectDuplicate(TBool aRejectDuplicate)
   1.128 +	{
   1.129 +	iMsgFlags = (iMsgFlags & ~ESmsSettingsRejectDuplicate) | (aRejectDuplicate?ESmsSettingsRejectDuplicate : ESmsSettingsNoFlags);
   1.130 +	}
   1.131 +
   1.132 +/**
   1.133 +Tests if a status report (TP-SRR in GSM spec 03.40) will be requested from 
   1.134 +the Service Centre.
   1.135 +
   1.136 +A value of ETrue indicates that a status report will be requested.
   1.137 +
   1.138 +@return	
   1.139 +The value of the Status report flag.
   1.140 +*/
   1.141 +inline TBool CSmsMessageSettings::DeliveryReport() const
   1.142 +	{
   1.143 +	return iMsgFlags&ESmsSettingsDeliveryReport;
   1.144 +	}
   1.145 +
   1.146 +/** 
   1.147 +Sets if a status report (TP-SRR in GSM spec 03.40) will be requested from the
   1.148 +Service Centre.
   1.149 +
   1.150 +A value of ETrue indicates that a status report will be requested.
   1.151 +
   1.152 +@param	aDeliveryReport	
   1.153 +The value of the status report flag.
   1.154 +*/
   1.155 +inline void CSmsMessageSettings::SetDeliveryReport(TBool aDeliveryReport)
   1.156 +	{
   1.157 +	iMsgFlags = (iMsgFlags & ~ESmsSettingsDeliveryReport) | (aDeliveryReport?ESmsSettingsDeliveryReport : ESmsSettingsNoFlags);
   1.158 +	}
   1.159 +
   1.160 +/**
   1.161 +Gets the boolean flag that indicates whether a the reply path (Service Centre
   1.162 +address) should be included in the SMS-SUBMIT message (TP-RP in GSM spec 03.40).
   1.163 +
   1.164 +A value of ETrue indicates that the Service Centre address should be included.
   1.165 +This flag is only relavent for SMS-SUBMIT messages.
   1.166 +
   1.167 +@return
   1.168 +The value of the reply path flag.
   1.169 +*/
   1.170 +
   1.171 +inline TBool CSmsMessageSettings::ReplyPath() const
   1.172 +	{
   1.173 +	return iMsgFlags&ESmsSettingsReplyPathRequested;
   1.174 +	}
   1.175 +
   1.176 +/**
   1.177 +Sets the boolean flag that indicates whether a the reply path (Service Centre
   1.178 +address) should be included in the SMS-SUBMIT message (TP-RP in GSM spec 03.40).
   1.179 +
   1.180 +A value of ETrue indicates that the Service Centre address should be included.
   1.181 +This flag is only relavent for SMS-SUBMIT messages.
   1.182 +
   1.183 +@param   aReplyPathRequest
   1.184 +The value of the reply path flag.
   1.185 +*/
   1.186 +inline void CSmsMessageSettings::SetReplyPath(TBool aReplyPathRequest)
   1.187 +	{
   1.188 +	iMsgFlags = (iMsgFlags & ~ESmsSettingsReplyPathRequested) | (aReplyPathRequest?ESmsSettingsReplyPathRequested : ESmsSettingsNoFlags);
   1.189 +	}
   1.190 +
   1.191 +/**
   1.192 +Gets the form in which the message should be delivered to the recipient by 
   1.193 +the service centre. 
   1.194 +
   1.195 +Note that the form may or may not actually be supported by the service centre, 
   1.196 +and that the format of the recipient address(es) may need to be different 
   1.197 +to a normal telephone number if MessageConversion() is set to any other value 
   1.198 +than ESmsConvPIDNone, ESmsConvFax, ESmsConvPaging or ESmsConvErmes.
   1.199 +
   1.200 +@return
   1.201 +The value of the message form specifier.
   1.202 +*/
   1.203 +inline TSmsPIDConversion CSmsMessageSettings::MessageConversion() const
   1.204 +	{
   1.205 +	return iMessageConversion;
   1.206 +	}
   1.207 +
   1.208 +/**
   1.209 +Sets the form in which the message should be delivered to the recipient by the
   1.210 +Service Centre. 
   1.211 +
   1.212 +Note that the form may or may not actually be supported by the service centre, 
   1.213 +and that the format of the recipient address(es) may need to be different 
   1.214 +to a normal telephone number if MessageConversion() is set to any other value 
   1.215 +than ESmsConvPIDNone, ESmsConvFax, ESmsConvPaging or ESmsConvErmes.
   1.216 +
   1.217 +
   1.218 +@param	aMessageConversion
   1.219 +The message form specifier.
   1.220 +*/
   1.221 +inline void CSmsMessageSettings::SetMessageConversion(TSmsPIDConversion aMessageConversion)
   1.222 +	{
   1.223 +	iMessageConversion=aMessageConversion;
   1.224 +	}
   1.225 +
   1.226 +/** 
   1.227 +Gets the default character set used in the SMS message. 
   1.228 +
   1.229 +Text is stored in Unicode on the Symbian OS phone and is converted into the 
   1.230 +appropriate character set when the message is sent.
   1.231 +
   1.232 +@return
   1.233 +The default character set for the message.
   1.234 +*/
   1.235 +inline TSmsDataCodingScheme::TSmsAlphabet CSmsMessageSettings::CharacterSet() const
   1.236 +	{
   1.237 +	return iAlphabet;
   1.238 +	}
   1.239 +
   1.240 +/**
   1.241 +Sets the default character set used in the SMS message.
   1.242 +
   1.243 +Text is stored in Unicode on the Symbian OS phone and is converted into the 
   1.244 +appropriate character set when the message is sent.
   1.245 +
   1.246 +@param	aAlphabet
   1.247 +The value of the default character set for the message.
   1.248 +*/
   1.249 +inline void CSmsMessageSettings::SetCharacterSet(TSmsDataCodingScheme::TSmsAlphabet aAlphabet)
   1.250 +	{
   1.251 +	iAlphabet=aAlphabet;
   1.252 +	}
   1.253 +
   1.254 +/**
   1.255 +Sets the format in which the validity period should be sent in a SMS-DELIVER 
   1.256 +type message.
   1.257 +
   1.258 +This is field TP-VPF from GSM spec 03.40.
   1.259 +
   1.260 +@param	aValidityPeriodFormat
   1.261 +The validity period format.
   1.262 +*/
   1.263 +inline void CSmsMessageSettings::SetValidityPeriodFormat(TSmsFirstOctet::TSmsValidityPeriodFormat aValidityPeriodFormat)
   1.264 +	{
   1.265 +	iValidityPeriodFormat = aValidityPeriodFormat;
   1.266 +	}
   1.267 +
   1.268 +/** 
   1.269 +Gets the format in which the validity period should be sent in a SMS-DELIVER
   1.270 +type message.
   1.271 +
   1.272 +@return
   1.273 +The validity period format.
   1.274 +*/
   1.275 +inline const TSmsFirstOctet::TSmsValidityPeriodFormat CSmsMessageSettings::ValidityPeriodFormat() const
   1.276 +	{
   1.277 +	return iValidityPeriodFormat;
   1.278 +	}
   1.279 +
   1.280 +/**
   1.281 +Sets the flag which indicates whether the service center timestamp should
   1.282 +be used for the date field in the TMsvEntry in message store. If the flag
   1.283 +is not set, then the timestamp from the associated CSmsMessage is used.
   1.284 +
   1.285 +@param	aUseServiceCenterTimestamp
   1.286 +Flag to indicate whether to use the service center timestamp
   1.287 +*/
   1.288 +inline void CSmsMessageSettings::SetUseServiceCenterTimeStampForDate(TBool aUseServiceCenterTimestamp)
   1.289 +	{
   1.290 +	iMsgFlags = (iMsgFlags & ~ESmsSettingsUseServiceCenterTimeStamp) | (aUseServiceCenterTimestamp ? ESmsSettingsUseServiceCenterTimeStamp : ESmsSettingsNoFlags);
   1.291 +	}
   1.292 +
   1.293 +/**
   1.294 +Gets the flag which indicates whether the service center timestamp should
   1.295 +be used for the date field in the TMsvEntry in message store. If the flag
   1.296 +is not set, then the timestamp from the associated CSmsMessage is used.
   1.297 +
   1.298 +@return Flag which indcates if service center timestamp will be used.
   1.299 +*/
   1.300 +inline TBool CSmsMessageSettings::UseServiceCenterTimeStampForDate() const
   1.301 +	{
   1.302 +	return iMsgFlags & ESmsSettingsUseServiceCenterTimeStamp;
   1.303 +	}
   1.304 +
   1.305 +/**
   1.306 +Gets whether the editor should quote the received message at the beginning of 
   1.307 +the reply message.
   1.308 +
   1.309 +@return	
   1.310 +A value of ETrue if the editor should quote the received message at the beginning
   1.311 +of the reply. EFalse if not.
   1.312 +*/
   1.313 +inline TBool CSmsSettings::ReplyQuoted() const
   1.314 +	{
   1.315 +	return iSetFlags&ESmsSettingsReplyQuoted;
   1.316 +	}
   1.317 +
   1.318 +/**
   1.319 +Sets whether the editor should quote the received message at the beginning of
   1.320 +the reply message.
   1.321 +
   1.322 +@param	aReplyQuited
   1.323 +The value to set the reply-quoted flag to.
   1.324 +*/
   1.325 +inline void CSmsSettings::SetReplyQuoted(TBool aReplyQuoted)
   1.326 +	{
   1.327 +	iSetFlags = (iSetFlags & ~ESmsSettingsReplyQuoted) | (aReplyQuoted?ESmsSettingsReplyQuoted : ESmsSettingsNoFlags);
   1.328 +	}
   1.329 +
   1.330 +/** 
   1.331 +Gets the default schedule delivery type of a new message created using the SMS
   1.332 +client MTM.
   1.333 +
   1.334 +@return	
   1.335 +The schedule delivery type.
   1.336 +*/
   1.337 +inline TSmsDelivery CSmsSettings::Delivery() const
   1.338 +	{
   1.339 +	return iDelivery;
   1.340 +	}
   1.341 +
   1.342 +/** 
   1.343 +Sets the default schedule delivery type of a new message created using the SMS
   1.344 +client MTM.
   1.345 +
   1.346 +@param	aDelivery
   1.347 +The schedule delivery type.
   1.348 +*/
   1.349 +inline void CSmsSettings::SetDelivery(TSmsDelivery aDelivery)
   1.350 +	{
   1.351 +	iDelivery=aDelivery;
   1.352 +	}
   1.353 +
   1.354 +
   1.355 +/**
   1.356 +Gets the way in which status reports that are received by the watcher are handled.
   1.357 +
   1.358 +By default, this is EDoNotWatchForReport. This value is not supported and 
   1.359 +therefore the value must be changed from the default.
   1.360 +
   1.361 +@return
   1.362 +How SMS status reports are handled.
   1.363 +
   1.364 +@see	CSmsSettings::TSmsReportHandling
   1.365 +*/
   1.366 +inline CSmsSettings::TSmsReportHandling CSmsSettings::StatusReportHandling() const
   1.367 +	{
   1.368 +	return iStatusReportHandling;
   1.369 +	}
   1.370 +
   1.371 +/**
   1.372 +Sets the way in which status reports that are received by the watcher are handled.
   1.373 +
   1.374 +@param	aStatusReportHandling
   1.375 +The SMS status report handling data.
   1.376 +
   1.377 +@see	CSmsSettings::TSmsReportHandling
   1.378 +*/
   1.379 +inline void CSmsSettings::SetStatusReportHandling(CSmsSettings::TSmsReportHandling aStatusReportHandling)
   1.380 +	{
   1.381 +	iStatusReportHandling = aStatusReportHandling;
   1.382 +	}
   1.383 +
   1.384 +/**
   1.385 +Gets the way in which special messages that are received by the watcher are 
   1.386 +handled. 
   1.387 +
   1.388 +By default, this is EDoNotWatchForReport. This value is not supported and 
   1.389 +therefore the value must be changed from the default.
   1.390 +
   1.391 +@return
   1.392 +How special messages are handled.
   1.393 +
   1.394 +@see	CSmsSettings::TSmsReportHandling
   1.395 +*/
   1.396 +inline CSmsSettings::TSmsReportHandling CSmsSettings::SpecialMessageHandling() const
   1.397 +	{
   1.398 +	return iSpecialMessageHandling;
   1.399 +	}
   1.400 +
   1.401 +/**
   1.402 +Sets the way in which special messages that are received by the watcher are 
   1.403 +handled.
   1.404 +
   1.405 +@param	aSpecialMessageHandling
   1.406 +The special messages handling data.
   1.407 +
   1.408 +@see	CSmsSettings::TSmsReportHandling
   1.409 +*/
   1.410 +inline void CSmsSettings::SetSpecialMessageHandling(CSmsSettings::TSmsReportHandling aSpecialMessageHandling)
   1.411 +	{
   1.412 +	iSpecialMessageHandling = aSpecialMessageHandling;
   1.413 +	}
   1.414 +
   1.415 +/**
   1.416 +Sets whether the Service settings should be used to update the communications 
   1.417 +database.
   1.418 +
   1.419 +If set, this uses the service settings to update the comms db MODEM table's 
   1.420 +MODEM_MESSAGE_CENTRE_NUMBER, MODEM_MESSAGE_VALIDITY_PERIOD and 
   1.421 +MODEM_MESSAGE_DELIVERY_REPORT fields. The update is done when the Service 
   1.422 +settings are stored into the message store using CSmsSettings::StoreL().
   1.423 +
   1.424 +The default setting is for the comms db not to be updated - TSmsSettingsCommDbAction::ENone.
   1.425 +
   1.426 +@param	aCommDbAction
   1.427 +The communications database action.
   1.428 +
   1.429 +@see	CSmsSettings::TSmsSettingsCommDbAction
   1.430 +@see	CSmsSettings::StoreL
   1.431 +*/
   1.432 +inline void CSmsSettings::SetCommDbAction(CSmsSettings::TSmsSettingsCommDbAction aCommDbAction)
   1.433 +	{
   1.434 +	iCommDbAction = aCommDbAction;
   1.435 +	}
   1.436 +
   1.437 +/**
   1.438 +Gets the communications database action.
   1.439 +
   1.440 +For details, see CSmsSettings::SetCommDbAction().
   1.441 +
   1.442 +@return
   1.443 +The communications database action.
   1.444 +
   1.445 +@see	CSmsSettings::TSmsSettingsCommDbAction
   1.446 +@see	CSmsSettings::SetCommDbAction
   1.447 +*/
   1.448 +inline CSmsSettings::TSmsSettingsCommDbAction CSmsSettings::CommDbAction() const
   1.449 +	{
   1.450 +	return iCommDbAction;
   1.451 +	}
   1.452 +
   1.453 +/**
   1.454 +Sets whether the Service's SMS bearer setting should be used to update the 
   1.455 +communications database.
   1.456 +
   1.457 +If set, this uses the service setting to update the comm db global table's 
   1.458 +SMS_BEARER field. The update is done when the Service settings are stored into 
   1.459 +the message store using CSmsSettings::StoreL().
   1.460 +
   1.461 +The default setting is for the comms db not to be updated - TSmsSettingsCommDbAction::ENone.
   1.462 +
   1.463 +@param	aSmsBearerAction
   1.464 +The SMS bearer action.
   1.465 +
   1.466 +@see	CSmsSettings::TSmsSettingsCommDbAction
   1.467 +@see	CSmsSettings::StoreL
   1.468 +*/
   1.469 +inline void CSmsSettings::SetSmsBearerAction(CSmsSettings::TSmsSettingsCommDbAction aSmsBearerAction)
   1.470 +	{
   1.471 +	iSmsBearerAction = aSmsBearerAction;
   1.472 +	}
   1.473 +
   1.474 +/**
   1.475 +Gets the SMS bearer action.
   1.476 +
   1.477 +For details, see CSmsSettings::SetCommDbAction().
   1.478 +
   1.479 +@return The SMS bearer action. 
   1.480 +
   1.481 +@see	CSmsSettings::TSmsSettingsCommDbAction
   1.482 +@see	CSmsSettings::SetSmsBearerAction
   1.483 +*/
   1.484 +inline CSmsSettings::TSmsSettingsCommDbAction CSmsSettings::SmsBearerAction() const
   1.485 +	{
   1.486 +	return iSmsBearerAction;
   1.487 +	}
   1.488 +
   1.489 +/**
   1.490 +Sets the SMS bearer.
   1.491 +
   1.492 +@param	aSmsBearer
   1.493 +The SMS bearer.
   1.494 +*/
   1.495 +inline void CSmsSettings::SetSmsBearer(CSmsSettings::TMobileSmsBearer aSmsBearer)
   1.496 +	{
   1.497 +	iSmsBearer = aSmsBearer;
   1.498 +	}
   1.499 +
   1.500 +/**
   1.501 +Gets the SMS bearer.
   1.502 +
   1.503 +@return
   1.504 +The SMS bearer.
   1.505 +*/
   1.506 +inline CSmsSettings::TMobileSmsBearer CSmsSettings::SmsBearer() const
   1.507 +	{
   1.508 +	return iSmsBearer;
   1.509 +	}
   1.510 +
   1.511 +/**
   1.512 +Sets the folder ID into which received class 2 SMS-DELIVER messages are stored.
   1.513 +
   1.514 +@param	aId
   1.515 +The folder ID for received class 2 messages.
   1.516 +*/
   1.517 +inline void CSmsSettings::SetClass2Folder(TMsvId aId)
   1.518 +	{
   1.519 +	iClass2Folder = aId;
   1.520 +	}
   1.521 +
   1.522 +/**
   1.523 +Gets the folder ID into which received class 2 SMS-DELIVER messages are stored.
   1.524 +
   1.525 +@return
   1.526 +The class 2 folder ID.
   1.527 +*/
   1.528 +inline TMsvId CSmsSettings::Class2Folder() const
   1.529 +	{
   1.530 +	return iClass2Folder;
   1.531 +	}
   1.532 +
   1.533 +/**
   1.534 +Sets the maximum length of the message entry description.
   1.535 +
   1.536 +The default value is given by KSmsDescriptionLength.
   1.537 +
   1.538 +@param	aDescriptionLength
   1.539 +The maximum length.
   1.540 +
   1.541 +@see	KSmsDescriptionLength
   1.542 +*/
   1.543 +inline void CSmsSettings::SetDescriptionLength(TInt aDescriptionLength)
   1.544 +	{
   1.545 +	iDescriptionLength = aDescriptionLength;
   1.546 +	}
   1.547 +
   1.548 +/**
   1.549 +Gets the maximum length of the message entry description.
   1.550 +
   1.551 +@return
   1.552 +The maximum length of the message entry description.
   1.553 +
   1.554 +@see	KSmsDescriptionLength
   1.555 +*/
   1.556 +inline TInt CSmsSettings::DescriptionLength() const
   1.557 +	{
   1.558 +	return iDescriptionLength;
   1.559 +	}
   1.560 +
   1.561 +/**
   1.562 +Gets the ID by which to identify the SMS-DELIVER message PDU for this recipient.
   1.563 +
   1.564 +@return	
   1.565 +The log ID for this recipient.
   1.566 +*/
   1.567 +inline TLogId CSmsNumber::LogId() const
   1.568 +	{
   1.569 +	return iLogId;
   1.570 +	}
   1.571 +
   1.572 +/** 
   1.573 +Sets the ID by which to identify the SMS-DELIVER message PDU for this recipient.
   1.574 +
   1.575 +@param	aLogId	
   1.576 +The log ID for this recipient.
   1.577 +*/
   1.578 +inline void CSmsNumber::SetLogId(TLogId aLogId)
   1.579 +	{
   1.580 +	iLogId = aLogId;
   1.581 +	}
   1.582 +
   1.583 +/**
   1.584 +Tests if a status report (TP-SRR in GSM spec 03.40) for the last segment will be requested from 
   1.585 +the Service Centre.
   1.586 +
   1.587 +A value of ETrue indicates that a status report will be requested for the last segment.
   1.588 +
   1.589 +@return	
   1.590 +The value of the Status report flag only for the last segment.
   1.591 +*/
   1.592 +
   1.593 +inline TBool CSmsMessageSettings::LastSegmentDeliveryReport() const
   1.594 +	{
   1.595 +	return iMsgFlags & ESmsSettingsLastSegmentDeliveryReport;
   1.596 +	}
   1.597 +
   1.598 +/** 
   1.599 +Sets if a status report (TP-SRR in GSM spec 03.40) for the last segment will be requested from the
   1.600 +Service Centre.
   1.601 +
   1.602 +A value of ETrue indicates that a status report will be requested for the last segment.
   1.603 +
   1.604 +@param	aDeliveryReport	
   1.605 +The value of the status report flagfor the last segment.
   1.606 +*/
   1.607 +
   1.608 +inline void CSmsMessageSettings::SetLastSegmentDeliveryReport(TBool aDeliveryReport)
   1.609 +	{
   1.610 +	iMsgFlags = (iMsgFlags & ~ESmsSettingsLastSegmentDeliveryReport) | (aDeliveryReport?ESmsSettingsLastSegmentDeliveryReport : ENoSmsSettingsLastSegmentDeliveryReport);
   1.611 +	}