| 32 | } |
| 33 | |
| 34 | void 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 | |
| 55 | void NativeNotification::set_title(const String &p_title) { |
| 56 | title = p_title; |
nothing calls this directly
no outgoing calls
no test coverage detected