Enigma 3.2.2
A Simple, Reliable and Efficient Encryption Tool
Loading...
Searching...
No Matches
Notification Class Reference

#include <Notification.hpp>

Public Types

enum class  Icon : std::uint8_t { Info = 0 , Warning , Error }
 

Public Member Functions

 Notification (const std::string &title, const std::string &message, Icon icon=Icon::Info)
 
 ~Notification () noexcept=default
 
void Show () const
 

Static Public Attributes

static constexpr std::string_view Icon2Str [3]
 

Detailed Description

System Notification

Definition at line 11 of file Notification.hpp.

Member Enumeration Documentation

◆ Icon

enum class Notification::Icon : std::uint8_t
strong

Notification Icon type

Enumerator
Info 
Warning 
Error 

Definition at line 16 of file Notification.hpp.

Constructor & Destructor Documentation

◆ Notification()

Notification::Notification ( const std::string &  title,
const std::string &  message,
Icon  icon = Icon::Info 
)

Constructor

Parameters
titletitle of the notification
messagedescription of the notification
iconIcon type of the notification

◆ ~Notification()

Notification::~Notification ( )
defaultnoexcept

Member Function Documentation

◆ Show()

void Notification::Show ( ) const

Spawns System Notification

Member Data Documentation

◆ Icon2Str

constexpr std::string_view Notification::Icon2Str[3]
staticconstexpr
Initial value:
= {
"info",
"warning",
"error"
}

Definition at line 21 of file Notification.hpp.


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