Banking_System_Client  1.0.0
Qt-based banking app for user/admin account management, transactions, secure server communication via PostgreSQL/Supabase.
UpdatePasswordDialog.h
Go to the documentation of this file.
1 
7 #ifndef UPDATEPASSWORDDIALOG_H
8 #define UPDATEPASSWORDDIALOG_H
9 
10 #include "BaseDialog.h"
11 #include "qtmaterialradiobutton.h"
12 
19 {
20  Q_OBJECT
21 
22 public:
27  UpdatePasswordDialog(QWidget* parent = nullptr);
28 
33  QVariantMap getData() const override;
34 
35 protected:
39  void setupUI() override;
40 
41 private slots:
46  void onShowHidePasswordClicked(bool checked);
47 
48 private:
49  QtMaterialTextField* emailField;
50  QtMaterialTextField* currentPasswordField;
51  QtMaterialTextField* newPasswordField;
52  QtMaterialTextField* repeatedNewPasswordField;
53  QtMaterialRadioButton* showHidePasswordRadioButton;
54  bool isPasswordVisible;
55 };
56 
57 #endif // UPDATEPASSWORDDIALOG_H
Header file for the BaseDialog class.
The BaseDialog class provides a base class for creating dialogs with validation support.
Definition: BaseDialog.h:26
The UpdatePasswordDialog class provides a dialog for updating user passwords with input validation.
Definition: UpdatePasswordDialog.h:19
QVariantMap getData() const override
Retrieves the data entered in the dialog.
Definition: UpdatePasswordDialog.cpp:11
UpdatePasswordDialog(QWidget *parent=nullptr)
Constructor for UpdatePasswordDialog.
Definition: UpdatePasswordDialog.cpp:5
void setupUI() override
Sets up the user interface.
Definition: UpdatePasswordDialog.cpp:21