equal
deleted
inserted
replaced
753 newCacheEntry.iClientHandle = clientHandle; |
753 newCacheEntry.iClientHandle = clientHandle; |
754 newCacheEntry.iVibraDisabled = !aEnableVibra; |
754 newCacheEntry.iVibraDisabled = !aEnableVibra; |
755 newCacheEntry.iAudioDisabled = !aEnableAudio; |
755 newCacheEntry.iAudioDisabled = !aEnableAudio; |
756 newCacheEntry.iVisible = aControl->IsVisible(); |
756 newCacheEntry.iVisible = aControl->IsVisible(); |
757 newCacheEntry.iDimmed = aControl->IsDimmed(); |
757 newCacheEntry.iDimmed = aControl->IsDimmed(); |
758 |
758 // if append fail just make its action like before |
759 iControlCache.Append( newCacheEntry ); |
759 TRAP_IGNORE( iControlCache.AppendL( newCacheEntry ) ); |
760 } |
760 } |
761 } |
761 } |
762 } |
762 } |
763 } |
763 } |
764 |
764 |
1765 return KErrArgument; |
1765 return KErrArgument; |
1766 } |
1766 } |
1767 item.iFeedback = aFeedback; |
1767 item.iFeedback = aFeedback; |
1768 item.iFeedbackType = aFeedbackType; |
1768 item.iFeedbackType = aFeedbackType; |
1769 |
1769 |
1770 iFbArray.Append(item); |
1770 TInt err = iFbArray.Append(item); |
1771 return KErrNone; |
1771 return err; |
1772 } |
1772 } |
1773 |
1773 |
1774 // --------------------------------------------------------------------------- |
1774 // --------------------------------------------------------------------------- |
1775 // |
1775 // |
1776 // --------------------------------------------------------------------------- |
1776 // --------------------------------------------------------------------------- |
1785 { |
1785 { |
1786 TTactileFbItem item; |
1786 TTactileFbItem item; |
1787 item.iFeedback = iFbArray[i].iFeedback; |
1787 item.iFeedback = iFbArray[i].iFeedback; |
1788 item.iEventType = iFbArray[i].iEventType; |
1788 item.iEventType = iFbArray[i].iEventType; |
1789 item.iFeedbackType = iFbArray[i].iFeedbackType; |
1789 item.iFeedbackType = iFbArray[i].iFeedbackType; |
1790 aArray.Append(item); |
1790 // if append fail just make its action like before |
|
1791 TRAP_IGNORE( aArray.AppendL( item ) ); |
1791 } |
1792 } |
1792 } |
1793 } |
1793 |
1794 |
1794 // --------------------------------------------------------------------------- |
1795 // --------------------------------------------------------------------------- |
1795 // |
1796 // |