1
0
forked from BRT/arc
arc/database/dao/EventDAO.h
slava 4fe6e399bc Refactor scripts and add enhanced error handling
Revised scripts for payments and history retrieval, introducing improved error management with screenshots for debugging. Added a new LoginAndCheckAccountsScript for account validation, streamlined multi-threading, and updated application logic for clarity and reliability.
2025-05-30 22:16:25 +07:00

19 lines
437 B
C++

#pragma once
#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);
};