![]() |
Banking_System_Client
1.0.0
Qt-based banking app for user/admin account management, transactions, secure server communication via PostgreSQL/Supabase.
|
The UserWidget class provides a user interface for managing user accounts, performing transactions, and modifying settings within the banking application. More...
#include <UserWidget.h>
Public Slots | |
void | onTransactionsFetched (const QList< QMap< QString, QString >> &transactions) |
Slot to handle successful fetch of transactions. More... | |
void | onBalanceFetched (const QString balance) |
Slot to handle successful fetch of balance. More... | |
void | onSuccessfullRequest (QString message) |
Slot to handle successful request. More... | |
void | onFailedRequest (QString message) |
Slot to handle failed request. More... | |
Signals | |
void | logout () |
Emitted when the user requests to log out. | |
Public Member Functions | |
UserWidget (QString email, QString first_name, QString account_number, QString balance, QWidget *parent=nullptr) | |
Constructs a UserWidget instance. More... | |
The UserWidget class provides a user interface for managing user accounts, performing transactions, and modifying settings within the banking application.
This class represents the main user interface component that allows users to interact with their account information, view transaction history, perform transfers, and update personal settings. It includes several tabs for different functionalities such as Home, Transfer, and Settings.
The UserWidget class manages the display of user data, handles user interactions, and communicates with the backend server through the RequestManager. It provides features for viewing transaction history, performing money transfers, updating account details, and logging out of the application.
The widget consists of:
UserWidget::UserWidget | ( | QString | email, |
QString | first_name, | ||
QString | account_number, | ||
QString | balance, | ||
QWidget * | parent = nullptr |
||
) |
Constructs a UserWidget instance.
The user's email address. | |
first_name | The user's first name. |
account_number | The user's account number. |
balance | The user's current balance. |
parent | The parent widget (optional). |
|
slot |
Slot to handle successful fetch of balance.
balance | The balance fetched from the server. |
Referenced by UIManager::closeUserWidget(), UIManager::createUserWidget(), and UserWidget().
|
slot |
Slot to handle failed request.
message | The failure message to display. |
Referenced by UIManager::onFailedNotification().
|
slot |
Slot to handle successful request.
message | The success message to display. |
Referenced by onBalanceFetched(), UIManager::onSuccessfullNotification(), and onTransactionsFetched().
|
slot |
Slot to handle successful fetch of transactions.
transactions | The list of transactions fetched from the server. |
Referenced by UIManager::closeUserWidget(), and UIManager::createUserWidget().