! *\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 */
| 2903 | * disconnects the client, stops the timer, and warns the user |
| 2904 | */ |
| 2905 | void 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. |