#pragma once #include #include #include #include #include #include #include "dao/GeneralLogDAO.h" class FileLogWindow final : public QDialog { Q_OBJECT public: explicit FileLogWindow(QWidget *parent = nullptr); private: QTableWidget *m_table; QLabel *m_screenshotLabel; QLabel *m_pageLabel; QPushButton *m_prevBtn; QPushButton *m_nextBtn; QPushButton *m_sendBtn; QCheckBox *m_showAllCheck; int m_page = 0; int m_pageSize = 20; int m_totalPages = 1; QList m_entries; QStringList currentLevelFilter() const; void loadPage(); void updatePagination(); void showScreenshot(int row); void sendLogToTelegram(); };