QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
qgshttpheaderwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgshttpheaderswidget.h
3 This class implements simple UI for http header.
4
5 -------------------
6 begin : 2021-09-09
7 copyright : (C) 2021 B. De Mezzo
8 email : benoit dot de dot mezzo at oslandia dot com
9
10***************************************************************************/
11
12/***************************************************************************
13 * *
14 * This program is free software; you can redistribute it and/or modify *
15 * it under the terms of the GNU General Public License as published by *
16 * the Free Software Foundation; either version 2 of the License, or *
17 * (at your option) any later version. *
18 * *
19 ***************************************************************************/
20
21#ifndef QGSHTTPHEADERWIDGET_H
22#define QGSHTTPHEADERWIDGET_H
23
24#include "ui_qgshttpheaderwidget.h"
25
26#include "qgshttpheaders.h"
27
28#include <QWidget>
29
37class GUI_EXPORT QgsHttpHeaderWidget : public QWidget, private Ui::QgsHttpHeaderWidget
38{
39 Q_OBJECT
40
41 public:
42
47 explicit QgsHttpHeaderWidget( QWidget *parent = nullptr );
49
54
59 void setHeaders( const QgsHttpHeaders &headers );
60
68 Q_DECL_DEPRECATED void setFromSettings( const QgsSettings &settings, const QString &key ) SIP_DEPRECATED;
69
77 Q_DECL_DEPRECATED void updateSettings( QgsSettings &settings, const QString &key ) const SIP_DEPRECATED;
78
79 private slots:
80
84 void addQueryPair();
85
89 void removeQueryPair();
90
91 private:
92 void addQueryPairRow( const QString &key, const QString &val );
93};
94
95#endif // QGSHTTPHEADERWIDGET_H
~QgsHttpHeaderWidget() override
QgsHttpHeaderWidget(QWidget *parent=nullptr)
Default constructor.
void setHeaders(const QgsHttpHeaders &headers)
Sets the widget from the headers.
Q_DECL_DEPRECATED void updateSettings(QgsSettings &settings, const QString &key) const SIP_DEPRECATED
update the settings with the http headers present in the inner map.
Q_DECL_DEPRECATED void setFromSettings(const QgsSettings &settings, const QString &key) SIP_DEPRECATED
fill the inner header map from the settings defined at key
QgsHttpHeaders httpHeaders() const
Returns the headers as defined in the widget.
Implements simple HTTP header management.
Stores settings for use within QGIS.
Definition qgssettings.h:65
#define SIP_DEPRECATED
Definition qgis_sip.h:114