QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
auth
qgsauthidentitieseditor.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsauthidentitieseditor.h
3
---------------------
4
begin : April 26, 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 QGSAUTHIDENTITIESEDITOR_H
18
#define QGSAUTHIDENTITIESEDITOR_H
19
20
#include "ui_qgsauthidentitieseditor.h"
21
22
#include "qgis_gui.h"
23
#include "
qgis_sip.h
"
24
#include "
qgsauthmanager.h
"
25
26
#include <QSslCertificate>
27
#include <QWidget>
28
29
class
QgsMessageBar
;
30
35
class
GUI_EXPORT
QgsAuthIdentitiesEditor
:
public
QWidget,
private
Ui::QgsAuthIdentitiesEditor
36
{
37
Q_OBJECT
38
39
public
:
44
explicit
QgsAuthIdentitiesEditor
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
45
46
private
slots:
47
void
populateIdentitiesView();
48
49
void
refreshIdentitiesView();
50
51
void
showCertInfo( QTreeWidgetItem *item );
52
54
void
selectionChanged(
const
QItemSelection &selected,
const
QItemSelection &deselected );
55
57
void
checkSelection();
58
59
void
handleDoubleClick( QTreeWidgetItem *item,
int
col );
60
61
void
btnAddIdentity_clicked();
62
63
void
btnRemoveIdentity_clicked();
64
65
void
btnInfoIdentity_clicked();
66
67
void
btnGroupByOrg_toggled(
bool
checked );
68
70
void
authMessageLog(
const
QString &message,
const
QString &authtag,
Qgis::MessageLevel
level );
71
72
protected
:
74
void
showEvent
( QShowEvent *e )
override
;
75
76
private
:
77
enum
IdentityType
78
{
79
Section = 1000,
80
OrgName = 1001,
81
CertIdentity = 1002,
82
};
83
84
void
setupIdentitiesTree();
85
86
void
populateIdentitiesSection( QTreeWidgetItem *item,
const
QList<QSslCertificate> &certs, QgsAuthIdentitiesEditor::IdentityType identype );
87
88
void
appendIdentitiesToGroup(
const
QList<QSslCertificate> &certs, QgsAuthIdentitiesEditor::IdentityType identype, QTreeWidgetItem *parent =
nullptr
);
89
90
void
appendIdentitiesToItem(
const
QList<QSslCertificate> &certs, QgsAuthIdentitiesEditor::IdentityType identype, QTreeWidgetItem *parent =
nullptr
);
91
92
QgsMessageBar
*messageBar();
93
int
messageTimeout();
94
95
bool
mDisabled =
false
;
96
QVBoxLayout *mAuthNotifyLayout =
nullptr
;
97
QLabel *mAuthNotify =
nullptr
;
98
99
QTreeWidgetItem *mRootCertIdentItem =
nullptr
;
100
};
101
102
#endif
// QGSAUTHIDENTITIESEDITOR_H
Qgis::MessageLevel
MessageLevel
Level for messages This will be used both for message log and message bar in application.
Definition
qgis.h:160
QgsAuthIdentitiesEditor::showEvent
void showEvent(QShowEvent *e) override
Overridden show event of base widget.
Definition
qgsauthidentitieseditor.cpp:358
QgsAuthIdentitiesEditor::QgsAuthIdentitiesEditor
QgsAuthIdentitiesEditor(QWidget *parent=nullptr)
Widget for editing authentication configurations directly in database.
Definition
qgsauthidentitieseditor.cpp:39
QgsMessageBar
A bar for displaying non-blocking messages to the user.
Definition
qgsmessagebar.h:61
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
qgsauthmanager.h
Generated on
for QGIS API Documentation by
1.17.0