ATBUpdateTool/UpdatePTUDevCtrl/process/exec_opkg_command.cpp

26 lines
806 B
C++
Raw Normal View History

2025-02-05 16:25:01 +01:00
#include "process/exec_opkg_command.h"
#include "worker.h"
2025-02-05 16:25:01 +01:00
ExecOpkgCommand::ExecOpkgCommand(QString const &command,
Worker *worker,
2025-02-05 16:30:48 +01:00
bool noaction,
2025-02-05 16:25:01 +01:00
int start_timeout,
int finish_timeout)
: UpdateCommand(command, worker, start_timeout, finish_timeout)
, m_noaction(noaction) {
}
void ExecOpkgCommand::readyReadStandardOutput() {
QProcess *p = (QProcess *)sender();
if (p) {
QString s = p->readAllStandardOutput();
// TODO
Worker *w = worker();
if (w) {
// static constexpr const char *EXEC_OPKG_COMMANDS_SUCCESS{"success"};
emit w->showExecOpkgStatus(UpdateCommand::EXEC_OPKG_COMMANDS_SUCCESS);
}
}
2025-02-05 16:25:01 +01:00
}