Skip to content

Commit

Permalink
make username and password in-out parameters in QgsCredentials bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Dec 11, 2012
1 parent 13a2eaa commit dcf3ede
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions python/core/qgscredentials.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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 );
};
2 changes: 1 addition & 1 deletion python/gui/qgscredentialdialog.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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.