mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-14 19:12:11 +01:00
32 lines
591 B
C
32 lines
591 B
C
|
#ifndef FOLLOWREDIRECTREPLY_H
|
||
|
#define FOLLOWREDIRECTREPLY_H
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QUrl>
|
||
|
#include <QNetworkAccessManager>
|
||
|
#include <QNetworkReply>
|
||
|
|
||
|
class FollowRedirectReply : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit FollowRedirectReply(const QUrl &url, QNetworkAccessManager* manager);
|
||
|
~FollowRedirectReply();
|
||
|
|
||
|
QNetworkReply* reply() { return m_reply; }
|
||
|
|
||
|
signals:
|
||
|
void finished();
|
||
|
|
||
|
private slots:
|
||
|
void replyFinished();
|
||
|
|
||
|
private:
|
||
|
QNetworkAccessManager* m_manager;
|
||
|
QNetworkReply* m_reply;
|
||
|
int m_redirectCount;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // FOLLOWREDIRECTREPLY_H
|