provide (dummies) for receiving responses from binaries
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "process/update_dc_command.h"
|
||||
#include "worker.h"
|
||||
|
||||
UpdateDCCommand::UpdateDCCommand(QString const &command,
|
||||
Worker *worker,
|
||||
@@ -6,3 +7,17 @@ UpdateDCCommand::UpdateDCCommand(QString const &command,
|
||||
int finish_timeout)
|
||||
: UpdateCommand(command, worker, start_timeout, finish_timeout) {
|
||||
}
|
||||
|
||||
void UpdateDCCommand::readyReadStandardOutput() {
|
||||
QProcess *p = (QProcess *)sender();
|
||||
if (p) {
|
||||
QString s = p->readAllStandardOutput();
|
||||
|
||||
// TODO
|
||||
Worker *w = worker();
|
||||
if (w) {
|
||||
// static constexpr const char *UPDATE_DC_FIRMARE_SUCCESS"success"};
|
||||
emit w->showUpdateDCFirmware(UpdateCommand::UPDATE_DC_FIRMARE_SUCCESS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user