QGIS API Documentation 4.1.0-Master (5bf3c20f3c9)
Loading...
Searching...
No Matches
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 "qgis_gui.h"
21#include "qgis_sip.h"
22#include "qgsauthcertutils.h"
23
24#include <QComboBox>
25
30class GUI_EXPORT QgsAuthCertTrustPolicyComboBox : public QComboBox
31{
32 Q_OBJECT
33
34 public:
43 );
44
47
50
51 public slots:
54
57
58 private slots:
59 void highlightCurrentIndex( int indx );
60
61 private:
62 const QString defaultTrustText( QgsAuthCertUtils::CertTrustPolicy defaultpolicy = QgsAuthCertUtils::DefaultTrust );
63};
64
65#endif // QGSAUTHCERTTRUSTPOLICYCOMBOBOX_H
QgsAuthCertUtils::CertTrustPolicy trustPolicyForIndex(int indx)
Gets trust policy for a given index of combobox.
QgsAuthCertUtils::CertTrustPolicy trustPolicy()
Gets currently set trust policy.
void setDefaultTrustPolicy(QgsAuthCertUtils::CertTrustPolicy defaultpolicy)
Sets default trust policy.
void setTrustPolicy(QgsAuthCertUtils::CertTrustPolicy policy)
Sets current trust policy.
QgsAuthCertTrustPolicyComboBox(QWidget *parent=nullptr, QgsAuthCertUtils::CertTrustPolicy policy=QgsAuthCertUtils::DefaultTrust, QgsAuthCertUtils::CertTrustPolicy defaultpolicy=QgsAuthCertUtils::DefaultTrust)
Construct a combo box for defining certificate trust policy.
CertTrustPolicy
Type of certificate trust policy.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:52