1 /***************************************************************************
2     qgswfsconstants.h
3     ---------------------
4     begin                : February 2016
5     copyright            : (C) 2016 by Even Rouault
6     email                : even.rouault at spatialys.com
7  ***************************************************************************
8  *                                                                         *
9  *   This program is free software; you can redistribute it and/or modify  *
10  *   it under the terms of the GNU General Public License as published by  *
11  *   the Free Software Foundation; either version 2 of the License, or     *
12  *   (at your option) any later version.                                   *
13  *                                                                         *
14  ***************************************************************************/
15 
16 #ifndef QGSWFSCONSTANTS_H
17 #define QGSWFSCONSTANTS_H
18 
19 #include <QString>
20 
21 struct QgsWFSConstants
22 {
23   static const QString GML_NAMESPACE;
24   static const QString OGC_NAMESPACE;
25   static const QString OWS_NAMESPACE;
26   static const QString WFS_NAMESPACE;
27   static const QString XMLSCHEMA_NAMESPACE;
28 
29   // URI parameters
30   static const QString URI_PARAM_URL;
31   static const QString URI_PARAM_USERNAME;
32   // QgsDataSourceURI recognizes "user" instead of "username"
33   // we are going to check both
34   static const QString URI_PARAM_USER;
35   static const QString URI_PARAM_PASSWORD;
36   static const QString URI_PARAM_AUTHCFG;
37   static const QString URI_PARAM_VERSION;
38   static const QString URI_PARAM_TYPENAME;
39   static const QString URI_PARAM_SRSNAME;
40   static const QString URI_PARAM_FILTER;
41   static const QString URI_PARAM_OUTPUTFORMAT;
42   static const QString URI_PARAM_BBOX;
43   static const QString URI_PARAM_RESTRICT_TO_REQUEST_BBOX;
44   static const QString URI_PARAM_MAXNUMFEATURES;
45   static const QString URI_PARAM_IGNOREAXISORIENTATION;
46   static const QString URI_PARAM_INVERTAXISORIENTATION;
47   static const QString URI_PARAM_VALIDATESQLFUNCTIONS;
48   static const QString URI_PARAM_HIDEDOWNLOADPROGRESSDIALOG;
49   static const QString URI_PARAM_PAGING_ENABLED;
50   static const QString URI_PARAM_PAGE_SIZE;
51   static const QString URI_PARAM_WFST_1_1_PREFER_COORDINATES;
52 
53   //
54   static const QString VERSION_AUTO;
55 
56   // Settings
57   static const QString CONNECTIONS_WFS;
58   static const QString SETTINGS_VERSION;
59   static const QString SETTINGS_MAXNUMFEATURES;
60   static const QString SETTINGS_PAGING_ENABLED;
61   static const QString SETTINGS_PAGE_SIZE;
62   static const QString SETTINGS_WFST_1_1_PREFER_COORDINATES;
63 };
64 
65 #endif // QGSWFSCONSTANTS_H
66