provide (dummies) for receiving responses from binaries
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "process/exec_opkg_command.h"
|
||||
|
||||
#include "worker.h"
|
||||
|
||||
ExecOpkgCommand::ExecOpkgCommand(QString const &command,
|
||||
Worker *worker,
|
||||
@@ -7,5 +7,19 @@ ExecOpkgCommand::ExecOpkgCommand(QString const &command,
|
||||
int start_timeout,
|
||||
int finish_timeout)
|
||||
: UpdateCommand(command, worker, start_timeout, finish_timeout)
|
||||
, m_noaction(m_noaction) {
|
||||
, 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user