Skip to content

Commit

Permalink
add sip bindings to QgsCredentialsNone (followup 42bc938)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 16, 2016
1 parent 54fa23c commit 55727c3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions python/core/qgscredentials.sip
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,30 @@ class QgsCredentials
/**
\brief Default implementation of credentials interface

This class doesn't prompt or return credentials
*/
class QgsCredentialsNone : QObject, QgsCredentials
{
%TypeHeaderCode
#include <qgscredentials.h>
%End

public:
QgsCredentialsNone();

signals:
//! signals that object will be destroyed and shouldn't be used anymore
void destroyed();

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


/**
\brief Implementation of credentials interface for the console

This class outputs message to the standard output and retrieves input from
standard input. Therefore it won't be the right choice for apps without
GUI.
Expand Down

0 comments on commit 55727c3

Please sign in to comment.