MCPcopy Create free account
hub / github.com/KDE/labplot / useWillMessage

Method useWillMessage

src/frontend/dockwidgets/LiveDataDock.cpp:538–547  ·  view source on GitHub ↗

! *\brief called when use will message checkbox's state is changed in the will settings widget, * Sets the mqttUseWill according to state for the m_mqttClient * * \param state the state of the checbox */

Source from the content-addressed store, hash-verified

536 * \param state the state of the checbox
537 */
538void LiveDataDock::useWillMessage(bool use) {
539 if (use) {
540 m_mqttClient->setMQTTWillUse(true);
541 if (m_mqttClient->willUpdateType() == MQTTClient::WillUpdateType::OnClick)
542 ui.bWillUpdateNow->show();
543 } else {
544 m_mqttClient->setMQTTWillUse(false);
545 ui.bWillUpdateNow->hide();
546 }
547}
548
549/*!
550 *\brief called when will message's QoS is changed in the will settings widget

Callers 1

showWillSettingsMethod · 0.95

Calls 3

setMQTTWillUseMethod · 0.80
willUpdateTypeMethod · 0.80
showMethod · 0.80

Tested by

no test coverage detected