QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
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 <QWidget>
25#include "ui_qgshttpheaderwidget.h"
26#include "qgshttpheaders.h"
27
28
36class GUI_EXPORT QgsHttpHeaderWidget : public QWidget, private Ui::QgsHttpHeaderWidget
37{
38 Q_OBJECT
39
40 public:
41
46 explicit QgsHttpHeaderWidget( QWidget *parent = nullptr );
48
52 QgsHttpHeaders httpHeaders() const;
53
58 void setHeaders( const QgsHttpHeaders &headers );
59
67 Q_DECL_DEPRECATED void setFromSettings( const QgsSettings &settings, const QString &key ) SIP_DEPRECATED;
68
76 Q_DECL_DEPRECATED void updateSettings( QgsSettings &settings, const QString &key ) const SIP_DEPRECATED;
77
78 private slots:
79
83 void addQueryPair();
84
88 void removeQueryPair();
89
90 private:
91 void addQueryPairRow( const QString &key, const QString &val );
92
93};
94
95#endif // QGSHTTPHEADERWIDGET_H
Display referer http header field and collapsible table of key/value pairs.
This class implements simple http header management.
This class is a composition of two QSettings instances:
Definition qgssettings.h:64
#define SIP_DEPRECATED
Definition qgis_sip.h:106