1
0
forked from BRT/arc
arc/views/log/FileLogWindow.h
trnsmkot 292f8b78cf - Add database migration for screenshot column in general_logs.
- Implement `cleanupOldData` in `DatabaseManager` to remove outdated entries and optimize storage.
- Introduce `unlockScreen` in `AdbUtils` and integrate it into common scripts for screen unlocking.
- Enhance `GeneralLogDAO` to support screenshot storage and retrieval.
- Expand `FileLogWindow` with screenshot viewer and horizontal layout.
- Add device ID migration logic in `BankProfileDAO` and `MaterialDAO`.
- Improve error handling in `EventHandler` by saving and logging screenshots for critical events.
2026-03-31 13:08:02 +07:00

38 lines
801 B
C++

#pragma once
#include <QCheckBox>
#include <QDialog>
#include <QLabel>
#include <QPushButton>
#include <QSplitter>
#include <QTableWidget>
#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<GeneralLogEntry> m_entries;
QStringList currentLevelFilter() const;
void loadPage();
void updatePagination();
void showScreenshot(int row);
void sendLogToTelegram();
};