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

Method requestResumePwd

cli/application.cpp:1171–1186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1169}
1170
1171void Application::requestResumePwd(const ArgumentOccurrence &)
1172{
1173 if (!findPwd(true)) {
1174 return;
1175 }
1176 if (m_connection.resumeDirectories(QStringList(m_pwd.dirObj->id))) {
1177 cerr << "Request resuming folder \"" << m_pwd.dirObj->path.toLocal8Bit().data() << "\" ..." << endl;
1178 connect(&m_connection, &SyncthingConnection::directoryResumeTriggered, this, &Application::handleResponse);
1179 m_preventDisconnect = true;
1180 m_expectedResponse = 1;
1181 return;
1182 } else {
1183 cerr << "Folder \"" << m_pwd.dirObj->path.toLocal8Bit().data() << " not paused" << endl;
1184 QCoreApplication::quit();
1185 }
1186}
1187
1188void Application::initDirCompletion(Argument &arg, const ArgumentOccurrence &)
1189{

Callers

nothing calls this directly

Calls 2

resumeDirectoriesMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected