mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-21 16:55:17 +00:00
Merge pull request #20 from heartfin/19-collections-with-more-than-100-items-loop-back
setRequestStartIndex: actually set start index
This commit is contained in:
commit
ade8866303
|
@ -251,6 +251,8 @@ extern template void setRequestLimit(Loader::GetResumeItemsParams ¶ms, int l
|
|||
extern template bool setRequestStartIndex(Loader::GetResumeItemsParams ¶ms, int offset);
|
||||
extern template void setRequestLimit(Loader::GetPublicUsersParams ¶ms, int limit);
|
||||
extern template bool setRequestStartIndex(Loader::GetPublicUsersParams ¶ms, int offset);
|
||||
extern template void setRequestLimit(Loader::GetNextUpParams ¶ms, int limit);
|
||||
extern template bool setRequestStartIndex(Loader::GetNextUpParams ¶ms, int offset);
|
||||
|
||||
extern template QList<DTO::UserDto> extractRecords(const QList<DTO::UserDto> &result);
|
||||
extern template int extractTotalRecordCount(const QList<DTO::UserDto> &result);
|
||||
|
|
|
@ -150,7 +150,7 @@ void setRequestLimit(Loader::GetItemsByUserIdParams ¶ms, int limit) {
|
|||
|
||||
template<>
|
||||
bool setRequestStartIndex(Loader::GetItemsByUserIdParams ¶ms, int index) {
|
||||
params.setLimit(index);
|
||||
params.setStartIndex(index);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -161,7 +161,7 @@ void setRequestLimit(Loader::GetResumeItemsParams ¶ms, int limit) {
|
|||
|
||||
template<>
|
||||
bool setRequestStartIndex(Loader::GetResumeItemsParams ¶ms, int index) {
|
||||
params.setLimit(index);
|
||||
params.setStartIndex(index);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -174,6 +174,16 @@ bool setRequestStartIndex(Loader::GetPublicUsersParams &/*params*/, int /*offset
|
|||
return false;
|
||||
}
|
||||
|
||||
template<>
|
||||
void setRequestLimit(Loader::GetNextUpParams ¶ms, int limit) {
|
||||
params.setLimit(limit);
|
||||
}
|
||||
template<>
|
||||
bool setRequestStartIndex(Loader::GetNextUpParams ¶ms, int offset) {
|
||||
params.setStartIndex(offset);
|
||||
return true;
|
||||
}
|
||||
|
||||
template<>
|
||||
QList<DTO::UserDto> extractRecords(const QList<DTO::UserDto> &result) {
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue