1// SPDX-FileCopyrightText: Tobias Fella <fella@posteo.de>
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include "events/filesourceinfo.h"
7
8#include <QtNetwork/QNetworkReply>
9
10namespace Quotient {
11class QUOTIENT_API MxcReply : public QNetworkReply
12{
13 Q_OBJECT
14public:
15 explicit MxcReply();
16 explicit MxcReply(QNetworkReply* reply,
17 const EncryptedFileMetadata& fileMetadata);
18
19 qint64 bytesAvailable() const override;
20
21public Q_SLOTS:
22 void abort() override;
23
24protected:
25 qint64 readData(char* data, qint64 maxSize) override;
26
27private:
28 class Private;
29 ImplPtr<Private> d;
30};
31}
32