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

Function luaNotifyWarning

app/src/DataModel/NotificationCenter.cpp:521–530  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

519 * @brief Lua C closure that posts a Warning-level notification.
520 */
521static int luaNotifyWarning(lua_State* L)
522{
523 QString channel;
524 QString title;
525 QString subtitle;
526 resolveLuaArgs(L, 1, channel, title, subtitle);
527
528 DataModel::NotificationCenter::instance().postWarning(channel, title, subtitle);
529 return 0;
530}
531
532/**
533 * @brief Lua C closure that posts a Critical-level notification.

Callers

nothing calls this directly

Calls 2

resolveLuaArgsFunction · 0.85
postWarningMethod · 0.80

Tested by

no test coverage detected