HttpRequest.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #ifndef HTTPREQUEST_H
  19. #define HTTPREQUEST_H
  20. #include <QMap>
  21. #include <QString>
  22. #include <QStringList>
  23. #include <QUrl>
  24. class HttpRequest
  25. {
  26. public:
  27. HttpRequest();
  28. ~HttpRequest();
  29. QStringList parameterNames() const;
  30. QString parameter(const QString & name) const;
  31. QString method() const;
  32. QUrl url() const;
  33. void setParameters(QMap<QString, QString> parameters);
  34. void setMethod(const QString & method);
  35. void setUrl(const QUrl & url);
  36. private:
  37. QMap<QString, QString> m_parameters;
  38. QString m_method;
  39. QUrl m_url;
  40. };
  41. #endif // HTTPREQUEST_H