QGIS/python/gui/auth/qgsauthimportidentitydialog.sip

49 lines
1.2 KiB
Plaintext
Raw Normal View History

class QgsAuthImportIdentityDialog : QDialog
{
%TypeHeaderCode
#include <qgsauthimportidentitydialog.h>
%End
public:
2016-02-14 03:50:23 +01:00
/** Type of identity being imported */
enum IdentityType
{
CertIdentity = 0,
};
2016-02-14 03:50:23 +01:00
/** Type of bundles supported */
enum BundleTypes
{
PkiPaths = 0,
PkiPkcs12 = 1,
};
2016-02-14 03:50:23 +01:00
/** Type of certificate/bundle validity output */
enum Validity
{
Valid,
Invalid,
Unknown
};
2016-02-14 03:50:23 +01:00
/**
* Construct a dialog for importing identities
* @param identitytype Type of the identity to import
* @param parent Parent widget
*/
explicit QgsAuthImportIdentityDialog( QgsAuthImportIdentityDialog::IdentityType identitytype,
QWidget *parent /TransferThis/ = 0 );
~QgsAuthImportIdentityDialog();
2016-02-14 03:50:23 +01:00
/** Get identity type */
QgsAuthImportIdentityDialog::IdentityType identityType();
2016-02-14 03:50:23 +01:00
/** Get certificate/key bundle to be imported.
* @note not available in Python bindings
*/
// const QPair<QSslCertificate, QSslKey> certBundleToImport();
2016-02-14 03:50:23 +01:00
/** Get certificate/key bundle to be imported as a PKI bundle object */
const QgsPkiBundle pkiBundleToImport();
};