Skip to content

Commit 6bcc066

Browse files
committedApr 17, 2017
sipify QgsCredentials dialog
1 parent ec5a891 commit 6bcc066

File tree

3 files changed

+41
-12
lines changed

3 files changed

+41
-12
lines changed
 

‎python/auto_sip.blacklist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ gui/qgscomposerruler.sip
349349
gui/qgscomposerview.sip
350350
gui/qgscompoundcolorwidget.sip
351351
gui/qgsconfigureshortcutsdialog.sip
352-
gui/qgscredentialdialog.sip
353352
gui/qgscustomdrophandler.sip
354353
gui/qgscurveeditorwidget.sip
355354
gui/qgsdetaileditemdata.sip

‎python/gui/qgscredentialdialog.sip

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,45 @@
1-
/** \ingroup gui
2-
* A generic dialog for requesting credentials
3-
*/
1+
/************************************************************************
2+
* This file has been generated automatically from *
3+
* *
4+
* src/gui/qgscredentialdialog.h *
5+
* *
6+
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
7+
************************************************************************/
8+
9+
10+
11+
12+
413
class QgsCredentialDialog : QDialog, QgsCredentials
514
{
6-
%TypeHeaderCode
7-
#include <qgscredentialdialog.h>
15+
%Docstring
16+
A generic dialog for requesting credentials
817
%End
918

19+
%TypeHeaderCode
20+
#include "qgscredentialdialog.h"
21+
%End
1022
public:
11-
QgsCredentialDialog( QWidget *parent /TransferThis/ = 0, const Qt::WindowFlags& fl = QgisGui::ModalDialogFlags );
12-
~QgsCredentialDialog();
23+
QgsCredentialDialog( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
24+
1325

1426
protected:
15-
virtual bool request( const QString& realm, QString &username /In,Out/, QString &password /In,Out/, const QString& message = QString::null );
27+
virtual bool request( const QString &realm, QString &username /In,Out/, QString &password /In,Out/, const QString &message = QString::null );
28+
%Docstring
29+
:rtype: bool
30+
%End
1631

1732
virtual bool requestMasterPassword( QString &password /In,Out/, bool stored = false );
33+
%Docstring
34+
:rtype: bool
35+
%End
36+
1837
};
38+
39+
/************************************************************************
40+
* This file has been generated automatically from *
41+
* *
42+
* src/gui/qgscredentialdialog.h *
43+
* *
44+
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
45+
************************************************************************/

‎src/gui/qgscredentialdialog.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "qgscredentials.h"
2323

2424
#include <QString>
25+
#include "qgis.h"
2526
#include "qgis_gui.h"
2627

2728
class QPushButton;
@@ -33,15 +34,17 @@ class GUI_EXPORT QgsCredentialDialog : public QDialog, public QgsCredentials, pr
3334
{
3435
Q_OBJECT
3536
public:
36-
QgsCredentialDialog( QWidget *parent = nullptr, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
37+
QgsCredentialDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
3738

39+
#ifndef SIP_RUN
3840
signals:
3941

4042
//! \note not available in Python bindings
4143
void credentialsRequested( const QString &, QString *, QString *, const QString &, bool * );
4244

4345
//! \note not available in Python bindings
4446
void credentialsRequestedMasterPassword( QString *, bool, bool * );
47+
#endif
4548

4649
private slots:
4750
void requestCredentials( const QString &, QString *, QString *, const QString &, bool * );
@@ -53,9 +56,9 @@ class GUI_EXPORT QgsCredentialDialog : public QDialog, public QgsCredentials, pr
5356
void on_chkbxEraseAuthDb_toggled( bool checked );
5457

5558
protected:
56-
virtual bool request( const QString &realm, QString &username, QString &password, const QString &message = QString::null ) override;
59+
virtual bool request( const QString &realm, QString &username SIP_INOUT, QString &password SIP_INOUT, const QString &message = QString::null ) override;
5760

58-
virtual bool requestMasterPassword( QString &password, bool stored = false ) override;
61+
virtual bool requestMasterPassword( QString &password SIP_INOUT, bool stored = false ) override;
5962

6063
private:
6164
QPushButton *mOkButton = nullptr;

0 commit comments

Comments
 (0)
Please sign in to comment.