libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
requestdata.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2018 Kitsune Ral <kitsune-ral@users.sf.net>
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <Quotient/util.h>
7
8class QJsonObject;
9class QJsonArray;
10class QJsonDocument;
11class QIODevice;
12
13namespace Quotient {
14/**
15 * A simple wrapper that represents the request body.
16 * Provides a unified interface to dump an unstructured byte stream
17 * as well as JSON (and possibly other structures in the future) to
18 * a QByteArray consumed by QNetworkAccessManager request methods.
19 */
21public:
26
27 QIODevice* source() const { return _source.get(); }
28
29private:
31};
32} // namespace Quotient
#define QUOTIENT_API