Implemented a `maxCount` parameter in `GetLastTransactionsScript` to limit the number of transactions retrieved. Updated `AccountSettingsWindow` to include new transaction limit options in the UI. Enhanced retrieval logic to support either time-based filtering (24 hours) or count-based limits, ensuring flexibility in transaction handling.
38 lines
948 B
C++
38 lines
948 B
C++
#pragma once
|
|
#include <QLabel>
|
|
#include <QTableWidget>
|
|
#include <QWidget>
|
|
|
|
#include "db/AccountInfo.h"
|
|
#include "db/ApplicationInfo.h"
|
|
|
|
class AccountSettingsWindow final : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AccountSettingsWindow(QWidget *parent, QString deviceId, QString deviceName, const ApplicationInfo &app);
|
|
|
|
private:
|
|
QString m_deviceId;
|
|
QString m_deviceName;
|
|
ApplicationInfo 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 updateAccountData(const AccountInfo &account);
|
|
};
|