/usr/include/qgis/qgsautheditorwidgets.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 105 106 107 | /***************************************************************************
qgsautheditorwidgets.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 QGSAUTHEDITORWIDGETS_H
#define QGSAUTHEDITORWIDGETS_H
#include <QWidget>
#include "ui_qgsautheditorwidgets.h"
#include "ui_qgsauthmethodplugins.h"
/** \ingroup gui
* Dialog for viewing available authentication method plugins
*/
class GUI_EXPORT QgsAuthMethodPlugins : public QDialog, private Ui::QgsAuthMethodPlugins
{
Q_OBJECT
public:
/**
* Construct a dialog for viewing available authentication method plugins
* @param parent Parent widget
*/
explicit QgsAuthMethodPlugins( QWidget *parent = nullptr );
~QgsAuthMethodPlugins();
private slots:
void populateTable();
private:
void setupTable();
QVBoxLayout *mAuthNotifyLayout;
QLabel *mAuthNotify;
};
/** \ingroup gui
* Wrapper widget for available authentication editors
*/
class GUI_EXPORT QgsAuthEditorWidgets : public QWidget, private Ui::QgsAuthEditors
{
Q_OBJECT
public:
/**
* Construct a widget to contain various authentication editors
* @param parent Parent widget
*/
explicit QgsAuthEditorWidgets( QWidget *parent = nullptr );
~QgsAuthEditorWidgets();
private slots:
void on_btnCertManager_clicked();
void on_btnAuthPlugins_clicked();
/** Sets the cached master password (and verifies it if its hash is in authentication database) */
void setMasterPassword();
/** Clear the currently cached master password (not its hash in database) */
void clearCachedMasterPassword();
/** Reset the cached master password, updating its hash in authentication database and reseting all existing configs to use it */
void resetMasterPassword();
/** Clear all cached authentication configs for session */
void clearCachedAuthenticationConfigs();
/** Remove all authentication configs */
void removeAuthenticationConfigs();
/** Completely clear out the authentication database (configs and master password) */
void eraseAuthenticationDatabase();
/** Relay messages to widget's messagebar */
void authMessageOut( const QString& message, const QString& authtag, QgsAuthManager::MessageLevel level );
private:
void setupUtilitiesMenu();
QgsMessageBar * messageBar();
int messageTimeout();
QMenu *mAuthUtilitiesMenu;
QAction *mActionSetMasterPassword;
QAction *mActionClearCachedMasterPassword;
QAction *mActionResetMasterPassword;
QAction *mActionClearCachedAuthConfigs;
QAction *mActionRemoveAuthConfigs;
QAction *mActionEraseAuthDatabase;
};
#endif // QGSAUTHEDITORWIDGETS_H
|