Skip to content
Permalink
Browse files

[FEATURE] QGIS - GeoNode Integration: Integrate with QGIS Browser Pan…

…el (#4816)

* add Geonode connection menu to the toolbar

* add header files for geonode-qgis client

* add action to launch geonode connection dialog from menubar

* Move to proper directory

* Add geonodeconnection class.

* Add unit test for geonode connection.

* Use const static to avoid typo.

* Get list layers from geonode.

* Add get maps method.

* Geonode connection dialog (#13)

* add new geonode connection dialog

* apply functionality to the geonode connection manager dialog

* add save and load geonode connection functionality

* edit baseKey and credentialBaseKey

* remove auto-connect slots

* Add unit test for geonode connection.

* Add wms url getter.

* Add uuid and layer name in the table.

* Add handler for the list layer clicked. WIP.

* Use new style connect, better hacky to get wms url.

* update gitignore

* Make QGIS able to add WMS layer from geonode. With hacky code.

* Fix Docstring.

* Show web service type (WMS/WFS) in layer table.

* fix http and toolbar menu

* add geonode data item to the browser panel as an extention of ows provider

* [WIP] Add WFS.

* Add geonode get service url.

* combobox functionality and test geonode connection

* Add WFS.

* Disable add button if it's a map. Currently we can't do anything for map.

* Add busy cursor when add layer.

* get service uri capabilitites

* add available layers to the geonode browser panel

* remove debugging footprint and replace old style connect

* add actions (new, edit, delete) to geonode browser panel

* fix getLayers by WMS url

* add Geonode connection menu to the toolbar

* Filter out invalid layer / map.

* Fix service url method.

* Add service url for XYZ for GeoNode QGIS Server backend.

* Add XYZ url to geonode connection  dialog.

* Add XYZ layer to QGIS.

* fix double geonode submenu

* add wfs/wms layers from browser panel using its native provider

* comply with qgis3 new class naming

* Handle different prefix for layer in GeoNode QGIS Server backend.

* base class for cms connection

* make geonode connection as a derived class from cms connection

* update cmakelists

* move geonode connection to geocms dir

* update CMakeLists

* Handle geonode 2.7 with new API.

* Handle multiple geoserver url in one geonode.

* Fix add xyz for qgis server. Fix add wms, wfs, xyz for geoserver in geonode 2.7

* Refactor serviceURL to return QStringList.

* add 'add geonode layer' icon

* add geonode to the data source manager dialog

* [GeoNode-Client] Fix add WFS layer.

* fix wms url parameter

* add xyz dataitems

* Use new style connect.

* [GeoNode Client] Handle qgis server specific typename to make add WFS works.

* Code improvement.

* [GeoNode Client] Make geonode dialog in add universal layer can add layer.

* Open universal add layer when click Add GeoNode layer.

* Make sure the geonode url has protocol.

* Handle geonode version in a better way.

* make sure the serviceUrl method has scheme in its urls

* add services option to the dialog

* remove version label if not wfs

* construct wms url with parameters for geonode connection

* handle layer from multi service urls for every wfs, wms, & xyz services

* fix new style connect using static_cast

* hode close button if dialog is in embedded mode

* fix xyz layer naming in the browser tree

* create base class for geocms dataitems

* fix compiling warning

* Use struct instead QVariantMap.

* tidy up code

* Tidy up code, use QgsStringMap instead QVariantMap.

* Add spellok for catalogue.

* update sip

* update sip

* Use naming convention for QgsGeoCmsConnection and use QUuid.

* Async by using GeoNodeRequest class.

* Move geonode to src/gui.

* Use stack not heap.

* Remove unused includes.

* Use signal to handle request.

* Use QStringLiteral.

* Switch to use Q_FOREACH.

* Use Q_FOREACH and addressing PR's review.

* Set private for data members.

* update sip

* Update sip.

* Update sip.

* Fix sip problem to make it buildable again.

* Remove geocms

* Tidy up code.

* Use QgsSetting Scope::Provider.

* Fix missing zip.h
  • Loading branch information
myarjunar authored and nyalldawson committed Aug 6, 2017
1 parent 5614df4 commit bea89b32ca19a63d9eb2f582490e33efe7023e7f
Showing with 3,898 additions and 19 deletions.
  1. +1 −1 .gitignore
  2. +2 −0 images/images.qrc
  3. +407 −0 images/themes/default/mActionAddGeonodeLayer.svg
  4. +13 −0 images/themes/default/mIconGeonode.svg
  5. +2 −0 python/CMakeLists.txt
  6. +2 −0 python/core/core_auto.sip
  7. 0 python/core/geonode/qgsdataitemprovider.sip
  8. +86 −0 python/core/geonode/qgsgeonodeconnection.sip
  9. +121 −0 python/core/geonode/qgsgeonoderequest.sip
  10. +5 −0 python/core/qgsdataitemprovider.sip
  11. +51 −0 python/gui/geonode/qgsgeonodenewconnection.sip
  12. +64 −0 python/gui/geonode/qgsgeonodesourceselect.sip
  13. +2 −0 python/gui/gui_auto.sip
  14. +1 −0 python/gui/qgsmanageconnectionsdialog.sip
  15. +2 −0 src/app/CMakeLists.txt
  16. +30 −1 src/app/qgisapp.cpp
  17. +6 −0 src/app/qgisapp.h
  18. +4 −0 src/app/qgisappinterface.cpp
  19. +3 −0 src/app/qgisappinterface.h
  20. +12 −1 src/core/CMakeLists.txt
  21. +117 −0 src/core/geonode/qgsgeonodeconnection.cpp
  22. +72 −0 src/core/geonode/qgsgeonodeconnection.h
  23. +420 −0 src/core/geonode/qgsgeonoderequest.cpp
  24. +112 −0 src/core/geonode/qgsgeonoderequest.h
  25. +4 −0 src/core/qgsdataitemprovider.h
  26. +12 −0 src/gui/CMakeLists.txt
  27. +266 −0 src/gui/geonode/qgsgeonodenewconnection.cpp
  28. +47 −0 src/gui/geonode/qgsgeonodenewconnection.h
  29. +505 −0 src/gui/geonode/qgsgeonodesourceselect.cpp
  30. +88 −0 src/gui/geonode/qgsgeonodesourceselect.h
  31. +19 −0 src/gui/qgsdatasourcemanagerdialog.cpp
  32. +5 −1 src/gui/qgsdatasourcemanagerdialog.h
  33. +123 −0 src/gui/qgsmanageconnectionsdialog.cpp
  34. +3 −0 src/gui/qgsmanageconnectionsdialog.h
  35. +1 −0 src/gui/qgsnewhttpconnection.cpp
  36. +7 −1 src/providers/ows/CMakeLists.txt
  37. +273 −0 src/providers/ows/qgsgeonodedataitems.cpp
  38. +87 −0 src/providers/ows/qgsgeonodedataitems.h
  39. +8 −13 src/providers/ows/qgsowsdataitems.cpp
  40. +15 −0 src/providers/ows/qgsowsdataitems.h
  41. +1 −0 src/providers/wfs/CMakeLists.txt
  42. +87 −0 src/providers/wfs/qgswfsdataitems.cpp
  43. +16 −0 src/providers/wfs/qgswfsdataitems.h
  44. +1 −0 src/providers/wms/CMakeLists.txt
  45. +89 −0 src/providers/wms/qgswmsdataitems.cpp
  46. +5 −0 src/providers/wms/qgswmsdataitems.h
  47. +217 −0 src/ui/qgsgeonodesourceselectbase.ui
  48. +355 −0 src/ui/qgsnewgeonodeconnectionbase.ui
  49. +1 −1 src/ui/qgsnewhttpconnectionbase.ui
  50. +2 −0 tests/src/core/CMakeLists.txt
  51. +126 −0 tests/src/core/testqgsgeonodeconnection.cpp
@@ -23,7 +23,7 @@
/CMakeLists.txt.user
/CMakeLists.txt.user.*
api_doc
build*
*build*
debian/*.debhelper
debian/*.substvars
desktop.ini
@@ -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>
@@ -112,6 +112,7 @@ 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/geonode
${CMAKE_SOURCE_DIR}/src/core/gps
${CMAKE_SOURCE_DIR}/src/core/layertree
${CMAKE_SOURCE_DIR}/src/core/layout
@@ -141,6 +142,7 @@ IF (WITH_GUI)
${CMAKE_SOURCE_DIR}/src/gui/editorwidgets
${CMAKE_SOURCE_DIR}/src/gui/editorwidgets/core
${CMAKE_SOURCE_DIR}/src/gui/effects
${CMAKE_SOURCE_DIR}/src/gui/geonode
${CMAKE_SOURCE_DIR}/src/gui/layertree
${CMAKE_SOURCE_DIR}/src/gui/layout
${CMAKE_SOURCE_DIR}/src/gui/locator
@@ -284,6 +284,8 @@
%Include fieldformatter/qgsrelationreferencefieldformatter.sip
%Include fieldformatter/qgsvaluemapfieldformatter.sip
%Include fieldformatter/qgsvaluerelationfieldformatter.sip
%Include geonode/qgsgeonodeconnection.sip
%Include geonode/qgsgeonoderequest.sip
%Include gps/qgsqtlocationconnection.sip
%Include gps/qgsgpsconnectionregistry.sip
%Include qgsapplication.sip
No changes.
@@ -0,0 +1,86 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/geonode/qgsgeonodeconnection.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/




class QgsGeoNodeConnection : QObject
{
%Docstring
!
GeoNode Connections management
%End

%TypeHeaderCode
#include "qgsgeonodeconnection.h"
%End
public:
explicit QgsGeoNodeConnection( const QString &connName );
%Docstring
Constructor
%End

~QgsGeoNodeConnection();
%Docstring
Destructor
%End

QString connName() const;
%Docstring
:rtype: str
%End
void setConnName( const QString &connName );

QgsDataSourceUri uri();
%Docstring
:rtype: QgsDataSourceUri
%End
void setUri( const QgsDataSourceUri &uri );

static QStringList connectionList();
%Docstring
Retrieve all geonode connection
:rtype: list of str
%End

static void deleteConnection( const QString &name );
%Docstring
Delete connection with name, name
%End

static QString selectedConnection();
%Docstring
Get selected connection
:rtype: str
%End

static void setSelectedConnection( const QString &name );
%Docstring
Set selected connection
%End

static QString pathGeoNodeConnection();
%Docstring
:rtype: str
%End

static QString pathGeoNodeConnectionDetails();
%Docstring
:rtype: str
%End

};


/************************************************************************
* This file has been generated automatically from *
* *
* src/core/geonode/qgsgeonodeconnection.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
@@ -0,0 +1,121 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/geonode/qgsgeonoderequest.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/




struct QgsServiceLayerDetail
{
%TypeHeaderCode
#include <qgsgeonoderequest.h>
%End
QUuid uuid;
QString name;
QString typeName;
QString title;
QString wmsURL;
QString wfsURL;
QString xyzURL;
};

class QgsGeoNodeRequest : QObject
{

%TypeHeaderCode
#include "qgsgeonoderequest.h"
%End
public:
explicit QgsGeoNodeRequest( bool forceRefresh, QObject *parent = 0 );
QgsGeoNodeRequest( const QString &baseUrl, /*const QgsWmsAuthorization &auth,*/ bool forceRefresh, QObject *parent = 0 );
virtual ~QgsGeoNodeRequest();

bool request( QString endPoint );
%Docstring
:rtype: bool
%End

bool getLayers();
%Docstring
:rtype: bool
%End

QList<QgsServiceLayerDetail> parseLayers( QByteArray layerResponse );
%Docstring
:rtype: list of QgsServiceLayerDetail
%End

QStringList serviceUrls( QString serviceType );
%Docstring
:rtype: list of str
%End

QgsStringMap serviceUrlData( QString serviceType );
%Docstring
:rtype: QgsStringMap
%End

QString lastError() const;
%Docstring
:rtype: str
%End

QByteArray response() const;
%Docstring
:rtype: QByteArray
%End

QNetworkReply *reply() const;
%Docstring
:rtype: QNetworkReply
%End

void abort();
%Docstring
Abort network request immediately
%End

QString getProtocol() const;
%Docstring
:rtype: str
%End
void setProtocol( const QString &protocol );

signals:
void statusChanged( const QString &statusQString );
%Docstring
emit a signal to be caught by qgisapp and display a statusQString on status bar
%End

void requestFinished();
%Docstring
emit a signal once the request is finished
%End

protected slots:
void replyFinished();
void replyProgress( qint64, qint64 );

protected:









};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/geonode/qgsgeonoderequest.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
@@ -49,6 +49,11 @@ Caller takes responsibility of deleting created items.
:rtype: QgsDataItem
%End

virtual QVector<QgsDataItem *> createDataItems( const QString &path, QgsDataItem *parentItem );
%Docstring
Caller takes responsibility of deleting created items.
:rtype: list of QgsDataItem
%End
};

/************************************************************************
@@ -0,0 +1,51 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/geonode/qgsgeonodenewconnection.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/




class QgsGeoNodeNewConnection : QDialog
{
%Docstring
*************************************************************************
*
This program is free software; you can redistribute it and/or modify *
it under the terms of the GNU General Public License as published by *
the Free Software Foundation; either version 2 of the License, or *
(at your option) any later version. *
*
**************************************************************************
%End

%TypeHeaderCode
#include "qgsgeonodenewconnection.h"
%End
public:
QgsGeoNodeNewConnection( QWidget *parent = 0, const QString &connName = QString::null, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
%Docstring
Constructor
%End

public slots:
virtual void accept();

void okButtonBehavior( const QString & );
void testConnection();
%Docstring
Test the connection using the parameters supplied
%End

};

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

0 comments on commit bea89b3

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