aboutsummaryrefslogtreecommitdiff
path: root/lib/mxcreply.h
blob: 26dea2d0b542f9978b5bc8ccc8be6bcd3fe3eccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// SPDX-FileCopyrightText: Tobias Fella <fella@posteo.de>
// SPDX-License-Identifier: LGPL-2.1-or-later

#pragma once

#include <QtNetwork/QNetworkReply>
#include <memory>

namespace Quotient {
class Room;
class Connection;
class MxcReply : public QNetworkReply
{
public:
    MxcReply(QNetworkReply* reply, Room* room, const QString &eventId);
    MxcReply(QNetworkReply* reply);

    bool isSequential() const override;

public slots:
    void abort() override;

protected:
    qint64 readData(char *data, qint64 maxSize) override;
private:
    class Private;
    std::unique_ptr<Private> d;
};
}