1
0
forked from BRT/arc
arc/database/dao/GeneralLogDAO.h
trnsmkot 73c62495a2 Remove CommonBirbankScript and its derived classes from the codebase
Deleted `CommonBirbankScript` and its associated derived classes (`GetLastDaysHistoryBirbankScript`, `LoginAndCheckAccountsBirbankScript`, `PayByCardBirbankScript`). Removed dependencies on these scripts, including XML parsing, account handling, and transaction workflows related to the Birbank app.
2026-03-21 17:41:05 +07:00

23 lines
609 B
C++

#pragma once
#include <QList>
#include <QString>
#include <QStringList>
#include <QDateTime>
struct GeneralLogEntry {
int id = -1;
QString level;
QString source;
QString message;
QDateTime timestamp;
};
class GeneralLogDAO {
public:
static bool insert(const QString &level, const QString &source, const QString &message);
[[nodiscard]] static QList<GeneralLogEntry> getLogs(int page, int pageSize,
const QStringList &levels = {});
[[nodiscard]] static int getTotalCount(const QStringList &levels = {});
};