QGIS API Documentation 3.27.0-Master (1c05421486)
qgsauthcerttrustpolicycombobox.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsauthcerttrustpolicycombobox.h
3 ---------------------
4 begin : May 02, 2015
5 copyright : (C) 2015 by Boundless Spatial, Inc. USA
6 author : Larry Shaffer
7 email : lshaffer at boundlessgeo dot com
8 ***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17#ifndef QGSAUTHCERTTRUSTPOLICYCOMBOBOX_H
18#define QGSAUTHCERTTRUSTPOLICYCOMBOBOX_H
19
20#include <QComboBox>
21#include "qgis_sip.h"
22#include "qgsauthcertutils.h"
23#include "qgis_gui.h"
24
29class GUI_EXPORT QgsAuthCertTrustPolicyComboBox : public QComboBox
30{
31 Q_OBJECT
32
33 public:
34
42 QWidget *parent SIP_TRANSFERTHIS = nullptr,
45
48
50 QgsAuthCertUtils::CertTrustPolicy trustPolicyForIndex( int indx );
51
52 public slots:
54 void setTrustPolicy( QgsAuthCertUtils::CertTrustPolicy policy );
55
57 void setDefaultTrustPolicy( QgsAuthCertUtils::CertTrustPolicy defaultpolicy );
58
59 private slots:
60 void highlightCurrentIndex( int indx );
61
62 private:
63 const QString defaultTrustText(
65};
66
67#endif // QGSAUTHCERTTRUSTPOLICYCOMBOBOX_H
Widget for editing the trust policy associated with a Certificate (Intermediate) Authority.
CertTrustPolicy
Type of certificate trust policy.
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:53