Banking_System_Client  1.0.0
Qt-based banking app for user/admin account management, transactions, secure server communication via PostgreSQL/Supabase.
UpdatePasswordDialog Class Reference

The UpdatePasswordDialog class provides a dialog for updating user passwords with input validation. More...

#include <UpdatePasswordDialog.h>

Inheritance diagram for UpdatePasswordDialog:
Inheritance graph
Collaboration diagram for UpdatePasswordDialog:
Collaboration graph

Public Member Functions

 UpdatePasswordDialog (QWidget *parent=nullptr)
 Constructor for UpdatePasswordDialog. More...
 
QVariantMap getData () const override
 Retrieves the data entered in the dialog. More...
 
- Public Member Functions inherited from BaseDialog
 BaseDialog (QWidget *parent=nullptr)
 Constructor for BaseDialog. More...
 

Protected Member Functions

void setupUI () override
 Sets up the user interface.
 
- Protected Member Functions inherited from BaseDialog
virtual void connectSignals ()
 Connects signals for the dialog.
 
QtMaterialTextField * createInputField (QVBoxLayout *layout, const QString &labelText, IValidationStrategy *validationStrategy, bool isPassword=false)
 Creates an input field with validation. More...
 
void validateInput (QtMaterialTextField *field)
 Validates the input of a specified field. More...
 
void updateConfirmButtonState ()
 Updates the state of the confirm button based on the validity of the form.
 
void setFieldValidityStyle (QtMaterialTextField *field, QLabel *errorLabel, const QString &errorMessage, bool isValid)
 Sets the validity style of an input field. More...
 

Additional Inherited Members

- Protected Attributes inherited from BaseDialog
QMap< QtMaterialTextField *, IValidationStrategy * > validationStrategies_
 Stores validation strategies for input fields.
 
QMap< QtMaterialTextField *, QLabel * > errorLabels_
 Stores error labels for input fields.
 
QtMaterialFlatButton * confirmButton
 The confirm button.
 
QtMaterialFlatButton * cancelButton
 The cancel button.
 

Detailed Description

The UpdatePasswordDialog class provides a dialog for updating user passwords with input validation.

This class sets up the user interface, connects signals, and handles user input for updating passwords.

Constructor & Destructor Documentation

◆ UpdatePasswordDialog()

UpdatePasswordDialog::UpdatePasswordDialog ( QWidget *  parent = nullptr)

Constructor for UpdatePasswordDialog.

Parameters
parentThe parent widget.
Here is the call graph for this function:

Member Function Documentation

◆ getData()

QVariantMap UpdatePasswordDialog::getData ( ) const
overridevirtual

Retrieves the data entered in the dialog.

Returns
A QVariantMap containing the password update data.

Implements BaseDialog.


The documentation for this class was generated from the following files: