29 #include <QInputDialog>
30 #include <QMessageBox>
35 #include <QNetworkRequest>
36 #include <QNetworkReply>
39 mConnName( theConnName ),
40 mService( theService )
49 QStringList connStringParts;
52 mUri.
setParam(
"url", settings.value( key +
"/url" ).toString() );
55 QString username = settings.value( credentialsKey +
"/username" ).toString();
56 QString password = settings.value( credentialsKey +
"/password" ).toString();
57 if ( !username.isEmpty() )
60 if ( password.isEmpty() )
62 password = QInputDialog::getText( 0,
tr(
"WMS Password for %1" ).arg( mConnName ),
tr(
"Password" ), QLineEdit::Password );
69 bool ignoreGetMap = settings.value( key +
"/ignoreGetMapURI",
false ).toBool();
70 bool ignoreGetFeatureInfo = settings.value( key +
"/ignoreGetFeatureInfoURI",
false ).toBool();
71 bool ignoreAxisOrientation = settings.value( key +
"/ignoreAxisOrientation",
false ).toBool();
72 bool invertAxisOrientation = settings.value( key +
"/invertAxisOrientation",
false ).toBool();
77 if ( ignoreGetFeatureInfo )
81 if ( ignoreAxisOrientation )
85 if ( invertAxisOrientation )
129 settings.beginGroup(
"/Qgis/connections-" + theService.toLower() );
130 return settings.childGroups();
136 return settings.value(
"/Qgis/connections-" + theService.toLower() +
"/selected" ).toString();
142 settings.setValue(
"/Qgis/connections-" + theService.toLower() +
"/selected", name );
148 settings.remove(
"/Qgis/connections-" + theService.toLower() +
"/" + name );
149 settings.remove(
"/Qgis/" + theService +
"/" + name );