Skip to content
Permalink
Browse files

Merge pull request #5153 from nyalldawson/geonode

[FEATURE] QGIS - GeoNode Integration
  • Loading branch information
nyalldawson committed Sep 12, 2017
2 parents 5614df4 + 220c5e8 commit 5796783e046c20e72555df789babbf29657f350d
Showing with 4,949 additions and 462 deletions.
  1. +1 −1 .gitignore
  2. +1 −0 debian/qgis-providers.install.in
  3. +2 −0 doc/CMakeLists.txt
  4. +2 −0 images/images.qrc
  5. +407 −0 images/themes/default/mActionAddGeonodeLayer.svg
  6. +13 −0 images/themes/default/mIconGeonode.svg
  7. +1 −0 ms-windows/osgeo4w/package.cmd
  8. +2 −0 python/CMakeLists.txt
  9. +2 −0 python/core/core_auto.sip
  10. +115 −0 python/core/geocms/geonode/qgsgeonodeconnection.sip
  11. +256 −0 python/core/geocms/geonode/qgsgeonoderequest.sip
  12. 0 python/core/geonode/qgsdataitemprovider.sip
  13. 0 python/core/geonode/qgsgeonodeconnection.sip
  14. +151 −0 python/core/geonode/qgsgeonoderequest.sip
  15. +5 −0 python/core/qgsdataitemprovider.sip
  16. +44 −8 python/core/qgsowsconnection.sip
  17. +5 −2 python/gui/qgsabstractdatasourcewidget.sip
  18. +1 −0 python/gui/qgsmanageconnectionsdialog.sip
  19. +91 −4 python/gui/qgsnewhttpconnection.sip
  20. +10 −0 python/gui/qgssourceselectprovider.sip
  21. +2 −0 src/app/CMakeLists.txt
  22. +1 −1 src/app/qgisapp.cpp
  23. +1 −0 src/app/qgisapp.h
  24. +1 −0 src/app/qgisappinterface.cpp
  25. +11 −1 src/core/CMakeLists.txt
  26. +119 −0 src/core/geocms/geonode/qgsgeonodeconnection.cpp
  27. +125 −0 src/core/geocms/geonode/qgsgeonodeconnection.h
  28. +530 −0 src/core/geocms/geonode/qgsgeonoderequest.cpp
  29. +274 −0 src/core/geocms/geonode/qgsgeonoderequest.h
  30. +4 −0 src/core/qgsdataitemprovider.h
  31. +84 −17 src/core/qgsowsconnection.cpp
  32. +45 −5 src/core/qgsowsconnection.h
  33. +7 −2 src/gui/qgsabstractdatasourcewidget.h
  34. +3 −2 src/gui/qgsdatasourcemanagerdialog.cpp
  35. +123 −0 src/gui/qgsmanageconnectionsdialog.cpp
  36. +3 −0 src/gui/qgsmanageconnectionsdialog.h
  37. +163 −113 src/gui/qgsnewhttpconnection.cpp
  38. +100 −5 src/gui/qgsnewhttpconnection.h
  39. +17 −2 src/gui/qgsowssourceselect.cpp
  40. +12 −1 src/gui/qgssourceselectprovider.h
  41. +1 −0 src/providers/CMakeLists.txt
  42. +4 −4 src/providers/arcgisrest/qgsafsdataitems.cpp
  43. +1 −1 src/providers/arcgisrest/qgsafsprovider.cpp
  44. +4 −4 src/providers/arcgisrest/qgsamsdataitems.cpp
  45. +1 −1 src/providers/arcgisrest/qgsamsprovider.cpp
  46. +2 −3 src/providers/arcgisrest/qgsarcgisservicesourceselect.cpp
  47. +1 −1 src/providers/db2/qgsdb2provider.cpp
  48. +1 −1 src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
  49. +1 −1 src/providers/gdal/qgsgdalprovider.cpp
  50. +58 −0 src/providers/geonode/CMakeLists.txt
  51. +289 −0 src/providers/geonode/qgsgeonodedataitems.cpp
  52. +87 −0 src/providers/geonode/qgsgeonodedataitems.h
  53. +77 −0 src/providers/geonode/qgsgeonodenewconnection.cpp
  54. +45 −0 src/providers/geonode/qgsgeonodenewconnection.h
  55. +44 −0 src/providers/geonode/qgsgeonodeprovider.cpp
  56. +482 −0 src/providers/geonode/qgsgeonodesourceselect.cpp
  57. +103 −0 src/providers/geonode/qgsgeonodesourceselect.h
  58. +1 −1 src/providers/mssql/qgsmssqlprovider.cpp
  59. +3 −3 src/providers/ogr/qgsogrprovider.cpp
  60. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
  61. +1 −1 src/providers/spatialite/qgsspatialiteprovider.cpp
  62. +1 −1 src/providers/virtual/qgsvirtuallayerprovider.cpp
  63. +2 −2 src/providers/wcs/qgswcsdataitems.cpp
  64. +1 −1 src/providers/wcs/qgswcsprovider.cpp
  65. +1 −0 src/providers/wfs/CMakeLists.txt
  66. +1 −1 src/providers/wfs/qgswfsconnection.cpp
  67. +102 −6 src/providers/wfs/qgswfsdataitems.cpp
  68. +16 −0 src/providers/wfs/qgswfsdataitems.h
  69. +1 −1 src/providers/wfs/qgswfsprovider.cpp
  70. +2 −2 src/providers/wfs/qgswfssourceselect.cpp
  71. +1 −1 src/providers/wms/CMakeLists.txt
  72. +2 −76 src/providers/wms/qgswmsconnection.cpp
  73. +2 −8 src/providers/wms/qgswmsconnection.h
  74. +92 −1 src/providers/wms/qgswmsdataitems.cpp
  75. +5 −0 src/providers/wms/qgswmsdataitems.h
  76. +1 −1 src/providers/wms/qgswmsprovider.cpp
  77. +1 −1 src/providers/wms/qgswmssourceselect.cpp
  78. +217 −0 src/ui/qgsgeonodesourceselectbase.ui
  79. +206 −174 src/ui/qgsnewhttpconnectionbase.ui
  80. +2 −0 tests/src/core/CMakeLists.txt
  81. +164 −0 tests/src/core/testqgsgeonodeconnection.cpp
  82. +2 −0 tests/src/python/CMakeLists.txt
  83. +86 −0 tests/src/python/test_qgsgeonodeconnection.py
  84. +100 −0 tests/src/python/test_qgsowsconnection.py
