qhttpclientresponse_private.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /** private imeplementation.
  2. * https://github.com/azadkuh/qhttp
  3. *
  4. * @author amir zamani
  5. * @version 2.0.0
  6. * @date 2014-07-11
  7. */
  8. #ifndef QHTTPCLIENT_RESPONSE_PRIVATE_HPP
  9. #define QHTTPCLIENT_RESPONSE_PRIVATE_HPP
  10. ///////////////////////////////////////////////////////////////////////////////
  11. #include "qhttpbase.hpp"
  12. #include "qhttpclient.hpp"
  13. #include "qhttpclientresponse.hpp"
  14. ///////////////////////////////////////////////////////////////////////////////
  15. namespace qhttp {
  16. namespace client {
  17. ///////////////////////////////////////////////////////////////////////////////
  18. class QHttpResponsePrivate : public HttpReader<HttpResponseBase>
  19. {
  20. Q_DECLARE_PUBLIC(QHttpResponse)
  21. QHttpResponse* const q_ptr;
  22. public:
  23. explicit QHttpResponsePrivate(QHttpClient* cli, QHttpResponse* q)
  24. : q_ptr(q), iclient(cli) {
  25. QHTTP_LINE_DEEPLOG
  26. }
  27. virtual ~QHttpResponsePrivate() {
  28. QHTTP_LINE_DEEPLOG
  29. }
  30. void initialize() {
  31. }
  32. public:
  33. QString icustomStatusMessage;
  34. protected:
  35. QHttpClient* const iclient;
  36. };
  37. ///////////////////////////////////////////////////////////////////////////////
  38. } // namespace client
  39. } // namespace qhttp
  40. ///////////////////////////////////////////////////////////////////////////////
  41. #endif // QHTTPCLIENT_RESPONSE_PRIVATE_HPP