QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 
24 class QLabel;
25 class QVBoxLayout;
26 class QgsMessageBar;
27 
28 
34 class GUI_EXPORT QgsMasterPasswordResetDialog : public QDialog, private Ui::QgsMasterPasswordResetDialog
35 {
36  Q_OBJECT
37 
38  public:
39  explicit QgsMasterPasswordResetDialog( QWidget *parent = nullptr );
41 
42  bool requestMasterPasswordReset( QString *newpass, QString *oldpass, bool *keepbackup );
43 
44  private slots:
45  void on_leMasterPassCurrent_textChanged( const QString& pass );
46  void on_leMasterPassNew_textChanged( const QString& pass );
47 
48  void on_chkPassShowCurrent_stateChanged( int state );
49  void on_chkPassShowNew_stateChanged( int state );
50 
51  private:
52  void validatePasswords();
53 
54  bool mPassCurOk;
55  bool mPassNewOk;
56  QVBoxLayout *mAuthNotifyLayout;
57  QLabel *mAuthNotify;
58 };
59 
60 #endif // QGSAUTHMASTERPASSWORDRESETDIALOG_H
A bar for displaying non-blocking messages to the user.
Definition: qgsmessagebar.h:42
Dialog to verify current master password and initiate reset of authentication database with a new pas...