QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
src
gui
auth
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
:
37
explicit
QgsAuthCertTrustPolicyComboBox
(
38
QWidget
*parent =
nullptr
,
39
QgsAuthCertUtils::CertTrustPolicy
policy =
QgsAuthCertUtils::DefaultTrust
,
40
QgsAuthCertUtils::CertTrustPolicy
defaultpolicy =
QgsAuthCertUtils::DefaultTrust
);
41
~
QgsAuthCertTrustPolicyComboBox
();
42
44
QgsAuthCertUtils::CertTrustPolicy
trustPolicy();
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(
61
QgsAuthCertUtils::CertTrustPolicy
defaultpolicy =
QgsAuthCertUtils::DefaultTrust
);
62
};
63
64
#endif // QGSAUTHCERTTRUSTPOLICYCOMBOBOX_H
QWidget
qgsauthcertutils.h
QgsAuthCertTrustPolicyComboBox
Widget for editing the trust policy associated with a Certificate (Intermediate) Authority.
Definition:
qgsauthcerttrustpolicycombobox.h:26
QString
QgsAuthCertUtils::CertTrustPolicy
CertTrustPolicy
Type of certificate trust policy.
Definition:
qgsauthcertutils.h:56
QgsAuthCertUtils::DefaultTrust
Definition:
qgsauthcertutils.h:58
QComboBox
Generated on Sun Jun 24 2018 11:42:48 for QGIS API Documentation by
1.8.13