add sip bindings to QgsCredentialsNone (followup 42bc9387)

This commit is contained in:
Juergen E. Fischer 2016-02-16 13:29:36 +01:00
parent 54fa23c453
commit 55727c3fcf

View File

@ -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.