Skip to content

Commit

Permalink
sipify gui auth classes
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed May 31, 2017
1 parent 77cd7af commit 7e52f06
Show file tree
Hide file tree
Showing 18 changed files with 853 additions and 113 deletions.
16 changes: 0 additions & 16 deletions python/auto_sip.blacklist
Original file line number Diff line number Diff line change
Expand Up @@ -187,22 +187,6 @@ gui/attributetable/qgsfeatureselectionmodel.sip
gui/attributetable/qgsfieldconditionalformatwidget.sip
gui/attributetable/qgsifeatureselectionmanager.sip
gui/attributetable/qgsorganizetablecolumnsdialog.sip
gui/auth/qgsauthauthoritieseditor.sip
gui/auth/qgsauthcertificateinfo.sip
gui/auth/qgsauthcertificatemanager.sip
gui/auth/qgsauthcerttrustpolicycombobox.sip
gui/auth/qgsauthconfigeditor.sip
gui/auth/qgsauthconfigselect.sip
gui/auth/qgsautheditorwidgets.sip
gui/auth/qgsauthidentitieseditor.sip
gui/auth/qgsauthimportcertdialog.sip
gui/auth/qgsauthimportidentitydialog.sip
gui/auth/qgsauthmethodedit.sip
gui/auth/qgsauthserverseditor.sip
gui/auth/qgsauthsslconfigwidget.sip
gui/auth/qgsauthsslerrorsdialog.sip
gui/auth/qgsauthsslimportdialog.sip
gui/auth/qgsauthtrustedcasdialog.sip
gui/layertree/qgscustomlayerorderwidget.sip
gui/layertree/qgslayertreeembeddedconfigwidget.sip
gui/layertree/qgslayertreeembeddedwidgetregistry.sip
Expand Down
40 changes: 38 additions & 2 deletions python/gui/auth/qgsauthauthoritieseditor.sip
Original file line number Diff line number Diff line change
@@ -1,9 +1,45 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/auth/qgsauthauthoritieseditor.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/





