QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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
8  email : [email protected]
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 
25 namespace QgsWms
26 {
27 
34  class QgsWmsRequest : public QgsServerRequest
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
QgsWms::QgsWmsParameters
Provides an interface to retrieve and manipulate WMS parameters received from the client.
Definition: qgswmsparameters.h:346
QgsWms::QgsWmsRequest::~QgsWmsRequest
~QgsWmsRequest() override=default
Destructor.
QgsServerRequest
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
Definition: qgsserverrequest.h:38
qgsserverrequest.h
QgsWms::QgsWmsRequest::setUrl
void setUrl(const QUrl &url) override
Set the request url.
Definition: qgswmsrequest.cpp:62
qgswmsparameters.h
QgsWms
Median cut implementation.
Definition: qgsdxfwriter.cpp:22
QgsServerRequest::url
QUrl url() const
Definition: qgsserverrequest.cpp:86
QgsWms::QgsWmsRequest::wmsParameters
const QgsWmsParameters & wmsParameters() const
Returns the parameters interpreted for the WMS service.
Definition: qgswmsrequest.cpp:45
QgsWms::QgsWmsRequest::QgsWmsRequest
QgsWmsRequest(const QgsServerRequest &other)
Copy constructor.
Definition: qgswmsrequest.cpp:39
QgsWms::QgsWmsRequest::removeParameter
void removeParameter(const QString &key) override
Remove a parameter.
Definition: qgswmsrequest.cpp:56
QgsWms::QgsWmsRequest::setParameter
void setParameter(const QString &key, const QString &value) override
Set a parameter.
Definition: qgswmsrequest.cpp:50