Cluedo Solver v1.0
Cluedo game solver making deductions.
Loading...
Searching...
No Matches
ErrorModal.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
7
8namespace Cluedo {
9
10namespace UI {
11
14public:
16 explicit ErrorModal() = default;
17
19 void show();
21 void set_error_message(std::string_view error_message) { m_error_message = error_message; }
22
23private:
24 std::string m_error_message;
25};
26
27}
28
29}
void set_error_message(std::string_view error_message)
Sets the error message to be shown by the modal.
Definition ErrorModal.hpp:21
ErrorModal()=default
Construct the modal.
void show()
Shows the modal.
Definition ErrorModal.cpp:12