21 #ifndef QGSHTTPHEADERS_H
22 #define QGSHTTPHEADERS_H
25 #include "qgis_core.h"
29 class QNetworkRequest;
97 bool updateSettings(
QgsSettings &settings,
const QString &key = QString() )
const;
103 bool updateNetworkRequest( QNetworkRequest &request )
const;
109 bool updateUrlQuery( QUrlQuery &uri )
const;
118 bool updateMap( QVariantMap &map )
const;
127 bool updateDomElement( QDomElement &el )
const;
137 void setFromSettings(
const QgsSettings &settings,
const QString &key = QString() );
143 void setFromUrlQuery(
const QUrlQuery &uri );
152 void setFromMap(
const QVariantMap &map );
161 void setFromDomElement(
const QDomElement &element );
167 QString sanitizeKey(
const QString &key )
const;
173 QVariant &operator[](
const QString &key );
180 QList<QString> keys()
const;
183 QString toSpacedString()
const;
191 const QVariant operator[](
const QString &key )
const;
195 QMap<QString, QVariant> mHeaders;
198 #endif // QGSHTTPHEADERS_H