MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaNotifyCritical

Function luaNotifyCritical

app/src/DataModel/NotificationCenter.cpp:535–544  ·  view source on GitHub ↗

* @brief Lua C closure that posts a Critical-level notification. */

Source from the content-addressed store, hash-verified

533 * @brief Lua C closure that posts a Critical-level notification.
534 */
535static int luaNotifyCritical(lua_State* L)
536{
537 QString channel;
538 QString title;
539 QString subtitle;
540 resolveLuaArgs(L, 1, channel, title, subtitle);
541
542 DataModel::NotificationCenter::instance().postCritical(channel, title, subtitle);
543 return 0;
544}
545
546/**
547 * @brief Lua C closure that emits a companion "resolved" Info event.

Callers

nothing calls this directly

Calls 2

resolveLuaArgsFunction · 0.85
postCriticalMethod · 0.80

Tested by

no test coverage detected