Skip to content

Commit 55727c3

Browse files
committedFeb 16, 2016
add sip bindings to QgsCredentialsNone (followup 42bc938)
1 parent 54fa23c commit 55727c3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
 

‎python/core/qgscredentials.sip

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,30 @@ class QgsCredentials
5656
/**
5757
\brief Default implementation of credentials interface
5858

59+
This class doesn't prompt or return credentials
60+
*/
61+
class QgsCredentialsNone : QObject, QgsCredentials
62+
{
63+
%TypeHeaderCode
64+
#include <qgscredentials.h>
65+
%End
66+
67+
public:
68+
QgsCredentialsNone();
69+
70+
signals:
71+
//! signals that object will be destroyed and shouldn't be used anymore
72+
void destroyed();
73+
74+
protected:
75+
virtual bool request( const QString& realm, QString &username /In,Out/, QString &password /In,Out/, const QString& message = QString::null );
76+
virtual bool requestMasterPassword( QString &password /In,Out/, bool stored = false );
77+
};
78+
79+
80+
/**
81+
\brief Implementation of credentials interface for the console
82+
5983
This class outputs message to the standard output and retrieves input from
6084
standard input. Therefore it won't be the right choice for apps without
6185
GUI.

0 commit comments

Comments
 (0)
Please sign in to comment.