QGIS API Documentation 3.99.0-Master (752b475928d)
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:
42 QWidget *parent SIP_TRANSFERTHIS = nullptr,
45 );
46
49
52
53 public slots:
56
59
60 private slots:
61 void highlightCurrentIndex( int indx );
62
63 private:
64 const QString defaultTrustText(
66 );
67};
68
69#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:53