1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /***************************************************************************
- * Copyright (C) 2009, 2010 by Axel Jaeger <axeljaeger@googlemail.com> *
- * *
- * This file is part of Glowworm. *
- * *
- * Glowworm is free software: you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation, version 3 of the License. *
- * *
- * Glowworm is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with Glowworm. If not, see <http://www.gnu.org/licenses/>. *
- ***************************************************************************/
- #ifndef HTTPREQUEST_H
- #define HTTPREQUEST_H
- #include <QMap>
- #include <QString>
- #include <QStringList>
- #include <QUrl>
- class HttpRequest
- {
- public:
- HttpRequest();
- ~HttpRequest();
- QStringList parameterNames() const;
- QString parameter(const QString & name) const;
- QString method() const;
- QUrl url() const;
- void setParameters(QMap<QString, QString> parameters);
- void setMethod(const QString & method);
- void setUrl(const QUrl & url);
- private:
- QMap<QString, QString> m_parameters;
- QString m_method;
- QUrl m_url;
- };
- #endif // HTTPREQUEST_H
|