2017-05-31 10:09:57 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/auth/qgsauthimportcertdialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-09-21 06:17:48 -06:00
|
|
|
class QgsAuthImportCertDialog : QDialog
|
|
|
|
{
|
2017-05-31 10:09:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Widget for importing a certificate into the authentication database
|
2015-09-21 06:17:48 -06:00
|
|
|
%End
|
|
|
|
|
2017-05-31 10:09:57 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsauthimportcertdialog.h"
|
|
|
|
%End
|
2015-09-21 06:17:48 -06:00
|
|
|
public:
|
|
|
|
enum CertFilter
|
|
|
|
{
|
2017-05-31 10:09:57 +02:00
|
|
|
NoFilter,
|
|
|
|
CaFilter,
|
2015-09-21 06:17:48 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
enum CertInput
|
|
|
|
{
|
2017-05-31 10:09:57 +02:00
|
|
|
AllInputs,
|
|
|
|
FileInput,
|
|
|
|
TextInput,
|
2015-09-21 06:17:48 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
explicit QgsAuthImportCertDialog( QWidget *parent /TransferThis/ = 0,
|
|
|
|
QgsAuthImportCertDialog::CertFilter filter = NoFilter,
|
|
|
|
QgsAuthImportCertDialog::CertInput input = AllInputs );
|
2017-05-31 10:09:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Construct a dialog for importing certificates
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param parent: Parent widget
|
|
|
|
:param filter: Certificate type filter to apply to dialog
|
|
|
|
:param input: Type of input(s) for certificates
|
2017-05-31 10:09:57 +02:00
|
|
|
%End
|
2015-09-21 06:17:48 -06:00
|
|
|
|
|
|
|
const QList<QSslCertificate> certificatesToImport();
|
2017-05-31 10:09:57 +02:00
|
|
|
%Docstring
|
|
|
|
Get list of certificate objects to import
|
|
|
|
%End
|
2015-09-21 06:17:48 -06:00
|
|
|
|
|
|
|
const QString certFileToImport();
|
2017-05-31 10:09:57 +02:00
|
|
|
%Docstring
|
|
|
|
Get the file path to a certificate to import
|
|
|
|
%End
|
2015-09-21 06:17:48 -06:00
|
|
|
|
|
|
|
const QString certTextToImport();
|
2017-05-31 10:09:57 +02:00
|
|
|
%Docstring
|
|
|
|
Get certificate text to import
|
|
|
|
%End
|
2015-09-21 06:17:48 -06:00
|
|
|
|
|
|
|
bool allowInvalidCerts();
|
2017-05-31 10:09:57 +02:00
|
|
|
%Docstring
|
|
|
|
Whether to allow importation of invalid certificates (so trust policy can be overridden)
|
|
|
|
%End
|
2015-09-21 06:17:48 -06:00
|
|
|
|
|
|
|
QgsAuthCertUtils::CertTrustPolicy certTrustPolicy();
|
2017-05-31 10:09:57 +02:00
|
|
|
%Docstring
|
|
|
|
Defined trust policy for imported certificates
|
|
|
|
%End
|
|
|
|
|
2015-09-21 06:17:48 -06:00
|
|
|
};
|
2017-05-31 10:09:57 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/auth/qgsauthimportcertdialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|