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

Method mqttConnectTimeout

src/frontend/datasources/ImportFileWidget.cpp:2905–2910  ·  view source on GitHub ↗

! *\brief called when m_connectTimeoutTimer ticks, * meaning that the client couldn't connect to the broker in 5 seconds * disconnects the client, stops the timer, and warns the user */

Source from the content-addressed store, hash-verified

2903 * disconnects the client, stops the timer, and warns the user
2904 */
2905void ImportFileWidget::mqttConnectTimeout() {
2906 m_client->disconnectFromHost();
2907 m_connectTimeoutTimer->stop();
2908 Q_EMIT error(i18n("Connecting to '%1:%2' timed out.", m_client->hostname(), m_client->port()));
2909 RESET_CURSOR;
2910}
2911
2912/*!
2913 Shows the MQTT connection manager where the connections are created and edited.

Callers

nothing calls this directly

Calls 1

portMethod · 0.45

Tested by

no test coverage detected