/usr/include/qgis/qgsauthimportcertdialog.h is in libqgis-dev 2.18.17+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | /***************************************************************************
qgsauthimportcertdialog.h
---------------------
begin : April 30, 2015
copyright : (C) 2015 by Boundless Spatial, Inc. USA
author : Larry Shaffer
email : lshaffer at boundlessgeo dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSAUTHIMPORTCERTDIALOG_H
#define QGSAUTHIMPORTCERTDIALOG_H
#include <QDialog>
#include "ui_qgsauthimportcertdialog.h"
#include "qgsauthcertutils.h"
#include <QSslCertificate>
class QPushButton;
/** \ingroup gui
* Widget for importing a certificate into the authentication database
*/
class GUI_EXPORT QgsAuthImportCertDialog : public QDialog, private Ui::QgsAuthImportCertDialog
{
Q_OBJECT
public:
/** Type of filter to apply to dialog */
enum CertFilter
{
NoFilter = 1,
CaFilter = 2,
};
/** Type of inputs for certificates */
enum CertInput
{
AllInputs = 1,
FileInput = 2,
TextInput = 3,
};
/**
* Construct a dialog for importing certificates
* @param parent Parent widget
* @param filter Certificate type filter to apply to dialog
* @param input Type of input(s) for certificates
*/
explicit QgsAuthImportCertDialog( QWidget *parent = nullptr,
QgsAuthImportCertDialog::CertFilter filter = NoFilter,
QgsAuthImportCertDialog::CertInput input = AllInputs );
~QgsAuthImportCertDialog();
/** Get list of certificate objects to import */
const QList<QSslCertificate> certificatesToImport();
/** Get the file path to a certificate to import */
const QString certFileToImport();
/** Get certificate text to import */
const QString certTextToImport();
/** Whether to allow importation of invalid certificates (so trust policy can be overridden) */
bool allowInvalidCerts();
/** Defined trust policy for imported certificates */
QgsAuthCertUtils::CertTrustPolicy certTrustPolicy();
private slots:
void updateGui();
void validateCertificates();
void on_btnImportFile_clicked();
void on_chkAllowInvalid_toggled( bool checked );
private:
QString getOpenFileName( const QString& title, const QString& extfilter );
QPushButton* okButton();
QList<QSslCertificate> mCerts;
QgsAuthImportCertDialog::CertFilter mFilter;
QgsAuthImportCertDialog::CertInput mInput;
bool mDisabled;
QVBoxLayout *mAuthNotifyLayout;
QLabel *mAuthNotify;
};
#endif // QGSAUTHIMPORTCERTDIALOG_H
|