| 307 | } |
| 308 | |
| 309 | void Application::handleStatusChanged(SyncthingStatus newStatus) |
| 310 | { |
| 311 | Q_UNUSED(newStatus) |
| 312 | // skip when callbacks have already been invoked, when doing shell completion or not connected yet |
| 313 | if (!m_argsRead || m_callbacksInvoked || !m_connection.isConnected()) { |
| 314 | return; |
| 315 | } |
| 316 | // erase current line |
| 317 | cerr << Phrases::Override; |
| 318 | // invoke callbacks |
| 319 | m_callbacksInvoked = true; |
| 320 | m_args.parser.invokeCallbacks(); |
| 321 | // disconnect, except when m_preventDisconnect has been set in callbacks |
| 322 | if (!m_preventDisconnect) { |
| 323 | m_connection.disconnect(); |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | void Application::handleResponse() |
| 328 | { |
nothing calls this directly
no test coverage detected