|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Helper class encapsulating file operations for MainWindow. More...
#include <MainWindowFileOpsHelper.hpp>

Public Member Functions | |
| MainWindowFileOpsHelper (ui::qt::MainWindow *mainWindow) | |
| ~MainWindowFileOpsHelper ()=default | |
| void | OnOpenFileRequested () |
| void | OnLoadDbcRequested () |
| void | OnLoadEvlogTemplatesRequested () |
| void | OnSaveSession () |
| void | OnOpenSession () |
| void | AutoSwitchViewForFile (const QString &filePath) |
| void | HandleDroppedFile (const QString &path) |
| void | LoadRecentFiles () |
| void | SaveRecentFiles () |
| void | AddToRecentFiles (const QString &filePath) |
| void | RefreshRecentFilesMenu () |
| void | OnRecentFileTriggered (const QString &filePath) |
| const std::vector< QString > & | GetRecentFiles () const |
| QString | GetLastDirectory () const |
| void | SetLastDirectory (const QString &dir) |
Private Member Functions | |
| void | LoadFileInternal (const std::filesystem::path &path) |
| QString | GetSessionFilePath () const |
| bool | ValidateSessionFile (const QString &path) const |
Private Attributes | |
| ui::qt::MainWindow * | m_mainWindow |
| std::vector< QString > | m_recentFiles |
| QString | m_lastDirectory |
Static Private Attributes | |
| static constexpr int | MAX_RECENT_FILES = 10 |
Helper class encapsulating file operations for MainWindow.
Delegates file I/O operations from MainWindow, reducing its complexity. Manages:
Maintains state for file operations and reports back to MainWindow via callbacks and signal-like patterns.
Thread-safe: File operations happen on worker threads; main thread is notified via Qt signals connected in MainWindow.
|
explicit |

|
default |
| void ui::qt::MainWindowFileOpsHelper::AddToRecentFiles | ( | const QString & | filePath | ) |


| void ui::qt::MainWindowFileOpsHelper::AutoSwitchViewForFile | ( | const QString & | filePath | ) |

|
inline |
|
inline |
|
private |

| void ui::qt::MainWindowFileOpsHelper::HandleDroppedFile | ( | const QString & | path | ) |

|
private |
| void ui::qt::MainWindowFileOpsHelper::LoadRecentFiles | ( | ) |

| void ui::qt::MainWindowFileOpsHelper::OnLoadDbcRequested | ( | ) |

| void ui::qt::MainWindowFileOpsHelper::OnLoadEvlogTemplatesRequested | ( | ) |

| void ui::qt::MainWindowFileOpsHelper::OnOpenFileRequested | ( | ) |

| void ui::qt::MainWindowFileOpsHelper::OnOpenSession | ( | ) |

| void ui::qt::MainWindowFileOpsHelper::OnRecentFileTriggered | ( | const QString & | filePath | ) |

| void ui::qt::MainWindowFileOpsHelper::OnSaveSession | ( | ) |

| void ui::qt::MainWindowFileOpsHelper::RefreshRecentFilesMenu | ( | ) |


| void ui::qt::MainWindowFileOpsHelper::SaveRecentFiles | ( | ) |


|
inline |
|
private |
|
private |
|
private |
|
private |
|
staticconstexprprivate |