LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
ui::NoopErrorPresenter Class Reference

Logger-backed fallback when no concrete UI presenter is registered. More...

#include <NoopErrorPresenter.hpp>

Inheritance diagram for ui::NoopErrorPresenter:
Inheritance graph
Collaboration diagram for ui::NoopErrorPresenter:
Collaboration graph

Public Member Functions

bool CanShowDialogs () const noexcept override
 
void ShowError (std::string_view message) override
 Display an error message to the user.
 

Private Attributes

std::mutex m_mutex
 
bool m_loggedOnce = false
 

Detailed Description

Logger-backed fallback when no concrete UI presenter is registered.

Member Function Documentation

◆ CanShowDialogs()

bool ui::NoopErrorPresenter::CanShowDialogs ( ) const
inlineoverridevirtualnoexcept
Returns
true if the underlying UI backend can currently display dialogs.

Implements ui::IErrorPresenter.

◆ ShowError()

void ui::NoopErrorPresenter::ShowError ( std::string_view  message)
inlineoverridevirtual

Display an error message to the user.

Implements ui::IErrorPresenter.

Here is the call graph for this function:

Member Data Documentation

◆ m_loggedOnce

bool ui::NoopErrorPresenter::m_loggedOnce = false
private

◆ m_mutex

std::mutex ui::NoopErrorPresenter::m_mutex
mutableprivate

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