Refactored code to improve account and transaction data parsing and management, introducing support for additional fields like card numbers and account statuses. Added new utilities for database connections, device-specific screenshot handling, and XML parsing for enriched account and transaction details.
16 lines
477 B
C++
16 lines
477 B
C++
#pragma once
|
|
#include "db/AccountInfo.h"
|
|
|
|
class AccountDAO {
|
|
public:
|
|
[[nodiscard]] static bool upsertAccount(const AccountInfo &info);
|
|
|
|
[[nodiscard]] static bool deleteAccount(int id);
|
|
|
|
[[nodiscard]] static QList<AccountInfo> getAccounts(const QString &deviceId, const QString &appName);
|
|
|
|
[[nodiscard]] static AccountInfo getAccountById(int accountId);
|
|
|
|
[[nodiscard]] static AccountInfo findAppAccount(const QString &appName, const QString &cardNumber);
|
|
};
|