@@ -23,7 +23,7 @@
/CMakeLists.txt.user
/CMakeLists.txt.user.*
api_doc
build*
*build*
debian/*.debhelper
debian/*.substvars
desktop.ini
@@ -2,6 +2,7 @@ usr/lib/qgis/crssync
usr/lib/qgis/plugins/libbasicauthmethod.so
usr/lib/qgis/plugins/libdelimitedtextprovider.so
usr/lib/qgis/plugins/libgdalprovider.so
usr/lib/qgis/plugins/libgeonodeprovider.so
usr/lib/qgis/plugins/libgpxprovider.so
usr/lib/qgis/plugins/libidentcertauthmethod.so
usr/lib/qgis/plugins/libmssqlprovider.so
@@ -61,6 +61,8 @@ IF(WITH_APIDOC)
${CMAKE_SOURCE_DIR}/src/core/effects
${CMAKE_SOURCE_DIR}/src/core/fieldformatter
${CMAKE_SOURCE_DIR}/src/core/geometry
${CMAKE_SOURCE_DIR}/src/core/geocms
${CMAKE_SOURCE_DIR}/src/core/geocms/geonode
${CMAKE_SOURCE_DIR}/src/core/gps
${CMAKE_SOURCE_DIR}/src/core/layertree
${CMAKE_SOURCE_DIR}/src/core/layout
@@ -135,6 +135,7 @@
<file>themes/default/mActionAddWcsLayer.svg</file>
<file>themes/default/mActionAddWfsLayer.svg</file>
<file>themes/default/mActionAddWmsLayer.svg</file>
<file>themes/default/mActionAddGeonodeLayer.svg</file>
<file>themes/default/mActionAddDelimitedTextLayer.svg</file>
<file>themes/default/mActionAddVirtualLayer.svg</file>
<file>themes/default/mActionAlignBottom.svg</file>
@@ -359,6 +360,7 @@
<file>themes/default/mIconFieldInteger.svg</file>
<file>themes/default/mIconFieldText.svg</file>
<file>themes/default/mIconFieldTime.svg</file>
<file>themes/default/mIconGeonode.svg</file>
<file>themes/default/mIconInfo.svg</file>
<file>themes/default/mIconImport.gif</file>
<file>themes/default/mIconLabelQuadrantCenter.svg</file>

Large diffs are not rendered by default.

@@ -0,0 +1,13 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="400px" height="400px" viewBox="0 0 4000 4000" preserveAspectRatio="xMidYMid meet">
<g id="layer1" fill="#1177a3" stroke="none">
<path d="M1863 3990 c-62 -9 -113 -30 -113 -47 0 -7 -5 -13 -11 -13 -14 0 -59 -47 -59 -61 0 -5 -6 -9 -13 -9 -8 0 -19 -12 -26 -27 -8 -16 -17 -36 -22 -45 -5 -10 -9 -29 -9 -42 0 -13 -7 -26 -15 -30 -12 -4 -15 -27 -15 -121 0 -94 3 -117 15 -121 12 -5 15 -26 15 -99 0 -52 4 -97 10 -100 6 -3 10 -50 10 -105 0 -55 4 -102 10 -105 6 -3 10 -50 10 -106 0 -79 3 -101 15 -105 9 -4 15 -19 15 -40 0 -35 -1 -34 149 -146 20 -15 41 -27 48 -28 7 0 10 -7 7 -15 -4 -10 0 -15 12 -15 11 0 30 -9 44 -20 32 -25 78 -25 110 0 14 11 31 20 38 20 6 0 12 6 12 14 0 7 16 21 35 31 20 9 50 29 68 43 18 15 49 40 70 55 30 23 37 34 37 62 0 19 5 37 10 40 6 3 10 46 10 94 0 67 4 92 15 101 11 10 15 36 15 111 0 54 4 101 10 104 6 3 10 48 10 100 0 52 4 97 10 100 6 4 10 55 10 120 0 65 -4 116 -10 120 -5 3 -10 19 -10 35 0 16 -4 32 -10 35 -5 3 -10 13 -10 22 0 8 -10 27 -22 41 -55 60 -115 118 -137 130 -53 28 -223 39 -338 22z"/>
<path d="M435 3260 c-3 -5 -19 -10 -36 -10 -16 0 -29 -4 -29 -10 0 -5 -7 -10 -15 -10 -9 0 -18 -7 -21 -15 -4 -8 -12 -15 -19 -15 -16 0 -115 -96 -132 -129 -7 -13 -13 -29 -13 -36 0 -7 -7 -15 -15 -19 -8 -3 -15 -14 -15 -25 0 -11 -4 -23 -10 -26 -6 -4 -10 -57 -10 -125 0 -68 4 -121 10 -125 5 -3 10 -15 10 -26 0 -11 7 -22 15 -25 8 -4 15 -11 15 -18 1 -23 71 -106 117 -137 26 -18 49 -36 51 -41 2 -4 20 -15 40 -24 20 -9 45 -20 54 -25 10 -5 26 -9 37 -9 10 0 22 -7 25 -16 4 -10 14 -14 25 -11 12 3 22 -1 25 -9 3 -8 14 -14 25 -14 11 0 23 -4 26 -10 3 -5 17 -10 30 -10 13 0 27 -4 30 -10 3 -5 14 -10 25 -10 10 0 20 -7 24 -15 3 -8 14 -15 25 -15 11 0 23 -4 26 -10 3 -5 17 -10 30 -10 13 0 27 -4 30 -10 3 -5 14 -10 25 -10 10 0 20 -7 24 -15 3 -8 12 -15 21 -15 8 0 24 -4 35 -10 11 -5 29 -14 40 -20 11 -5 29 -10 39 -10 11 0 23 -4 26 -10 3 -5 14 -10 25 -10 10 0 20 -7 24 -15 3 -8 17 -15 31 -15 14 0 25 -4 25 -10 0 -5 14 -10 30 -10 27 0 42 5 90 31 21 12 80 39 110 51 14 6 33 14 42 19 10 5 25 9 33 9 9 0 18 7 21 15 4 8 14 15 24 15 36 0 50 32 50 118 0 44 -4 84 -10 87 -6 3 -10 50 -10 105 0 97 -1 99 -31 129 -38 39 -153 121 -168 121 -6 0 -11 6 -11 13 0 12 -62 57 -80 57 -5 0 -15 9 -22 21 -7 11 -27 27 -45 36 -18 8 -42 25 -55 37 -13 12 -68 54 -123 92 -55 38 -107 76 -117 86 -9 9 -33 24 -55 34 -21 10 -42 24 -46 31 -4 7 -15 13 -23 13 -8 0 -23 5 -34 10 -11 6 -29 15 -40 20 -11 6 -65 10 -119 10 -56 0 -103 -4 -106 -10z"/>
<path d="M3335 3260 c-3 -5 -14 -10 -24 -10 -21 0 -81 -28 -81 -38 0 -4 -17 -15 -39 -24 -21 -9 -54 -31 -72 -47 -18 -17 -38 -31 -44 -31 -5 0 -23 -12 -40 -26 -16 -14 -50 -40 -75 -57 -25 -17 -54 -39 -65 -48 -36 -32 -156 -119 -164 -119 -4 0 -21 -12 -38 -27 -17 -16 -65 -51 -106 -80 -94 -65 -107 -89 -107 -203 0 -69 -3 -89 -15 -94 -12 -4 -15 -24 -15 -90 l0 -85 38 -17 c20 -10 41 -24 45 -31 4 -7 15 -13 23 -13 8 0 22 -4 32 -9 9 -5 28 -13 42 -19 30 -12 89 -39 110 -51 47 -26 62 -31 84 -31 14 0 28 5 31 10 3 6 17 10 31 10 14 0 27 7 30 15 4 8 12 15 20 15 8 0 23 5 34 10 11 6 29 15 40 20 11 6 29 10 39 10 11 0 23 5 26 10 3 6 15 10 26 10 11 0 22 7 25 15 4 8 14 15 24 15 11 0 22 5 25 10 3 6 17 10 30 10 13 0 27 5 30 10 3 6 15 10 26 10 11 0 22 7 25 15 4 8 14 15 24 15 11 0 22 5 25 10 3 6 15 10 26 10 10 0 28 5 39 10 11 6 29 15 40 20 11 6 27 10 35 10 9 0 18 7 21 15 4 8 14 15 24 15 11 0 22 5 25 10 3 6 14 10 24 10 21 0 81 28 81 38 0 4 20 19 43 34 49 31 127 118 127 142 0 8 5 18 10 21 6 3 10 14 10 25 0 10 7 20 15 24 12 4 15 29 15 131 0 102 -3 127 -15 131 -8 4 -15 12 -15 20 0 22 -39 86 -76 124 -19 20 -34 40 -34 46 0 6 -16 16 -35 24 -19 8 -35 17 -35 21 0 11 -59 39 -81 39 -10 0 -21 5 -24 10 -3 6 -52 10 -110 10 -58 0 -107 -4 -110 -10z"/>
<path d="M1948 2448 c-28 -26 -54 -42 -113 -72 -22 -12 -51 -31 -65 -43 -13 -13 -30 -23 -37 -23 -17 0 -56 -22 -66 -37 -4 -7 -13 -10 -21 -7 -32 12 -36 -20 -34 -267 3 -242 3 -244 26 -254 12 -5 22 -13 22 -17 0 -5 8 -8 18 -8 9 0 28 -9 42 -20 14 -11 31 -20 38 -20 6 0 12 -4 12 -9 0 -6 28 -23 63 -40 34 -16 71 -38 83 -48 43 -39 65 -46 93 -32 14 7 37 23 51 34 14 12 49 33 77 46 29 13 53 30 53 37 0 6 7 12 16 12 9 0 28 8 42 18 15 10 41 24 57 32 17 8 40 23 53 34 22 19 22 23 22 251 l0 231 -27 20 c-16 11 -50 31 -78 44 -27 14 -51 28 -53 32 -2 4 -31 21 -65 37 -34 16 -71 38 -83 48 -54 48 -89 54 -126 21z"/>
<path d="M1130 1890 c0 -5 -11 -10 -25 -10 -14 0 -28 -7 -31 -15 -4 -8 -12 -15 -20 -15 -8 0 -22 -4 -32 -9 -9 -5 -30 -14 -47 -21 -16 -7 -38 -16 -47 -21 -10 -5 -25 -9 -33 -9 -9 0 -18 -7 -21 -15 -4 -8 -15 -15 -25 -15 -11 0 -27 -4 -37 -9 -9 -5 -30 -14 -47 -21 -16 -7 -37 -16 -45 -21 -19 -11 -77 -38 -110 -51 -14 -6 -33 -14 -42 -19 -10 -5 -25 -9 -33 -9 -9 0 -18 -7 -21 -15 -4 -8 -15 -15 -25 -15 -11 0 -28 -4 -39 -10 -11 -5 -29 -14 -40 -20 -11 -5 -27 -10 -35 -10 -9 0 -18 -7 -21 -15 -4 -8 -12 -15 -20 -15 -19 0 -164 -145 -164 -164 0 -8 -7 -16 -15 -20 -8 -3 -15 -14 -15 -25 0 -11 -4 -23 -10 -26 -6 -4 -10 -57 -10 -125 0 -68 4 -121 10 -125 6 -3 10 -17 10 -30 0 -13 6 -28 13 -32 6 -4 18 -21 26 -36 13 -24 57 -68 149 -149 12 -11 28 -18 36 -15 8 3 17 -1 20 -9 3 -8 18 -14 35 -14 16 0 33 -4 36 -10 3 -6 48 -10 100 -10 52 0 97 4 100 10 3 6 20 10 36 10 17 0 32 6 35 15 4 8 10 12 16 9 5 -3 21 6 35 20 14 14 31 26 38 26 6 0 20 9 30 20 9 10 46 38 81 61 35 23 64 45 64 50 0 5 5 9 11 9 5 0 41 25 79 55 38 30 73 55 77 55 4 0 18 11 30 23 11 13 42 34 67 47 25 13 46 29 46 35 0 7 15 20 34 29 18 9 55 34 82 56 27 22 53 40 59 40 21 0 35 57 35 145 0 50 5 96 10 101 6 6 10 45 8 93 -3 80 -4 83 -33 99 -16 9 -31 20 -33 24 -2 4 -20 15 -40 24 -20 9 -45 20 -54 25 -10 5 -27 9 -37 9 -11 0 -23 5 -26 10 -3 6 -14 10 -25 10 -10 0 -20 7 -24 15 -3 8 -14 15 -25 15 -11 0 -23 5 -26 10 -3 6 -22 10 -41 10 -19 0 -34 -4 -34 -10z"/>
<path d="M2785 1890 c-3 -5 -15 -10 -26 -10 -11 0 -22 -7 -25 -15 -4 -8 -14 -15 -24 -15 -11 0 -22 -4 -25 -10 -3 -5 -15 -10 -26 -10 -10 0 -28 -4 -39 -10 -11 -5 -29 -14 -40 -20 -11 -5 -27 -10 -35 -10 -9 0 -18 -7 -21 -15 -4 -8 -14 -15 -24 -15 -36 0 -50 -32 -50 -119 0 -63 3 -83 15 -87 12 -5 15 -25 15 -94 0 -121 3 -126 148 -230 23 -17 54 -42 68 -55 15 -14 32 -25 38 -25 6 0 29 -15 51 -32 21 -18 58 -46 81 -63 57 -41 158 -117 164 -124 3 -3 17 -12 32 -20 14 -7 40 -26 57 -42 17 -15 47 -36 66 -45 19 -9 35 -20 35 -24 0 -13 60 -40 86 -40 13 0 26 -4 29 -10 3 -6 52 -10 110 -10 58 0 107 4 110 10 3 6 14 10 24 10 24 0 81 29 81 41 0 5 7 9 15 9 20 0 119 99 144 144 12 20 21 45 21 55 0 10 7 21 15 25 22 8 22 254 0 262 -8 4 -15 14 -15 24 0 11 -4 22 -10 25 -5 3 -10 14 -10 25 0 19 -130 145 -167 163 -13 6 -23 14 -23 19 0 4 -9 8 -19 8 -11 0 -23 5 -26 10 -3 6 -17 10 -30 10 -13 0 -27 5 -30 10 -3 6 -14 10 -25 10 -10 0 -20 7 -24 15 -3 8 -12 15 -21 15 -8 0 -23 4 -33 9 -9 5 -28 13 -42 18 -52 21 -85 36 -100 44 -8 5 -22 12 -30 15 -35 14 -66 27 -82 35 -10 5 -24 9 -32 9 -8 0 -16 7 -20 15 -3 8 -12 15 -21 15 -8 0 -23 4 -33 9 -9 5 -30 14 -47 21 -16 7 -38 16 -47 21 -10 5 -24 9 -32 9 -8 0 -16 7 -20 15 -3 8 -16 15 -30 15 -14 0 -28 5 -31 10 -3 6 -19 10 -35 10 -16 0 -32 -4 -35 -10z"/>
<path d="M1960 1435 c-7 -8 -18 -15 -25 -15 -7 0 -24 -11 -39 -25 -14 -13 -47 -38 -73 -56 -27 -18 -59 -42 -73 -54 -14 -13 -34 -25 -45 -27 -16 -2 -21 -12 -23 -48 -2 -26 -10 -48 -18 -53 -11 -6 -14 -32 -14 -107 0 -55 -4 -102 -10 -105 -6 -3 -10 -48 -10 -100 0 -52 -4 -97 -10 -100 -6 -3 -10 -48 -10 -100 0 -73 -3 -94 -15 -99 -12 -4 -15 -27 -15 -116 0 -89 3 -112 15 -116 8 -4 15 -18 15 -33 0 -44 43 -117 101 -174 71 -68 91 -78 172 -85 37 -2 70 -9 73 -13 7 -12 74 -12 74 0 0 4 33 11 73 13 84 6 106 17 167 79 82 83 110 124 110 165 0 12 5 26 10 29 6 4 10 55 10 120 0 65 -4 116 -10 120 -6 3 -10 50 -10 105 0 55 -4 102 -10 105 -6 3 -10 50 -10 106 0 81 -3 99 -15 99 -12 0 -15 18 -15 98 0 54 -4 102 -9 108 -5 5 -11 27 -13 48 -2 33 -9 43 -37 59 -19 10 -53 34 -75 53 -22 19 -52 39 -68 46 -15 7 -28 18 -28 24 0 11 -66 47 -106 59 -13 3 -26 -1 -34 -10z"/>
</g>

</svg>
@@ -301,6 +301,7 @@ tar -C %OSGEO4W_ROOT% -cjf %ARCH%/release/qgis/%PACKAGENAME%-common/%PACKAGENAME
"apps/%PACKAGENAME%/plugins/basicauthmethod.dll" ^
"apps/%PACKAGENAME%/plugins/delimitedtextprovider.dll" ^
"apps/%PACKAGENAME%/plugins/gdalprovider.dll" ^
"apps/%PACKAGENAME%/plugins/geonodeprovider.dll" ^
"apps/%PACKAGENAME%/plugins/gpxprovider.dll" ^
"apps/%PACKAGENAME%/plugins/identcertauthmethod.dll" ^
"apps/%PACKAGENAME%/plugins/mssqlprovider.dll" ^
@@ -112,6 +112,8 @@ INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/src/core/fieldformatter
${CMAKE_SOURCE_DIR}/src/core/dxf
${CMAKE_SOURCE_DIR}/src/core/geometry
${CMAKE_SOURCE_DIR}/src/core/geocms
${CMAKE_SOURCE_DIR}/src/core/geocms/geonode
${CMAKE_SOURCE_DIR}/src/core/gps
${CMAKE_SOURCE_DIR}/src/core/layertree
${CMAKE_SOURCE_DIR}/src/core/layout
@@ -284,6 +284,7 @@
%Include fieldformatter/qgsrelationreferencefieldformatter.sip
%Include fieldformatter/qgsvaluemapfieldformatter.sip
%Include fieldformatter/qgsvaluerelationfieldformatter.sip
%Include geocms/geonode/qgsgeonodeconnection.sip
%Include gps/qgsqtlocationconnection.sip
%Include gps/qgsgpsconnectionregistry.sip
%Include qgsapplication.sip
@@ -382,6 +383,7 @@
%Include raster/qgsrasterdataprovider.sip
%Include raster/qgsrasterinterface.sip
%Include geometry/qgspoint.sip
%Include geocms/geonode/qgsgeonoderequest.sip
%Include gps/qgsgpsconnection.sip
%Include gps/qgsgpsdetector.sip
%Include gps/qgsnmeaconnection.sip
@@ -0,0 +1,115 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/geocms/geonode/qgsgeonodeconnection.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



class QgsGeoNodeConnection
{
%Docstring
Encapsulates settings related to a single GeoNode connection.
.. versionadded:: 3.0
%End

%TypeHeaderCode
#include "qgsgeonodeconnection.h"
%End
public:

explicit QgsGeoNodeConnection( const QString &name );
%Docstring
Constructor for a QgsGeoNodeConnection with the specified ``name``.
%End

QString connectionName() const;
%Docstring
Returns the name of the connection.
.. seealso:: setConnectionName()
:rtype: str
%End

void setConnectionName( const QString &connectionName );
%Docstring
Sets the ``name`` of the connection.
.. seealso:: connectionName()
%End

QgsDataSourceUri uri() const;
%Docstring
Returns the URI for the GeoNode connection.
.. seealso:: setUri()
:rtype: QgsDataSourceUri
%End

void setUri( const QgsDataSourceUri &uri );
%Docstring
Sets the ``uri`` for the GeoNode connection.
.. seealso:: uri()
%End

QgsDataSourceUri &addWmsConnectionSettings( QgsDataSourceUri &uri ) const;
%Docstring
Adds uri parameters relating to the settings for a WMS layer on the connection to a QgsDataSourceUri ``uri``.
.. seealso:: addWmsWcsConnectionSettings()
:rtype: QgsDataSourceUri
%End

QgsDataSourceUri &addWfsConnectionSettings( QgsDataSourceUri &uri ) const;
%Docstring
Adds uri parameters relating to the settings for a WFS layer on the connection to a QgsDataSourceUri ``uri``.
.. seealso:: addWmsWcsConnectionSettings()
:rtype: QgsDataSourceUri
%End

};

class QgsGeoNodeConnectionUtils
{
%Docstring
Contains various utilities for managing the known collection of
GeoNode servers associated with a QGIS install.
.. versionadded:: 3.0
%End

%TypeHeaderCode
#include "qgsgeonodeconnection.h"
%End
public:

static QStringList connectionList();
%Docstring
Returns a list of all known GeoNode connection names.
:rtype: list of str
%End

static void deleteConnection( const QString &name );
%Docstring
Deletes the GeoNode connection with matching ``name``.
%End

static QString pathGeoNodeConnection();
%Docstring
Returns the base path for settings related to GeoNode connections.
:rtype: str
%End

static QString pathGeoNodeConnectionDetails();
%Docstring
Returns the base path for settings related to GeoNode connection details.
:rtype: str
%End

};


/************************************************************************
* This file has been generated automatically from *
* *
* src/core/geocms/geonode/qgsgeonodeconnection.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/

0 comments on commit 5796783

Please sign in to comment.
You can’t perform that action at this time.