Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 18 lines (13 sloc) 0.486 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkRequest>
#include <QtNetwork/QNetworkReply>

class NetworkAccessManager : public QNetworkAccessManager {

  Q_OBJECT

  public:
    NetworkAccessManager(QObject *parent = 0);
    void addHeader(QString key, QString value);

  protected:
    QNetworkReply* createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &req, QIODevice * outgoingData);

  private:
    QHash<QString, QString> m_headers;
};
Something went wrong with that request. Please try again.