ATBUpdateTool/UpdatePTUDevCtrl/process/update_filesystem_command.cpp

29 lines
1.0 KiB
C++
Raw Normal View History

2025-02-05 16:25:01 +01:00
#include "process/update_filesystem_command.h"
#include "worker.h"
2025-02-05 16:25:01 +01:00
UpdateFileSystemCommand::UpdateFileSystemCommand(QString const &command,
Worker *worker,
2025-02-14 13:20:42 +01:00
int nextCommandIndex,
2025-02-05 16:25:01 +01:00
int start_timeout,
int finish_timeout)
2025-02-14 13:20:42 +01:00
: UpdateCommand(command, worker, nextCommandIndex, start_timeout, finish_timeout) {
}
void UpdateFileSystemCommand::finished(int exitCode, QProcess::ExitStatus exitStatus) {
return UpdateCommand::finished(exitCode, exitStatus);
2025-02-05 16:25:01 +01:00
}
void UpdateFileSystemCommand::readyReadStandardOutput() {
QProcess *p = (QProcess *)sender();
if (p) {
QString s = p->readAllStandardOutput();
// TODO
Worker *w = worker();
if (w) {
// static constexpr const char *SYNC_CUSTOMER_REPO_FILES_SUCCESS{"success"};
emit w->showSyncCustRepoStatus(UpdateCommand::SYNC_CUSTOMER_REPO_FILES_SUCCESS);
}
}
}