mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
d22c38fe27
It is now following redirections. Also it will no longer be shown Atom channels, as RSS parser currently doesn't support it.
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
|