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.
34 lines
914 B
C++
34 lines
914 B
C++
#pragma once
|
|
|
|
#include <QSet>
|
|
#include <db/EventInfo.h>
|
|
|
|
class EventDAO {
|
|
public:
|
|
[[nodiscard]] static int insertEvent(const EventInfo &event);
|
|
|
|
[[nodiscard]] static bool updateEvent(
|
|
int id,
|
|
const EventStatus &status,
|
|
const QString &comment
|
|
);
|
|
|
|
[[nodiscard]] static QList<EventInfo> getAllEvents(const EventStatus &status);
|
|
|
|
[[nodiscard]] static EventInfo getFirstWaitEventByDeviceId(const QString &key);
|
|
|
|
[[nodiscard]] static bool existsActiveByExternalId(const QString &externalId);
|
|
|
|
[[nodiscard]] static bool updateEventAmount(int id, double amount);
|
|
|
|
[[nodiscard]] static bool markSentToServer(int id);
|
|
|
|
[[nodiscard]] static QList<EventInfo> getEvents(int page, int pageSize);
|
|
|
|
[[nodiscard]] static int getTotalCount();
|
|
|
|
[[nodiscard]] static bool hasPendingEvents();
|
|
|
|
[[nodiscard]] static QSet<QString> getDevicesWithPendingEvents();
|
|
};
|