emailservices/emailstore/message_store/server/src/MsgStoreStringSortResultRowSet.cpp
equal
deleted
inserted
replaced
579 { |
579 { |
580 TSortGroupId nextGroupId = iSortedResultArray[i]->GroupId(); |
580 TSortGroupId nextGroupId = iSortedResultArray[i]->GroupId(); |
581 if ( nextGroupId != curGroupId ) |
581 if ( nextGroupId != curGroupId ) |
582 { |
582 { |
583 //found a new group |
583 //found a new group |
584 aItemsInGroup.Append( i - curPos ); |
584 aItemsInGroup.AppendL( i - curPos ); |
585 curPos = i; |
585 curPos = i; |
586 curGroupId = nextGroupId; |
586 curGroupId = nextGroupId; |
587 } |
587 } |
588 } |
588 } |
589 //last group |
589 //last group |
590 aItemsInGroup.Append( i - curPos ); |
590 aItemsInGroup.AppendL( i - curPos ); |
591 } |
591 } |
592 |
592 |
593 return aItemsInGroup.Count(); |
593 return aItemsInGroup.Count(); |
594 } |
594 } |
595 |
595 |
609 while ( hasMore ) |
609 while ( hasMore ) |
610 { |
610 { |
611 TRAP( err, msgId = NextL() ); |
611 TRAP( err, msgId = NextL() ); |
612 if ( err == KErrNone ) |
612 if ( err == KErrNone ) |
613 { |
613 { |
614 aIdArray.Append( msgId ); |
614 aIdArray.AppendL( msgId ); |
615 } |
615 } |
616 else if ( err == KErrOverflow ) |
616 else if ( err == KErrOverflow ) |
617 { |
617 { |
618 hasMore = EFalse; |
618 hasMore = EFalse; |
619 } |
619 } |
1124 } |
1124 } |
1125 iSortedIdArray.Remove( index ); |
1125 iSortedIdArray.Remove( index ); |
1126 |
1126 |
1127 //now we can reset to initial state |
1127 //now we can reset to initial state |
1128 InitState(); |
1128 InitState(); |
1129 iSortedResultArray.Append( iCenterRow ); |
1129 iSortedResultArray.AppendL( iCenterRow ); |
1130 iSortedIdArray.Append( iCenterRow ); |
1130 iSortedIdArray.AppendL( iCenterRow ); |
1131 |
1131 |
1132 iState = EStateSliding; |
1132 iState = EStateSliding; |
1133 |
1133 |
1134 iSortingTable.ReEvaluateStringViewL( *this, iSortCriteria.iSortBy ); |
1134 iSortingTable.ReEvaluateStringViewL( *this, iSortCriteria.iSortBy ); |
1135 |
1135 |