LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
ui::anonymous_namespace{MainWindowPresenter.cpp}::ParsingStateGuard Class Reference
Collaboration diagram for ui::anonymous_namespace{MainWindowPresenter.cpp}::ParsingStateGuard:
Collaboration graph

Public Member Functions

 ParsingStateGuard (bool &isParsing, bool &progressConfigured, IMainWindowView &view)
 
 ParsingStateGuard (const ParsingStateGuard &)=delete
 
ParsingStateGuard & operator= (const ParsingStateGuard &)=delete
 
 ~ParsingStateGuard ()
 

Private Attributes

bool & m_isParsing
 
bool & m_progressConfigured
 
IMainWindowView & m_view
 
int m_uncaught
 

Detailed Description

Resets the presenter's parsing flags when a load leaves scope, including when an exception escapes, so IsParsing() can never stay stuck at true (which would reject every later load). On an exception it also restores the progress bar and search controls.

Constructor & Destructor Documentation

◆ ParsingStateGuard() [1/2]

ui::anonymous_namespace{MainWindowPresenter.cpp}::ParsingStateGuard::ParsingStateGuard ( bool &  isParsing,
bool &  progressConfigured,
IMainWindowView &  view 
)
inline

◆ ParsingStateGuard() [2/2]

ui::anonymous_namespace{MainWindowPresenter.cpp}::ParsingStateGuard::ParsingStateGuard ( const ParsingStateGuard &  )
delete

◆ ~ParsingStateGuard()

ui::anonymous_namespace{MainWindowPresenter.cpp}::ParsingStateGuard::~ParsingStateGuard ( )
inline

Member Function Documentation

◆ operator=()

ParsingStateGuard & ui::anonymous_namespace{MainWindowPresenter.cpp}::ParsingStateGuard::operator= ( const ParsingStateGuard &  )
delete

Member Data Documentation

◆ m_isParsing

bool& ui::anonymous_namespace{MainWindowPresenter.cpp}::ParsingStateGuard::m_isParsing
private

◆ m_progressConfigured

bool& ui::anonymous_namespace{MainWindowPresenter.cpp}::ParsingStateGuard::m_progressConfigured
private

◆ m_uncaught

int ui::anonymous_namespace{MainWindowPresenter.cpp}::ParsingStateGuard::m_uncaught
private

◆ m_view

IMainWindowView& ui::anonymous_namespace{MainWindowPresenter.cpp}::ParsingStateGuard::m_view
private

The documentation for this class was generated from the following file: