mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2026-05-19 10:35:16 +00:00
Fix a few bugs regarding loaders and models
* Properly keep track of the current offset and total recourd count in models. * Catch exceptions and store them in errorString properties wherever applicable in loaders.
This commit is contained in:
parent
1aae311b9b
commit
5ee2869db9
5 changed files with 77 additions and 36 deletions
|
|
@ -141,6 +141,29 @@ bool setRequestStartIndex(Loader::GetLatestMediaParams ¶ms, int offset) {
|
|||
return false;
|
||||
}
|
||||
|
||||
template<>
|
||||
void setRequestLimit(Loader::GetItemsByUserIdParams ¶ms, int limit) {
|
||||
params.setLimit(limit);
|
||||
}
|
||||
|
||||
template<>
|
||||
bool setRequestStartIndex(Loader::GetItemsByUserIdParams ¶ms, int index) {
|
||||
params.setLimit(index);
|
||||
return true;
|
||||
}
|
||||
|
||||
template<>
|
||||
void setRequestLimit(Loader::GetResumeItemsParams ¶ms, int limit) {
|
||||
params.setLimit(limit);
|
||||
}
|
||||
|
||||
template<>
|
||||
bool setRequestStartIndex(Loader::GetResumeItemsParams ¶ms, int index) {
|
||||
params.setLimit(index);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
template<>
|
||||
QList<DTO::UserDto> extractRecords(const QList<DTO::UserDto> &result) {
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue