/usr/include/qgis/qgsauthidentitieseditor.h is in libqgis-dev 2.18.17+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | /***************************************************************************
qgsauthidentitieseditor.h
---------------------
begin : April 26, 2015
copyright : (C) 2015 by Boundless Spatial, Inc. USA
author : Larry Shaffer
email : lshaffer at boundlessgeo dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSAUTHIDENTITIESEDITOR_H
#define QGSAUTHIDENTITIESEDITOR_H
#include <QWidget>
#include <QSslCertificate>
#include "ui_qgsauthidentitieseditor.h"
#include "qgsauthmanager.h"
class QgsMessageBar;
/** \ingroup gui
* Widget for viewing and editing authentication identities database
*/
class GUI_EXPORT QgsAuthIdentitiesEditor : public QWidget, private Ui::QgsAuthIdentitiesEditor
{
Q_OBJECT
public:
/**
* Widget for editing authentication configurations directly in database
* @param parent Parent widget
*/
explicit QgsAuthIdentitiesEditor( QWidget *parent = nullptr );
~QgsAuthIdentitiesEditor();
private slots:
void populateIdentitiesView();
void refreshIdentitiesView();
void showCertInfo( QTreeWidgetItem *item );
/** Pass selection change on to UI update */
void selectionChanged( const QItemSelection& selected, const QItemSelection& deselected );
/** Update UI based upon current selection */
void checkSelection();
void handleDoubleClick( QTreeWidgetItem* item, int col );
void on_btnAddIdentity_clicked();
void on_btnRemoveIdentity_clicked();
void on_btnInfoIdentity_clicked();
void on_btnGroupByOrg_toggled( bool checked );
/** Relay messages to widget's messagebar */
void authMessageOut( const QString& message, const QString& authtag, QgsAuthManager::MessageLevel level );
protected:
/** Overridden show event of base widget */
void showEvent( QShowEvent *e ) override;
private:
enum IdentityType
{
Section = 1000,
OrgName = 1001,
CertIdentity = 1002,
};
void setupIdentitiesTree();
void populateIdentitiesSection( QTreeWidgetItem *item, const QList<QSslCertificate>& certs,
QgsAuthIdentitiesEditor::IdentityType identype );
void appendIdentitiesToGroup( const QList<QSslCertificate>& certs,
QgsAuthIdentitiesEditor::IdentityType identype,
QTreeWidgetItem *parent = nullptr );
void appendIdentitiesToItem( const QList<QSslCertificate>& certs,
QgsAuthIdentitiesEditor::IdentityType identype,
QTreeWidgetItem *parent = nullptr );
QgsMessageBar * messageBar();
int messageTimeout();
bool mDisabled;
QVBoxLayout *mAuthNotifyLayout;
QLabel *mAuthNotify;
QTreeWidgetItem *mRootCertIdentItem;
};
#endif // QGSAUTHIDENTITIESEDITOR_H
|