Skip to content
Permalink
Browse files
make username and password in-out parameters in QgsCredentials bindings
  • Loading branch information
alexbruy committed Dec 11, 2012
1 parent 13a2eaa commit dcf3ede3c3984503ef4e2a1104a1a021babacff7
Showing with 4 additions and 4 deletions.
  1. +3 −3 python/core/qgscredentials.sip
  2. +1 −1 python/gui/qgscredentialdialog.sip
@@ -8,15 +8,15 @@ class QgsCredentials
//! virtual destructor
virtual ~QgsCredentials();

bool get( QString realm, QString &username, QString &password, QString message = QString::null );
bool get( QString realm, QString &username /In,Out/, QString &password /In,Out/, QString message = QString::null );
void put( QString realm, QString username, QString password );

//! retrieves instance
static QgsCredentials *instance();

protected:
//! request a password
virtual bool request( QString realm, QString &username, QString &password, QString message = QString::null ) = 0;
virtual bool request( QString realm, QString &username /In,Out/, QString &password /In,Out/, QString message = QString::null ) = 0;

//! register instance
void setInstance( QgsCredentials *theInstance );
@@ -37,5 +37,5 @@ class QgsCredentialsConsole : QObject, QgsCredentials
void destroyed();

protected:
virtual bool request( QString realm, QString &username, QString &password, QString message = QString::null );
virtual bool request( QString realm, QString &username /In,Out/, QString &password /In,Out/, QString message = QString::null );
};
@@ -12,5 +12,5 @@ class QgsCredentialDialog : QDialog, QgsCredentials
~QgsCredentialDialog();

protected:
virtual bool request( QString realm, QString &username, QString &password, QString message = QString::null );
virtual bool request( QString realm, QString &username /In,Out/, QString &password /In,Out/, QString message = QString::null );
};

0 comments on commit dcf3ede

Please sign in to comment.