Commit 130a55af authored by Pawel Polanski's avatar Pawel Polanski
Browse files

Added CodaDevice::sendRunProcessCommand API

parent 2c5fe6f9
......@@ -968,6 +968,20 @@ void CodaDevice::sendProcessStartCommand(const CodaCallback &callBack,
sendCodaMessage(MessageWithReply, ProcessesService, "start", startData, callBack, cookie);
}
void CodaDevice::sendRunProcessCommand(const CodaCallback &callBack,
const QString &processName,
QStringList arguments,
const QVariant &cookie)
{
QByteArray startData;
JsonInputStream startStr(startData);
startStr << "" //We don't really know the drive of the working dir
<< '\0' << processName << '\0' << arguments << '\0'
<< QStringList() << '\0' // Env is an array ["PATH=value"] (non-standard)
<< false; // Don't attach debugger
sendCodaMessage(MessageWithReply, ProcessesService, "start", startData, callBack, cookie);
}
void CodaDevice::sendSettingsEnableLogCommand()
{
......
......@@ -213,6 +213,12 @@ public:
const QStringList &additionalLibraries = QStringList(),
const QVariant &cookie = QVariant());
// Just launch a process, don't attempt to attach the debugger to it
void sendRunProcessCommand(const CodaCallback &callBack,
const QString &processName,
QStringList arguments = QStringList(),
const QVariant &cookie = QVariant());
// Preferred over Processes:Terminate by TCF TRK.
void sendRunControlTerminateCommand(const CodaCallback &callBack,
const QByteArray &id,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment