- Implement `cleanupOldData` in `DatabaseManager` to remove outdated entries and optimize storage. - Introduce `unlockScreen` in `AdbUtils` and integrate it into common scripts for screen unlocking. - Enhance `GeneralLogDAO` to support screenshot storage and retrieval. - Expand `FileLogWindow` with screenshot viewer and horizontal layout. - Add device ID migration logic in `BankProfileDAO` and `MaterialDAO`. - Improve error handling in `EventHandler` by saving and logging screenshots for critical events.
53 lines
1.7 KiB
C++
53 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include "db/BankProfileInfo.h"
|
|
|
|
class BankProfileDAO {
|
|
public:
|
|
[[nodiscard]] static bool upsertApplication(const BankProfileInfo &info);
|
|
|
|
[[nodiscard]] static bool updatePinCode(const QString &appId, const QString &pinCode);
|
|
|
|
[[nodiscard]] static bool update(
|
|
const int &appId,
|
|
const QString &pinCode,
|
|
const QString &comment,
|
|
const QString &status
|
|
);
|
|
|
|
[[nodiscard]] static bool updatePinCodeStatus(
|
|
const int &appId,
|
|
const QString &pinCodeStatus,
|
|
const QString &comment
|
|
);
|
|
|
|
[[nodiscard]] static bool updateComment(int appId, const QString &comment);
|
|
|
|
[[nodiscard]] static bool updateProfileInfo(
|
|
const int &appId,
|
|
const QString &fullName,
|
|
const QString &phone,
|
|
const QString &email = ""
|
|
);
|
|
|
|
[[nodiscard]] static bool updateBankProfileId(int appId, const QString &bankProfileId);
|
|
|
|
[[nodiscard]] static QList<BankProfileInfo> findAllByBankProfileId(const QString &bankProfileId);
|
|
|
|
[[nodiscard]] static bool updateAmount(int appId, double amount);
|
|
|
|
[[nodiscard]] static BankProfileInfo getApplication(const QString &deviceId, const QString &appCode);
|
|
|
|
[[nodiscard]] static QList<BankProfileInfo> getApplicationsByDeviceId(const QString &deviceId);
|
|
|
|
[[nodiscard]] static QList<BankProfileInfo> getAllApplicationsByDeviceId(const QString &deviceId);
|
|
|
|
[[nodiscard]] static bool checkInstalledApps(const QString &deviceId, const QSet<QString> &apps);
|
|
|
|
[[nodiscard]] static bool activateAppsForDevice(const QString &deviceId);
|
|
|
|
[[nodiscard]] static bool deactivateAppsForDevice(const QString &deviceId);
|
|
|
|
[[nodiscard]] static bool migrateDeviceId(const QString &oldDeviceId, const QString &newDeviceId);
|
|
};
|