1
0
forked from BRT/arc
arc/database/dao/AccountDAO.h
slava c1b34ce7d7 Implement AccountWindow and TransactionWindow for account management
Added AccountWindow to display account tables linked to devices and TransactionWindow for viewing account details. Enhanced DeviceDAO and AccountDAO to support additional filtering and data retrieval functionalities.
2025-04-22 12:22:56 +07:00

14 lines
372 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);
};