22 const QString QgsGeoNodeConnectionUtils::sPathGeoNodeConnection = QStringLiteral( 
"qgis/connections-geonode" );
 
   23 const QString QgsGeoNodeConnectionUtils::sPathGeoNodeConnectionDetails = QStringLiteral( 
"qgis/GeoNode" );
 
   31   const QString key = settingsKey();
 
   34   mUri.
setParam( QStringLiteral( 
"url" ), settings.
value( key + QStringLiteral( 
"/url" ), QString() ).toString() );
 
   37   const QString username = settings.
value( credentialsKey + QStringLiteral( 
"/username" ), QString() ).toString();
 
   38   const QString password = settings.
value( credentialsKey + QStringLiteral( 
"/password" ), QString() ).toString();
 
   39   if ( !username.isEmpty() )
 
   45   const QString authcfg = settings.
value( credentialsKey + QStringLiteral( 
"/authcfg" ), QString() ).toString();
 
   46   if ( !authcfg.isEmpty() )
 
   89 QString QgsGeoNodeConnection::settingsKey()
 const 
  104   settings.
beginGroup( QStringLiteral( 
"qgis/connections-geonode" ) );
 
  115   return sPathGeoNodeConnection;
 
  120   return sPathGeoNodeConnectionDetails;
 
Class for storing the component parts of a RDBMS data source URI (e.g.
QByteArray encodedUri() const
Returns the complete encoded URI as a byte array.
void setAuthConfigId(const QString &authcfg)
Sets the authentication configuration ID for the URI.
void setUsername(const QString &username)
Sets the username for the URI.
void setParam(const QString &key, const QString &value)
Sets a generic parameter value on the URI.
void setPassword(const QString &password)
Sets the password for the URI.
static QString pathGeoNodeConnectionDetails()
Returns the base path for settings related to GeoNode connection details.
static void deleteConnection(const QString &name)
Deletes the GeoNode connection with matching name.
static QString pathGeoNodeConnection()
Returns the base path for settings related to GeoNode connections.
static QStringList connectionList()
Returns a list of all known GeoNode connection names.
void setUri(const QgsDataSourceUri &uri)
Sets the uri for the GeoNode connection.
QgsDataSourceUri & addWmsConnectionSettings(QgsDataSourceUri &uri) const
Adds uri parameters relating to the settings for a WMS layer on the connection to a QgsDataSourceUri ...
void setConnectionName(const QString &connectionName)
Sets the name of the connection.
QgsDataSourceUri & addWcsConnectionSettings(QgsDataSourceUri &uri) const
Adds uri parameters relating to the settings for a WCS layer on the connection to a QgsDataSourceUri ...
QString connectionName() const
Returns the name of the connection.
QgsDataSourceUri & addWfsConnectionSettings(QgsDataSourceUri &uri) const
Adds uri parameters relating to the settings for a WFS layer on the connection to a QgsDataSourceUri ...
QgsDataSourceUri uri() const
Returns the URI for the GeoNode connection.
QgsGeoNodeConnection(const QString &name)
Constructor for a QgsGeoNodeConnection with the specified name.
static QgsDataSourceUri & addWmsWcsConnectionSettings(QgsDataSourceUri &uri, const QString &settingsKey)
Adds uri parameters relating to the settings for a WMS or WCS connection to a QgsDataSourceUri uri.
static void deleteConnection(const QString &service, const QString &name)
Deletes the connection for the specified service with the specified name.
static QgsDataSourceUri & addWfsConnectionSettings(QgsDataSourceUri &uri, const QString &settingsKey)
Adds uri parameters relating to the settings for a WFS connection to a QgsDataSourceUri uri.
This class is a composition of two QSettings instances:
QStringList childGroups() const
Returns a list of all key top-level groups that contain keys that can be read using the QSettings obj...
QVariant value(const QString &key, const QVariant &defaultValue=QVariant(), Section section=NoSection) const
Returns the value for setting key.
void beginGroup(const QString &prefix, QgsSettings::Section section=QgsSettings::NoSection)
Appends prefix to the current group.
#define QgsDebugMsgLevel(str, level)