libQuotient
A Qt library for building matrix clients
Quotient::RequestData Class Reference

#include <requestdata.h>

Public Member Functions

Q_IMPLICIT RequestData (const QByteArray &a={})
 
Q_IMPLICIT RequestData (const QJsonObject &jo)
 
Q_IMPLICIT RequestData (const QJsonArray &ja)
 
Q_IMPLICIT RequestData (QIODevice *source)
 
QIODevice * source () const
 

Detailed Description

A simple wrapper that represents the request body. Provides a unified interface to dump an unstructured byte stream as well as JSON (and possibly other structures in the future) to a QByteArray consumed by QNetworkAccessManager request methods.

Definition at line 20 of file requestdata.h.

Constructor & Destructor Documentation

◆ RequestData() [1/4]

Q_IMPLICIT Quotient::RequestData::RequestData ( const QByteArray &  a = {})

◆ RequestData() [2/4]

Q_IMPLICIT Quotient::RequestData::RequestData ( const QJsonObject &  jo)

◆ RequestData() [3/4]

Q_IMPLICIT Quotient::RequestData::RequestData ( const QJsonArray &  ja)

◆ RequestData() [4/4]

Q_IMPLICIT Quotient::RequestData::RequestData ( QIODevice *  source)

Member Function Documentation

◆ source()

QIODevice* Quotient::RequestData::source ( ) const
inline

Definition at line 27 of file requestdata.h.


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