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.
23 lines
609 B
C++
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 = {});
|
|
};
|