- Implement `toggleMaterialStatus` in `AccountSettingsWindow` for UI control and threading integration. - Enhance `MaterialDAO` with numeric validation for `lastNumbers` field to ensure data integrity. - Update `PayByCardScript` and `PayByPhoneScript` to handle PIN entry if required after payment confirmation. - Introduce dynamic UI adjustments for material toggling, including a new toggle button and layout refinements. - Add documentation for task logic in `ozon_tasks.md` and `black_tasks.md`. - Switch default currency in `GetCardInfoScript` (Black app) from USD to ARS.
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
#pragma once
|
|
#include <QLabel>
|
|
#include <QTableWidget>
|
|
#include <QWidget>
|
|
|
|
#include "db/MaterialInfo.h"
|
|
#include "db/BankProfileInfo.h"
|
|
|
|
class AccountSettingsWindow final : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AccountSettingsWindow(QWidget *parent, QString deviceId, QString deviceName, const BankProfileInfo &app);
|
|
|
|
private:
|
|
QString m_deviceId;
|
|
QString m_deviceName;
|
|
BankProfileInfo m_applicationInfo;
|
|
|
|
QLabel *m_statusLabel;
|
|
QLabel *m_commentLabel;
|
|
QLabel *m_profileLabel;
|
|
|
|
void startCheckPinCode(const QString &appCode);
|
|
|
|
void startGetProfileInfo(const QString &appCode);
|
|
|
|
void startGetCardInfo(const QString &appCode);
|
|
|
|
void startGetLastTransactions(const QString &appCode, int maxCount = 0);
|
|
|
|
void reloadContent(QTableWidget *tableWidget);
|
|
|
|
void sendAppStatus(const QString &deviceId, const QString &code, const QString &status);
|
|
|
|
void toggleMaterialStatus(const MaterialInfo &account, QTableWidget *tableWidget);
|
|
|
|
void updateAccountData(const MaterialInfo &account);
|
|
};
|