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

Method requestShutdown

cli/application.cpp:375–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375void Application::requestShutdown(const ArgumentOccurrence &)
376{
377 connect(&m_connection, &SyncthingConnection::shutdownTriggered, &QCoreApplication::quit);
378 m_connection.shutdown();
379 cerr << "Request shutdown " << m_settings.syncthingUrl.toLocal8Bit().data() << " ...";
380 cerr.flush();
381}
382
383void Application::requestRestart(const ArgumentOccurrence &)
384{

Callers

nothing calls this directly

Calls 2

shutdownMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected