19 #include <QTextIStream>
20 #include <QTextOStream>
28 QgsDebugMsg(
"already registered an instance of QgsCredentials" );
51 username = credentials.first;
52 password = credentials.second;
53 QgsDebugMsg( QString(
"retrieved realm:%1 username:%2 password:%3" ).arg( realm ).arg( username ).arg( password ) );
56 else if (
request( realm, username, password, message ) )
58 QgsDebugMsg( QString(
"requested realm:%1 username:%2 password:%3" ).arg( realm ).arg( username ).arg( password ) );
63 QgsDebugMsg( QString(
"unset realm:%1" ).arg( realm ) );
70 QgsDebugMsg( QString(
"inserting realm:%1 username:%2 password:%3" ).arg( realm ).arg( username ).arg( password ) );
71 mCredentialCache.insert( realm, QPair<QString, QString>( username, password ) );
84 QTextStream in( stdin, QIODevice::ReadOnly );
85 QTextStream out( stdout, QIODevice::WriteOnly );
87 out <<
"credentials for " << realm << endl;
88 if ( !message.isEmpty() )
89 out <<
"message: " << message << endl;