QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 "qgsauthcertutils.h"
22 
26 class GUI_EXPORT QgsAuthCertTrustPolicyComboBox : public QComboBox
27 {
28  Q_OBJECT
29 
30  public:
38  QWidget *parent = nullptr,
42 
45 
47  QgsAuthCertUtils::CertTrustPolicy trustPolicyForIndex( int indx );
48 
49  public slots:
51  void setTrustPolicy( QgsAuthCertUtils::CertTrustPolicy policy );
52 
54  void setDefaultTrustPolicy( QgsAuthCertUtils::CertTrustPolicy defaultpolicy );
55 
56  private slots:
57  void highlightCurrentIndex( int indx );
58 
59  private:
60  const QString defaultTrustText(
62 };
63 
64 #endif // QGSAUTHCERTTRUSTPOLICYCOMBOBOX_H
Widget for editing the trust policy associated with a Certificate (Intermediate) Authority.
CertTrustPolicy
Type of certificate trust policy.