QGIS API Documentation
3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
src
gui
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
37
class
GUI_EXPORT
QgsHttpHeaderWidget
:
public
QWidget,
private
Ui::QgsHttpHeaderWidget
38
{
39
Q_OBJECT
40
41
public
:
42
47
explicit
QgsHttpHeaderWidget
( QWidget *parent =
nullptr
);
48
~QgsHttpHeaderWidget
()
override
;
49
53
QgsHttpHeaders
httpHeaders
()
const
;
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::~QgsHttpHeaderWidget
~QgsHttpHeaderWidget() override
QgsHttpHeaderWidget::QgsHttpHeaderWidget
QgsHttpHeaderWidget(QWidget *parent=nullptr)
Default constructor.
Definition
qgshttpheaderwidget.cpp:28
QgsHttpHeaderWidget::setHeaders
void setHeaders(const QgsHttpHeaders &headers)
Sets the widget from the headers.
Definition
qgshttpheaderwidget.cpp:110
QgsHttpHeaderWidget::updateSettings
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.
Definition
qgshttpheaderwidget.cpp:131
QgsHttpHeaderWidget::setFromSettings
Q_DECL_DEPRECATED void setFromSettings(const QgsSettings &settings, const QString &key) SIP_DEPRECATED
fill the inner header map from the settings defined at key
Definition
qgshttpheaderwidget.cpp:102
QgsHttpHeaderWidget::httpHeaders
QgsHttpHeaders httpHeaders() const
Returns the headers as defined in the widget.
Definition
qgshttpheaderwidget.cpp:60
QgsHttpHeaders
Implements simple HTTP header management.
Definition
qgshttpheaders.h:41
QgsSettings
Stores settings for use within QGIS.
Definition
qgssettings.h:65
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition
qgis_sip.h:114
qgshttpheaders.h
Generated on
for QGIS API Documentation by
1.15.0