| 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 | |
| 10 | namespace Quotient { |
| 11 | class QUOTIENT_API MxcReply : public QNetworkReply |
| 12 | { |
| 13 | Q_OBJECT |
| 14 | public: |
| 15 | explicit MxcReply(); |
| 16 | explicit MxcReply(QNetworkReply* reply, |
| 17 | const EncryptedFileMetadata& fileMetadata); |
| 18 | |
| 19 | qint64 bytesAvailable() const override; |
| 20 | |
| 21 | public Q_SLOTS: |
| 22 | void abort() override; |
| 23 | |
| 24 | protected: |
| 25 | qint64 readData(char* data, qint64 maxSize) override; |
| 26 | |
| 27 | private: |
| 28 | class Private; |
| 29 | ImplPtr<Private> d; |
| 30 | }; |
| 31 | } |
| 32 |