customnetworkaccessmanager.h 528 B

123456789101112131415161718192021222324
  1. #ifndef CUSTOMNETWORKACCESSMANAGER_H
  2. #define CUSTOMNETWORKACCESSMANAGER_H
  3. #include <QNetworkAccessManager>
  4. class CustomNetworkAccessManager : public QNetworkAccessManager
  5. {
  6. Q_OBJECT
  7. public:
  8. explicit CustomNetworkAccessManager(QString p_userAgent = "", QObject *parent = 0);
  9. signals:
  10. public slots:
  11. protected:
  12. QNetworkReply *createRequest( Operation op, const QNetworkRequest &req, QIODevice * outgoingData=0 );
  13. private:
  14. QString __userAgent;
  15. };
  16. #endif // CUSTOMNETWORKACCESSMANAGER_H