QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
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
60 void setFromSettings( const QgsSettings &settings, const QString &key );
61
68 void updateSettings( QgsSettings &settings, const QString &key ) const;
69
70 private slots:
71
75 void addQueryPair();
76
80 void removeQueryPair();
81
82 private:
83 void addQueryPairRow( const QString &key, const QString &val );
84
85};
86
87#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:62