Adds immediate migration results

This commit is contained in:
torsten committed 2026-08-18 22:12:24 +02:00
1 parent ba4121728b
commit 6a2a0667ab
2395 files changed
+357322 -2524

No files matched your search

@@ -7,6 +7,7 @@
*/
#include "service.h"
#include <utility>
#include <QtCore/QProcess>
@@ -83,7 +84,7 @@ ServiceManagement::ServiceProcess *ServiceManagement::Service::toServiceProcess(
ServiceManagement::ServiceProcess *ServiceManagement::Service::procFromPid(qint64 pid)
{
for (ServiceProcess *currentProc : qAsConst(m_procs))
for (ServiceProcess *currentProc : std::as_const(m_procs))
{
if (currentProc->usablePid() == pid)
return currentProc;
@@ -93,7 +94,7 @@ ServiceManagement::ServiceProcess *ServiceManagement::Service::procFromPid(qint6
ServiceManagement::ServiceProcess *ServiceManagement::Service::procFromServiceProcId(int32_t id)
{
for (ServiceProcess *currentProc : qAsConst(m_procs))
for (ServiceProcess *currentProc : std::as_const(m_procs))
{
if (currentProc->serviceProcessId() == id)
return currentProc;
@@ -103,13 +104,13 @@ ServiceManagement::ServiceProcess *ServiceManagement::Service::procFromServicePr
void ServiceManagement::Service::stopAllProcs()
{
for (ServiceProcess *currentProc : qAsConst(m_procs))
for (ServiceProcess *currentProc : std::as_const(m_procs))
currentProc->terminate();
}
void ServiceManagement::Service::waitForStopped()
{
for (ServiceProcess *currentProc : qAsConst(m_procs))
for (ServiceProcess *currentProc : std::as_const(m_procs))
currentProc->waitForFinished(5000);
}