790 CSendMessageParams* sendParams = CSendMessageParams::NewL(); |
790 CSendMessageParams* sendParams = CSendMessageParams::NewL(); |
791 CleanupStack::PushL(sendParams); |
791 CleanupStack::PushL(sendParams); |
792 |
792 |
793 TInt pos = 0; |
793 TInt pos = 0; |
794 TBool indexBaseInp = ETrue; |
794 TBool indexBaseInp = ETrue; |
|
795 TBool isToPresent = ETrue; |
795 |
796 |
796 const TLiwGenericParam* inMessageType = aInParamList.FindFirst( pos, KMtm ); |
797 const TLiwGenericParam* inMessageType = aInParamList.FindFirst( pos, KMtm ); |
797 if ( inMessageType ) |
798 if ( inMessageType ) |
798 { |
799 { |
799 indexBaseInp = EFalse; |
800 indexBaseInp = EFalse; |
991 } |
992 } |
992 |
993 |
993 //this is an optional parameter so check for not null constraint, ignore this in case of NULL |
994 //this is an optional parameter so check for not null constraint, ignore this in case of NULL |
994 if ( inMap->FindL( KLaunchEditor, inParam ) && CheckInputTypeL( &inParam, EFalse, LIW::EVariantTypeTBool, KCmdSendMessage, KLaunchEditor, KTypeInvalid ) ) |
995 if ( inMap->FindL( KLaunchEditor, inParam ) && CheckInputTypeL( &inParam, EFalse, LIW::EVariantTypeTBool, KCmdSendMessage, KLaunchEditor, KTypeInvalid ) ) |
995 { |
996 { |
|
997 if(!isToPresent && !(inParam.AsTBool())) |
|
998 { |
|
999 CleanupStack::PopAndDestroy( &inParam ); |
|
1000 AppendErrorMessageL( KCmdSendMessage, KRecipientTo, KMissing, 1 ); |
|
1001 } |
996 sendParams->SetLaunchEditor( inParam.AsTBool() ); |
1002 sendParams->SetLaunchEditor( inParam.AsTBool() ); |
997 } |
1003 } |
998 |
1004 |
999 //this is an optional parameter so check for not null constraint, ignore this in case of NULL |
1005 //this is an optional parameter so check for not null constraint, ignore this in case of NULL |
1000 if ( inMap->FindL( KRecipientTo, inParam ) && CheckInputTypeL( &inParam, EFalse, LIW::EVariantTypeList, KCmdSendMessage, KRecipientTo, KTypeInvalid ) ) |
1006 if ( inMap->FindL( KRecipientTo, inParam ) && CheckInputTypeL( &inParam, EFalse, LIW::EVariantTypeList, KCmdSendMessage, KRecipientTo, KTypeInvalid ) ) |