qspreply.h 791 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef QSPREPLY_H
  2. #define QSPREPLY_H
  3. #include <QNetworkReply>
  4. #include <QString>
  5. #include <QColor>
  6. #include <QFont>
  7. class QspReply : public QNetworkReply
  8. {
  9. Q_OBJECT
  10. public:
  11. QspReply(const QUrl &url, const QString &_text, bool _isUseHtml, const QString &_path, const QColor &_linkColor, const QColor &_backColor, const QColor &_fontColor, const QString &_bmpBg, const QFont &_font);
  12. void abort();
  13. qint64 bytesAvailable() const;
  14. bool isSequential() const;
  15. protected:
  16. qint64 readData(char *data, qint64 maxSize);
  17. QByteArray content;
  18. qint64 offset;
  19. QString m_text;
  20. QString m_path;
  21. QString m_bmpBg;
  22. QColor m_linkColor;
  23. QColor m_backColor;
  24. QColor m_fontColor;
  25. QFont m_font;
  26. bool m_isUseHtml = true;
  27. };
  28. #endif // QSPREPLY_H