QGIS API Documentation 3.43.0-Master (87898417f79)
Loading...
Searching...
No Matches
qgsauthmasterpassresetdialog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsauthmasterpassresetdialog.h
3 ---------------------
4 begin : September 10, 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 QGSAUTHMASTERPASSWORDRESETDIALOG_H
18#define QGSAUTHMASTERPASSWORDRESETDIALOG_H
19
20#include <QDialog>
21
22#include "ui_qgsauthmasterpassresetdialog.h"
23#include "qgis_gui.h"
24
25#define SIP_NO_FILE
26
27class QLabel;
28class QVBoxLayout;
29class QgsMessageBar;
30
31
38class GUI_EXPORT QgsMasterPasswordResetDialog : public QDialog, private Ui::QgsMasterPasswordResetDialog
39{
40 Q_OBJECT
41
42 public:
43 explicit QgsMasterPasswordResetDialog( QWidget *parent = nullptr );
44
48 QgsPasswordLineEdit *oldPasswordLineEdit();
49
50 bool requestMasterPasswordReset( QString *newpass, QString *oldpass, bool *keepbackup );
51
52 private slots:
53 void validatePasswords();
54
55 private:
56 QVBoxLayout *mAuthNotifyLayout = nullptr;
57 QLabel *mAuthNotify = nullptr;
58};
59
60#endif // QGSAUTHMASTERPASSWORDRESETDIALOG_H
Dialog to verify current master password and initiate reset of authentication database with a new pas...
A bar for displaying non-blocking messages to the user.
QLineEdit subclass with built in support for showing/hiding entered password.