From 55727c3fcf5e0e6ac927a69648b243f803a40e0c Mon Sep 17 00:00:00 2001 From: "Juergen E. Fischer" Date: Tue, 16 Feb 2016 13:29:36 +0100 Subject: [PATCH] add sip bindings to QgsCredentialsNone (followup 42bc9387) --- python/core/qgscredentials.sip | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/python/core/qgscredentials.sip b/python/core/qgscredentials.sip index 18d71cae127..edd676964b9 100644 --- a/python/core/qgscredentials.sip +++ b/python/core/qgscredentials.sip @@ -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 +%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.