1515 if ( iSession->GetEntry( id, service, tEntry ) == KErrNone ) |
1515 if ( iSession->GetEntry( id, service, tEntry ) == KErrNone ) |
1516 { |
1516 { |
1517 if ( tEntry.iMtm == KUidMsgMMSNotification ) |
1517 if ( tEntry.iMtm == KUidMsgMMSNotification ) |
1518 { |
1518 { |
1519 mmsCount++; |
1519 mmsCount++; |
1520 if ( uiData->OperationSupportedL( KMtmUiFunctionDeleteMessage, tEntry ) ) |
1520 //Coverty fix,NULL RETURN, http://ousrv057/cov.cgi?cid=101801 |
|
1521 if ( uiData ) |
1521 { |
1522 { |
1522 //MMS notification delete this entry not supported |
1523 if ( uiData->OperationSupportedL( KMtmUiFunctionDeleteMessage, tEntry ) ) |
1523 mmsNotDeleteCount ++; |
1524 { |
|
1525 //MMS notification delete this entry not supported |
|
1526 mmsNotDeleteCount ++; |
|
1527 } |
1524 } |
1528 } |
1525 } |
1529 } |
1526 } |
1530 } |
1527 } |
1531 } |
1528 if ( mmsCount == count ) |
1532 if ( mmsCount == count ) |
1529 { |
1533 { |
1530 //if only mms notifications, then move cannot be done |
1534 //if only mms notifications, then move cannot be done |
1822 ( currentEntry.iMtm == KUidMsgMMSNotification ) ) |
1826 ( currentEntry.iMtm == KUidMsgMMSNotification ) ) |
1823 { |
1827 { |
1824 aMenuPane->SetItemDimmed( EMceCmdMove, ETrue ); |
1828 aMenuPane->SetItemDimmed( EMceCmdMove, ETrue ); |
1825 //check also open |
1829 //check also open |
1826 CBaseMtmUiData* uiData = iMceUi->GetMtmUiDataL( KUidMsgMMSNotification ); |
1830 CBaseMtmUiData* uiData = iMceUi->GetMtmUiDataL( KUidMsgMMSNotification ); |
1827 aMenuPane->SetItemDimmed( EAknCmdOpen, |
1831 // Coverty change, NULL Return, http://ousrv057/cov.cgi?cid=101800 |
1828 uiData->OperationSupportedL( KMtmUiFunctionOpenMessage, currentEntry ) ); |
1832 if ( uiData ) |
1829 aMenuPane->SetItemDimmed( EMceCmdDelete, |
1833 { |
1830 uiData->OperationSupportedL( KMtmUiFunctionDeleteMessage, currentEntry ) ); |
1834 aMenuPane->SetItemDimmed( EAknCmdOpen, |
|
1835 uiData->OperationSupportedL( KMtmUiFunctionOpenMessage, currentEntry ) ); |
|
1836 aMenuPane->SetItemDimmed( EMceCmdDelete, |
|
1837 uiData->OperationSupportedL( KMtmUiFunctionDeleteMessage, currentEntry ) ); |
|
1838 } |
1831 } |
1839 } |
1832 |
1840 |
1833 aMenuPane->SetItemDimmed( EMceCmdOutboxSuspend, ETrue ); |
1841 aMenuPane->SetItemDimmed( EMceCmdOutboxSuspend, ETrue ); |
1834 aMenuPane->SetItemDimmed( EMceCmdOutboxStart, ETrue ); |
1842 aMenuPane->SetItemDimmed( EMceCmdOutboxStart, ETrue ); |
1835 aMenuPane->SetItemDimmed( EMceCmdOutboxMoveToDrafts, ETrue ); |
1843 aMenuPane->SetItemDimmed( EMceCmdOutboxMoveToDrafts, ETrue ); |
3073 { |
3081 { |
3074 if ( ( currentEntry.iType == KUidMsvMessageEntry ) && |
3082 if ( ( currentEntry.iType == KUidMsvMessageEntry ) && |
3075 ( currentEntry.iMtm == KUidMsgMMSNotification ) ) |
3083 ( currentEntry.iMtm == KUidMsgMMSNotification ) ) |
3076 { |
3084 { |
3077 CBaseMtmUiData* uiData = iMceUi->GetMtmUiDataL( KUidMsgMMSNotification ); |
3085 CBaseMtmUiData* uiData = iMceUi->GetMtmUiDataL( KUidMsgMMSNotification ); |
3078 skip = uiData->OperationSupportedL( KMtmUiFunctionOpenMessage, currentEntry ); |
3086 // Coverty change, NULL Return, http://ousrv057/cov.cgi?cid=101803 |
|
3087 if ( uiData ) |
|
3088 { |
|
3089 skip = uiData->OperationSupportedL( KMtmUiFunctionOpenMessage, currentEntry ); |
|
3090 } |
3079 } |
3091 } |
3080 } |
3092 } |
3081 } |
3093 } |
3082 return skip; |
3094 return skip; |
3083 } |
3095 } |
3801 TMsvEntry currentEntry; |
3813 TMsvEntry currentEntry; |
3802 TMsvId serviceId; |
3814 TMsvId serviceId; |
3803 iSession->GetEntry( id, serviceId, currentEntry ); |
3815 iSession->GetEntry( id, serviceId, currentEntry ); |
3804 |
3816 |
3805 CBaseMtmUiData* mtmUiData = iMceUi->GetMtmUiDataL( currentEntry.iMtm ); |
3817 CBaseMtmUiData* mtmUiData = iMceUi->GetMtmUiDataL( currentEntry.iMtm ); |
3806 if ( currentEntry.iMtm == KUidMsgMMSNotification && |
3818 // Coverty fix NULL Return, http://ousrv057/cov.cgi?cid=101802 |
|
3819 if ( currentEntry.iMtm == KUidMsgMMSNotification && mtmUiData && |
3807 mtmUiData->OperationSupportedL(KMtmUiFunctionOpenMessage, currentEntry ) ) |
3820 mtmUiData->OperationSupportedL(KMtmUiFunctionOpenMessage, currentEntry ) ) |
3808 { |
3821 { |
3809 // when MMSNotification is in retrieving status, the hide open for MSK |
3822 // when MMSNotification is in retrieving status, the hide open for MSK |
3810 resourceId = R_MCE_MSK_BUTTON_EMPTY; |
3823 resourceId = R_MCE_MSK_BUTTON_EMPTY; |
3811 } |
3824 } |
3812 else |
3825 else |
3813 { |
3826 { |
3814 resourceId = R_MCE_MSK_BUTTON_OPEN; |
3827 resourceId = R_MCE_MSK_BUTTON_OPEN; |
3815 } |
3828 } |
3816 } |
3829 } |
3817 else |
3830 else |
3818 { |
3831 { |
3819 if ( CMceMessageListContainerBase::EMessageListItemSubtitle == iMsgListContainer->CurrentItemType()) |
3832 if ( CMceMessageListContainerBase::EMessageListItemSubtitle == iMsgListContainer->CurrentItemType()) |
3820 { |
3833 { |
3877 TMsvEntry currentEntry; |
3890 TMsvEntry currentEntry; |
3878 TMsvId serviceId; |
3891 TMsvId serviceId; |
3879 iSession->GetEntry( id, serviceId, currentEntry ); |
3892 iSession->GetEntry( id, serviceId, currentEntry ); |
3880 |
3893 |
3881 CBaseMtmUiData* mtmUiData = iMceUi->GetMtmUiDataL( currentEntry.iMtm ); |
3894 CBaseMtmUiData* mtmUiData = iMceUi->GetMtmUiDataL( currentEntry.iMtm ); |
3882 if ( currentEntry.iMtm == KUidMsgMMSNotification && |
3895 // Coverty fix, NULL Return, http://ousrv057/cov.cgi?cid=101802 |
|
3896 if ( currentEntry.iMtm == KUidMsgMMSNotification && mtmUiData && |
3883 mtmUiData->OperationSupportedL(KMtmUiFunctionOpenMessage, currentEntry ) ) |
3897 mtmUiData->OperationSupportedL(KMtmUiFunctionOpenMessage, currentEntry ) ) |
3884 { |
3898 { |
3885 // when MMSNotification is in retrieving status, the hide open for MSK |
3899 // when MMSNotification is in retrieving status, the hide open for MSK |
3886 resourceId = R_MCE_MSK_BUTTON_EMPTY; |
3900 resourceId = R_MCE_MSK_BUTTON_EMPTY; |
3887 } |
3901 } |
3888 else |
3902 else |
3889 { |
3903 { |
3890 resourceId = R_MCE_MSK_BUTTON_OPEN; |
3904 resourceId = R_MCE_MSK_BUTTON_OPEN; |
3891 } |
3905 } |
3892 } |
3906 } |
3893 else |
3907 else |
3894 { |
3908 { |
3895 resourceId = iMsgListContainer->SetSpecialMskL(); |
3909 resourceId = iMsgListContainer->SetSpecialMskL(); |
3896 } |
3910 } |