QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
qgswmsrequest.h
Go to the documentation of this file.
1/***************************************************************************
2 qgswmsrequest.h
3
4 Define request class for getting request contents for WMS service
5 -------------------
6 begin : 2021-02-10
7 copyright : (C) 2021 by Paul Blottiere
9 ***************************************************************************/
10
11/***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 * *
18 ***************************************************************************/
19#ifndef QGSWMSREQUEST_H
20#define QGSWMSREQUEST_H
21
22#include "qgsserverrequest.h"
23#include "qgswmsparameters.h"
24
25namespace QgsWms
26{
27
35 {
36 Q_GADGET
37
38 public:
39
43 QgsWmsRequest( const QgsServerRequest &other );
44
48 ~QgsWmsRequest() override = default;
49
53 const QgsWmsParameters &wmsParameters() const;
54
55 void setParameter( const QString &key, const QString &value ) override;
56
57 void removeParameter( const QString &key ) override;
58
59 void setUrl( const QUrl &url ) override;
60
61 private:
62 void init();
63
64 QgsWmsParameters mWmsParams;
65 };
66}
67
68#endif
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
Provides an interface to retrieve and manipulate WMS parameters received from the client.
Class defining request interface passed to WMS service.
Definition: qgswmsrequest.h:35
void setParameter(const QString &key, const QString &value) override
Set a parameter.
~QgsWmsRequest() override=default
Destructor.
const QgsWmsParameters & wmsParameters() const
Returns the parameters interpreted for the WMS service.
void removeParameter(const QString &key) override
Remove a parameter.
void setUrl(const QUrl &url) override
Set the request url.
QgsWmsRequest(const QgsServerRequest &other)
Copy constructor.
Median cut implementation.