QtRestClient  3.0.0
A library for generic JSON-based REST-APIs, with a mechanism to map JSON to Qt objects
Public Member Functions | List of all members
QtRestClient::ICborPaging Class Referenceabstract

Interface to parse generic CBOR paging objects and operate on them. More...

#include <ipaging.h>

+ Inheritance diagram for QtRestClient::ICborPaging:

Public Member Functions

virtual QCborArray cborItems () const =0
 Returns the items of this paging object, i.e. it's data.
 
virtual QCborValue originalCbor () const =0
 Returns the original JSON element parsed.
 
std::variant< QCborArray, QJsonArrayitems () const final
 Returns the items of this paging object, i.e. it's data.
 
std::variant< QCborValue, QJsonValueoriginalData () 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.
 

Detailed Description

Interface to parse generic CBOR paging objects and operate on them.

Definition at line 51 of file ipaging.h.


The documentation for this class was generated from the following file: