HttpRequest.cpp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /***************************************************************************
  2. * Copyright (C) 2009, 2010 by Axel Jaeger <axeljaeger@googlemail.com> *
  3. * *
  4. * This file is part of Glowworm. *
  5. * *
  6. * Glowworm is free software: you can redistribute it and/or modify *
  7. * it under the terms of the GNU General Public License as published by *
  8. * the Free Software Foundation, version 3 of the License. *
  9. * *
  10. * Glowworm is distributed in the hope that it will be useful, *
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  13. * GNU General Public License for more details. *
  14. * *
  15. * You should have received a copy of the GNU General Public License *
  16. * along with Glowworm. If not, see <http://www.gnu.org/licenses/>. *
  17. ***************************************************************************/
  18. #include "HttpRequest.h"
  19. HttpRequest::HttpRequest()
  20. {
  21. }
  22. HttpRequest::~HttpRequest()
  23. {
  24. }
  25. QStringList HttpRequest::parameterNames() const
  26. {
  27. return m_parameters.keys();
  28. }
  29. QString HttpRequest::parameter(const QString & name) const
  30. {
  31. return m_parameters.value(name);
  32. }
  33. QString HttpRequest::method() const
  34. {
  35. return m_method;
  36. }
  37. void HttpRequest::setParameters(QMap<QString, QString> parameters)
  38. {
  39. m_parameters = parameters;
  40. }
  41. void HttpRequest::setMethod(const QString & method)
  42. {
  43. m_method = method;
  44. }
  45. QUrl HttpRequest::url() const
  46. {
  47. return m_url;
  48. }
  49. void HttpRequest::setUrl(const QUrl & url)
  50. {
  51. m_url = url;
  52. }