QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
qgsgeonodeconnection.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsgeonodeconnection.h
3  ---------------------
4  begin : Feb 2017
5  copyright : (C) 2017 by Muhammad Yarjuna Rohmat, Ismail Sunni
6  email : rohmat at kartoza dot com, ismail at kartoza dot 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 QGSGEONODECONNECTION_H
17 #define QGSGEONODECONNECTION_H
18 
19 #include "qgis_core.h"
20 #include "qgsdatasourceuri.h"
21 
29 class CORE_EXPORT QgsGeoNodeConnectionUtils
30 {
31  public:
32 
36  static QStringList connectionList();
37 
41  static void deleteConnection( const QString &name );
42 
46  static QString pathGeoNodeConnection();
47 
52  Q_DECL_DEPRECATED static QString pathGeoNodeConnectionDetails() SIP_DEPRECATED;
53 
54  // Path in QSetting
55  static const QString sGeoNodeConnection;
56 };
57 
64 class CORE_EXPORT QgsGeoNodeConnection
65 {
66  public:
67 
71  explicit QgsGeoNodeConnection( const QString &name );
72 
77  QString connectionName() const;
78 
83  void setConnectionName( const QString &connectionName );
84 
89  QgsDataSourceUri uri() const;
90 
95  void setUri( const QgsDataSourceUri &uri );
96 
101  QgsDataSourceUri &addWmsConnectionSettings( QgsDataSourceUri &uri ) const;
102 
107  QgsDataSourceUri &addWfsConnectionSettings( QgsDataSourceUri &uri ) const;
108 
115  QgsDataSourceUri &addWcsConnectionSettings( QgsDataSourceUri &uri ) const;
116 
117 
118  private:
119 
121  QString mConnName;
122 
124  QgsDataSourceUri mUri;
125 };
126 
127 
128 
129 #endif //QGSGEONODECONNECTION_H
QgsDataSourceUri
Class for storing the component parts of a RDBMS data source URI (e.g. a Postgres data source).
Definition: qgsdatasourceuri.h:37
QgsGeoNodeConnectionUtils
Contains various utilities for managing the known collection of GeoNode servers associated with a QGI...
Definition: qgsgeonodeconnection.h:29
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition: qgis_sip.h:106
qgsdatasourceuri.h
QgsGeoNodeConnection
Encapsulates settings related to a single GeoNode connection.
Definition: qgsgeonodeconnection.h:64
QgsGeoNodeConnectionUtils::sGeoNodeConnection
static const QString sGeoNodeConnection
Definition: qgsgeonodeconnection.h:55