![]() |
Banking_System_Client
1.0.0
Qt-based banking app for user/admin account management, transactions, secure server communication via PostgreSQL/Supabase.
|
Provides an interface for administrative tasks within the banking system. More...
#include <AdminWidget.h>
Public Slots | |
void | onDatabaseContentUpdated (const QList< QMap< QString, QString >> &data) |
Slot for handling updates to the database content. More... | |
void | onTransactionsFetched (const QList< QMap< QString, QString >> &transactions) |
Slot for handling fetched transaction history. More... | |
void | onSuccessfullRequest (QString message) |
Slot for handling successful request messages. More... | |
void | onFailedRequest (QString message) |
Slot for handling failed request messages. More... | |
Signals | |
void | logout () |
Signal emitted when the admin logs out. | |
Public Member Functions | |
AdminWidget (QString email, QString first_name, QWidget *parent=nullptr) | |
Constructs an AdminWidget object. More... | |
Provides an interface for administrative tasks within the banking system.
The AdminWidget class allows administrators to manage user accounts, view transaction history, and update settings. It includes tabs for managing the database, viewing transactions, and updating settings, as well as floating action buttons for user management tasks. The widget provides features for viewing database content, managing user accounts, and logging out of the application. The AdminWidget communicates with the backend server through the RequestManager to perform various operations.
The widget consists of:
AdminWidget::AdminWidget | ( | QString | email, |
QString | first_name, | ||
QWidget * | parent = nullptr |
||
) |
Constructs an AdminWidget object.
The email of the admin. | |
first_name | The first name of the admin. |
parent | The parent widget (default is nullptr). |
|
slot |
Slot for handling updates to the database content.
data | The updated database content. |
Referenced by UIManager::closeAdminWidget(), and UIManager::createAdminWidget().
|
slot |
Slot for handling failed request messages.
message | The failure message. |
Referenced by UIManager::onFailedNotification().
|
slot |
Slot for handling successful request messages.
message | The success message. |
Referenced by onDatabaseContentUpdated(), UIManager::onSuccessfullNotification(), and onTransactionsFetched().
|
slot |
Slot for handling fetched transaction history.
transactions | The fetched transactions. |
Referenced by UIManager::closeAdminWidget(), and UIManager::createAdminWidget().