class QgsAuthAuthoritiesEditor : QWidget
{
%Docstring
Widget for viewing and editing authentication identities database
%End

%TypeHeaderCode
#include <qgsauthauthoritieseditor.h>
#include "qgsauthauthoritieseditor.h"
%End
public:

explicit QgsAuthAuthoritiesEditor( QWidget *parent /TransferThis/ = 0 );
~QgsAuthAuthoritiesEditor();
%Docstring
Widget for viewing and editing certificate authorities directly in database
\param parent Parent widget
%End

protected:
virtual void showEvent( QShowEvent *e );

%Docstring
Overridden show event of base widget
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/auth/qgsauthauthoritieseditor.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
65 changes: 57 additions & 8 deletions python/gui/auth/qgsauthcertificateinfo.sip
Original file line number Diff line number Diff line change
@@ -1,34 +1,83 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/auth/qgsauthcertificateinfo.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/






class QgsAuthCertInfo : QWidget
{
%Docstring
Widget for viewing detailed info on a certificate and its hierarchical trust chain
%End

%TypeHeaderCode
#include <qgsauthcertificateinfo.h>
#include "qgsauthcertificateinfo.h"
%End
public:
explicit QgsAuthCertInfo( const QSslCertificate& cert,
explicit QgsAuthCertInfo( const QSslCertificate &cert,
bool manageCertTrust = false,
QWidget *parent /TransferThis/ = 0,
const QList<QSslCertificate> &connectionCAs = QList<QSslCertificate>() );
~QgsAuthCertInfo();

bool trustCacheRebuilt();
%Docstring
:rtype: bool
%End

};

//////////////// Embed in dialog ///////////////////

class QgsAuthCertInfoDialog : QDialog
{
%TypeHeaderCode
#include <qgsauthcertificateinfo.h>
%Docstring
Dialog wrapper for widget displaying detailed info on a certificate and its hierarchical trust chain
%End

%TypeHeaderCode
#include "qgsauthcertificateinfo.h"
%End
public:
explicit QgsAuthCertInfoDialog( const QSslCertificate& cert,

explicit QgsAuthCertInfoDialog( const QSslCertificate &cert,
bool manageCertTrust,
QWidget *parent /TransferThis/ = 0,
const QList<QSslCertificate> &connectionCAs = QList<QSslCertificate>() );
~QgsAuthCertInfoDialog();
%Docstring
Construct a dialog displaying detailed info on a certificate and its hierarchical trust chain
\param cert Certificate object
\param manageCertTrust Whether to show widgets to manage the trust policy of certs in hierarchy
\param parent Parent widget
\param connectionCAs List of hierarchical certificates in a connection
%End

QgsAuthCertInfo *certInfoWidget();
%Docstring
Get access to embedded info widget
:rtype: QgsAuthCertInfo
%End

bool trustCacheRebuilt();
%Docstring
Whether the trust cache has been rebuilt
.. note::

This happens when a trust policy has been adjusted for any cert in the hierarchy
:rtype: bool
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/auth/qgsauthcertificateinfo.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
54 changes: 47 additions & 7 deletions python/gui/auth/qgsauthcertificatemanager.sip
Original file line number Diff line number Diff line change
@@ -1,25 +1,65 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/auth/qgsauthcertificatemanager.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/





class QgsAuthCertEditors : QWidget
{
%TypeHeaderCode
#include <qgsauthcertificatemanager.h>
%Docstring
Wrapper widget to manage available certificate editors
%End

%TypeHeaderCode
#include "qgsauthcertificatemanager.h"
%End
public:

explicit QgsAuthCertEditors( QWidget *parent /TransferThis/ = 0 );
%Docstring
Construct a widget to contain various certificate editors
\param parent Parent widget
%End

~QgsAuthCertEditors();
};



class QgsAuthCertManager : QDialog
{
%TypeHeaderCode
#include <qgsauthcertificatemanager.h>
%Docstring
Dialog wrapper for widget to manage available certificate editors
%End

%TypeHeaderCode
#include "qgsauthcertificatemanager.h"
%End
public:
explicit QgsAuthCertManager( QWidget *parent /TransferThis/ = 0 );

~QgsAuthCertManager();
explicit QgsAuthCertManager( QWidget *parent /TransferThis/ = 0 );
%Docstring
Construct a dialog wrapper for widget to manage available certificate editors
\param parent Parent widget
%End

QgsAuthCertEditors *certEditorsWidget();
%Docstring
Get access to embedded editors widget
:rtype: QgsAuthCertEditors
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/auth/qgsauthcertificatemanager.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
55 changes: 49 additions & 6 deletions python/gui/auth/qgsauthcerttrustpolicycombobox.sip
Original file line number Diff line number Diff line change
@@ -1,21 +1,64 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/auth/qgsauthcerttrustpolicycombobox.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



class QgsAuthCertTrustPolicyComboBox : QComboBox
{
%TypeHeaderCode
#include <qgsauthcerttrustpolicycombobox.h>
%Docstring
Widget for editing the trust policy associated with a Certificate (Intermediate) Authority
%End

%TypeHeaderCode
#include "qgsauthcerttrustpolicycombobox.h"
%End
public:

explicit QgsAuthCertTrustPolicyComboBox(
QWidget *parent /TransferThis/ = 0,
QgsAuthCertUtils::CertTrustPolicy policy = QgsAuthCertUtils::DefaultTrust,
QgsAuthCertUtils::CertTrustPolicy defaultpolicy = QgsAuthCertUtils::DefaultTrust );
~QgsAuthCertTrustPolicyComboBox();
QWidget *parent /TransferThis/ = 0,
QgsAuthCertUtils::CertTrustPolicy policy = QgsAuthCertUtils::DefaultTrust,
QgsAuthCertUtils::CertTrustPolicy defaultpolicy = QgsAuthCertUtils::DefaultTrust );
%Docstring
Construct a combo box for defining certificate trust policy
\param parent Parent widget
\param policy Defined trust policy
\param defaultpolicy Default trust policy
%End

QgsAuthCertUtils::CertTrustPolicy trustPolicy();
%Docstring
Get currently set trust policy
:rtype: QgsAuthCertUtils.CertTrustPolicy
%End

QgsAuthCertUtils::CertTrustPolicy trustPolicyForIndex( int indx );
%Docstring
Get trust policy for a given index of combobox
:rtype: QgsAuthCertUtils.CertTrustPolicy
%End

public slots:
void setTrustPolicy( QgsAuthCertUtils::CertTrustPolicy policy );
%Docstring
Set current trust policy
%End

void setDefaultTrustPolicy( QgsAuthCertUtils::CertTrustPolicy defaultpolicy );
%Docstring
Set default trust policy
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/auth/qgsauthcerttrustpolicycombobox.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
46 changes: 42 additions & 4 deletions python/gui/auth/qgsauthconfigeditor.sip
Original file line number Diff line number Diff line change
@@ -1,18 +1,56 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/auth/qgsauthconfigeditor.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/





class QgsAuthConfigEditor : QWidget
{
%TypeHeaderCode
#include <qgsauthconfigeditor.h>
%Docstring
Widget for editing authentication configuration database
%End

%TypeHeaderCode
#include "qgsauthconfigeditor.h"
%End
public:

explicit QgsAuthConfigEditor( QWidget *parent /TransferThis/ = 0, bool showUtilities = true, bool relayMessages = true );
~QgsAuthConfigEditor();
%Docstring
Widget for editing authentication configurations directly in database
\param parent Parent widget
\param showUtilities Whether to show the widget's utilities button
\param relayMessages Whether to relay auth manager messages to internal message bar
%End

void toggleTitleVisibility( bool visible );
%Docstring
Hide the widget's title, e.g. when embedding
%End

public slots:

void setShowUtilitiesButton( bool show = true );
%Docstring
Set whether to show the widget's utilities button, e.g. when embedding
%End

void setRelayMessages( bool relay = true );
%Docstring
Set whether to relay auth manager messages to internal message bar, e.g. when embedding
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/auth/qgsauthconfigeditor.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
Loading

0 comments on commit 7e52f06

Please sign in to comment.