provide (dummies) for receiving responses from binaries

This commit is contained in:
2025-02-06 16:25:50 +01:00
parent 44585f2c59
commit 238f2498b7
19 changed files with 162 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
#include "process/update_filesystem_command.h"
#include "worker.h"
UpdateFileSystemCommand::UpdateFileSystemCommand(QString const &command,
Worker *worker,
@@ -6,3 +7,17 @@ UpdateFileSystemCommand::UpdateFileSystemCommand(QString const &command,
int finish_timeout)
: UpdateCommand(command, worker, start_timeout, finish_timeout) {
}
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);
}
}
}