TInt CMtfTestActionUtilsSmsScripts::SetSmsHeaderInfoFromConfigurationFileL(CMtfTestCase& aTestCase, const TDesC& aSettingsFile, CSmsHeader& aSmsHeader) { CMtfTestActionUtilsConfigFileParser* scriptFileParser = CMtfTestActionUtilsConfigFileParser::NewL(aSettingsFile); CleanupStack::PushL(scriptFileParser); // Recipient Number: If the recipient number is not present in the file, Leave. TPtrC stringPtr; User::LeaveIfError(scriptFileParser->GetFieldAsString(KRecipient,stringPtr)); CSmsNumber* recipientNumber = CSmsNumber::NewL(); CleanupStack::PushL(recipientNumber); recipientNumber->SetAddressL(stringPtr); aSmsHeader.Recipients().AppendL(recipientNumber); //Bio UId Type if((scriptFileParser->GetFieldAsString(KBioUId,stringPtr)) == KErrNone) { TBioMsgIdType bioIdType = ObtainValueParameterL<TBioMsgIdType>(aTestCase, stringPtr); aSmsHeader.SetBioMsgIdType(bioIdType); } else { aSmsHeader.SetBioMsgIdType(); //Sets the message's BIO message type identifier as EBioMsgIdNbs } CleanupStack::Pop(2); return KErrNone; }