bool QgsAuthMethodConfig::operator==( const QgsAuthMethodConfig &other ) const { return ( other.id() == id() && other.name() == name() && other.uri() == uri() && other.method() == method() && other.version() == version() && other.configMap() == configMap() ); }
void QgsAuthMethodConfig::loadConfigString( const QString &configstr ) { clearConfigMap(); if ( configstr.isEmpty() ) { return; } QStringList confs( configstr.split( mConfigSep ) ); Q_FOREACH ( const QString& conf, confs ) { if ( conf.contains( mConfigKeySep ) ) { QStringList keyval( conf.split( mConfigKeySep ) ); setConfig( keyval.at( 0 ), keyval.at( 1 ) ); } } if ( configMap().empty() ) { setConfig( QStringLiteral( "oldconfigstyle" ), configstr ); } }
void QgsAuthMethodConfig::loadConfigString( const QString &configstr ) { clearConfigMap(); if ( configstr.isEmpty() ) { return; } const QStringList confs( configstr.split( CONFIG_SEP ) ); for ( const auto &conf : confs ) { if ( conf.contains( CONFIG_KEY_SEP ) ) { QStringList keyval( conf.split( CONFIG_KEY_SEP ) ); setConfig( keyval.at( 0 ), keyval.at( 1 ) ); } } if ( configMap().empty() ) { setConfig( QStringLiteral( "oldconfigstyle" ), configstr ); } }