QtRestClient
3.0.0
A library for generic JSON-based REST-APIs, with a mechanism to map JSON to Qt objects
|
Interface to parse generic JSON paging objects and operate on them. More...
#include <ipaging.h>
Public Member Functions | |
virtual QJsonArray | jsonItems () const =0 |
Returns the items of this paging object, i.e. it's data. | |
virtual QJsonValue | originalJson () const =0 |
Returns the original JSON element parsed. | |
std::variant< QCborArray, QJsonArray > | items () const final |
Returns the items of this paging object, i.e. it's data. | |
std::variant< QCborValue, QJsonValue > | originalData () const final |
Returns the original JSON element parsed. | |
Public Member Functions inherited from QtRestClient::IPaging | |
virtual qint64 | total () const |
Returns the total number of objects there are. More... | |
virtual qint64 | offset () const |
Returns the offset this paging begins at. More... | |
virtual bool | hasNext () const =0 |
Returns true, if there is a next paging object. | |
virtual QUrl | next () const =0 |
Returns the link to the next paging object. | |
virtual bool | hasPrevious () const |
Returns true, if there is a previous paging object. | |
virtual QUrl | previous () const |
Returns the link to the previous paging object. | |
virtual QVariantMap | properties () const =0 |
Returns a hash containing all properties of the original JSON. | |
Interface to parse generic JSON paging objects and operate on them.