MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / handleStatusChanged

Method handleStatusChanged

cli/application.cpp:309–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309void 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
327void Application::handleResponse()
328{

Callers

nothing calls this directly

Calls 2

isConnectedMethod · 0.45
disconnectMethod · 0.45

Tested by

no test coverage detected