Enigma 3.2.2
A Simple, Reliable and Efficient Encryption Tool
Loading...
Searching...
No Matches
Notification.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef ENIGMA_NOTIFICATION_H
3#define ENIGMA_NOTIFICATION_H
4
5#include <Core/Core.hpp>
6
12public: /* Enums */
16 enum class Icon : std::uint8_t {
17 Info = 0,
18 Warning,
19 Error
20 };
21 static constexpr std::string_view Icon2Str[3] = {
22 "info",
23 "warning",
24 "error"
25 };
26
27public:
33 Notification(const std::string& title, const std::string& message, Icon icon = Icon::Info);
34 ~Notification() noexcept = default;
35
36public: /* Accessors */
40 void Show() const;
41
42private:
43 std::string m_title; /*< Notification title */
44 std::string m_message; /*< Notification message */
45 Icon m_icon; /*< Notification icon (Info, Error or Warning) */
46};
47
49
50#endif // !ENIGMA_NOTIFICATION_H
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
Definition Macros.hpp:13
#define NS_ENIGMA_END
Definition Macros.hpp:14
void Show() const
Notification(const std::string &title, const std::string &message, Icon icon=Icon::Info)
static constexpr std::string_view Icon2Str[3]
~Notification() noexcept=default