MCPcopy Create free account
hub / github.com/98teg/NativeDialogs / send

Method send

src/native_notification.cpp:34–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void NativeNotification::send() {
35 pfd::icon pfd_icon;
36
37 switch (icon) {
38 case ICON_INFO:
39 pfd_icon = pfd::icon::info;
40 break;
41 case ICON_WARNING:
42 pfd_icon = pfd::icon::warning;
43 break;
44 case ICON_ERROR:
45 pfd_icon = pfd::icon::error;
46 break;
47 }
48
49 pfd::notify(
50 String(TranslationServer::get_singleton()->translate(title)).utf8().get_data(),
51 String(TranslationServer::get_singleton()->translate(text)).utf8().get_data(),
52 pfd_icon);
53}
54
55void NativeNotification::set_title(const String &p_title) {
56 title = p_title;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected