DeskUp 0.3
Loading...
Searching...
No Matches
desk_up_error_gui_converter.h
1
26
27#ifndef DESKUPERRORGUICONVERTER_H
28#define DESKUPERRORGUICONVERTER_H
29
30#include <QMessageBox>
31#include <QString>
32#include "desk_up_error.h"
33
34namespace DeskUp::UI {
35
55 public:
61 static int showError(const DeskUp::Error& err);
62
63 static QString getUserMessage(const DeskUp::Error& err);
64 static std::pair<QString, QMessageBox::Icon> mapLevel(Level lvl);
65
66 };
67}
68
69#endif
Centralized representation of a DeskUp runtime error.
Definition desk_up_error.h:139
Utility class to bridge DeskUp's error system with the Qt graphical interface.
Definition desk_up_error_gui_converter.h:54
static int showError(const DeskUp::Error &err)
Displays a Qt dialog box for a given error.
Definition desk_up_error_gui_converter.cc:5
Error management system for DeskUp (centralized error representation and conversion utilities).
Level
Represents the severity of an error.
Definition desk_up_error.h:65