#pragma once #include #include #include "db/AppLogEntry.h" class AppLogDAO { public: [[nodiscard]] static bool insert(const AppLogEntry &entry); // Возвращает записи без BLOB-скриншота (лёгкая загрузка для таблицы) [[nodiscard]] static QList getLogs(int page, int pageSize); [[nodiscard]] static int getTotalCount(); // Загружает скриншот отдельно по id (по клику в UI) [[nodiscard]] static QByteArray getScreenshot(int id); // Все записи со скриншотами (для экспорта) [[nodiscard]] static QList getLogsWithScreenshots(int limit = 100); };