1 /***************************************************************************
2                               qgswfsgecapabilities_1_0_0.h
3                               -------------------------
4   begin                : December 20 , 2016
5   copyright            : (C) 2007 by Marco Hugentobler  (original code)
6                          (C) 2012 by René-Luc D'Hont    (original code)
7                          (C) 2014 by Alessandro Pasotti (original code)
8                          (C) 2017 by David Marteau
9   email                : marco dot hugentobler at karto dot baug dot ethz dot ch
10                          a dot pasotti at itopen dot it
11                          david dot marteau at 3liz dot com
12  ***************************************************************************/
13 
14 /***************************************************************************
15  *                                                                         *
16  *   This program is free software; you can redistribute it and/or modify  *
17  *   it under the terms of the GNU General Public License as published by  *
18  *   the Free Software Foundation; either version 2 of the License, or     *
19  *   (at your option) any later version.                                   *
20  *                                                                         *
21  ***************************************************************************/
22 #ifndef QGSWFSGETCAPABILITIES_1_0_0_H
23 #define QGSWFSGETCAPABILITIES_1_0_0_H
24 
25 #include <QDomDocument>
26 
27 namespace QgsWfs
28 {
29   namespace v1_0_0
30   {
31 
32     /**
33      * Create FeatureTypeList element for get capabilities document
34      */
35     QDomElement getFeatureTypeListElement( QDomDocument &doc, QgsServerInterface *serverIface, const QgsProject *project );
36 
37     /**
38      * Create Capability element for get capabilities document
39      */
40     QDomElement getCapabilityElement( QDomDocument &doc, const QgsProject *project, const QgsServerRequest &request );
41 
42     /**
43      * Create Service element for get capabilities document
44      */
45     QDomElement getServiceElement( QDomDocument &doc, const QgsProject *project );
46 
47     /**
48      * Create get capabilities document
49      */
50     QDomDocument createGetCapabilitiesDocument( QgsServerInterface *serverIface,
51         const QgsProject *project, const QString &version,
52         const QgsServerRequest &request );
53 
54     /**
55      * Output WFS GetCapabilities response
56      */
57     void writeGetCapabilities( QgsServerInterface *serverIface, const QgsProject *project,
58                                const QString &version, const QgsServerRequest &request,
59                                QgsServerResponse &response );
60 
61   } // namespace v1_0_0
62 } // namespace QgsWfs
63 
64 #endif
65 
66