The QML version of QtRestClient::Paging.
More...
#include <qmlpaging.h>
The QML version of QtRestClient::Paging.
- Since
- 2.0
Definition at line 18 of file qmlpaging.h.
◆ iterate [1/2]
| void de::skycoder42::QtRestClient::Paging::iterate |
( |
const QJSValue & |
iterator, |
|
|
const QJSValue & |
failureHandler, |
|
|
const QJSValue & |
errorHandler, |
|
|
int |
to = -1, |
|
|
int |
from = 0 |
|
) |
| |
|
slot |
Iterates over all paging objects
- Parameters
-
| iterator | The iterator to be be called for every element iterated over |
| failureHandler | Will be passed to GenericRestReply::onFailed for all replies |
| errorHandler | Will be passed to GenericRestReply::onError for all replies |
| to | The upper limit of how far the iteration should go (-1 means no limit) |
| from | The lower limit from where the iteration should start |
- See also
- QtRestClient::Paging::iterate
◆ iterate [2/2]
| void de::skycoder42::QtRestClient::Paging::iterate |
( |
const QJSValue & |
iterator, |
|
|
int |
to = -1, |
|
|
int |
from = 0 |
|
) |
| |
|
slot |
Iterates over all paging objects
- Parameters
-
| iterator | The iterator to be be called for every element iterated over |
| to | The upper limit of how far the iteration should go (-1 means no limit) |
| from | The lower limit from where the iteration should start |
- See also
- QtRestClient::Paging::iterate
◆ next()
Performs a request for the next paging object.
- Returns
- A generic reply, for the sent request, or
nullptr, if no next element exists
The returned reply is owned by the caller. You can use it just like any other normal reply, created by a RestClass
◆ previous()
Performs a request for the previous paging object.
- Returns
- A generic reply, for the sent request, or
nullptr, if no previous element exists
The returned reply is owned by the caller. You can use it just like any other normal reply, created by a RestClass
◆ hasNext
| bool de::skycoder42::QtRestClient::Paging::hasNext |
|
read |
◆ hasPrevious
| bool de::skycoder42::QtRestClient::Paging::hasPrevious |
|
read |
◆ items
| QVariantList de::skycoder42::QtRestClient::Paging::items |
|
read |
◆ nextUrl
| QUrl de::skycoder42::QtRestClient::Paging::nextUrl |
|
read |
◆ offset
| int de::skycoder42::QtRestClient::Paging::offset |
|
read |
◆ previousUrl
| QUrl de::skycoder42::QtRestClient::Paging::previousUrl |
|
read |
◆ properties
| QVariantMap de::skycoder42::QtRestClient::Paging::properties |
|
read |
◆ total
| int de::skycoder42::QtRestClient::Paging::total |
|
read |
◆ valid
| bool de::skycoder42::QtRestClient::Paging::valid |
|
read |
Specifies, whether the paging object is valid and accessable
Default: false
| Accessors |
| MEMBER | valid |
| READ ONLY |
Definition at line 35 of file qmlpaging.h.
The documentation for this class was generated from the following files: