DeskUp 0.3
Loading...
Searching...
No Matches
DeskUp::UI::ErrorAdapter Class Reference

Utility class to bridge DeskUp's error system with the Qt graphical interface. More...

#include <desk_up_error_gui_converter.h>

Static Public Member Functions

static int showError (const DeskUp::Error &err)
 Displays a Qt dialog box for a given error.
static QString getUserMessage (const DeskUp::Error &err)
static std::pair< QString, QMessageBox::Icon > mapLevel (Level lvl)

Detailed Description

Utility class to bridge DeskUp's error system with the Qt graphical interface.

Converts DeskUp::Error instances into localized and user-friendly messages displayed via QMessageBox.

  • Translates error levels into dialog icons and titles
  • Translates error types into human-readable messages
  • Displays the result via QMessageBox
See also
DeskUp::Error
Level
ErrType
Version
0.3.0
Date
2025

Member Function Documentation

◆ showError()

int DeskUp::UI::ErrorAdapter::showError ( const DeskUp::Error & err)
static

Displays a Qt dialog box for a given error.

Parameters
errA DeskUp::Error instance to display.
Returns
Integer result code from QMessageBox::exec().
Here is the call graph for this function:

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