Index: sources/device/DeviceController.h =================================================================== diff -u -rc9f8f8cf3c6c37fc6460d8675c62c9442c4d4263 -r0e122c98700951af539d9f47c5578e26d640fcc7 --- sources/device/DeviceController.h (.../DeviceController.h) (revision c9f8f8cf3c6c37fc6460d8675c62c9442c4d4263) +++ sources/device/DeviceController.h (.../DeviceController.h) (revision 0e122c98700951af539d9f47c5578e26d640fcc7) @@ -46,6 +46,7 @@ int _timeout = 0; QProcess *_process = nullptr; QString _command = ""; + QStringList _arguments = {}; private slots: void onFinish(int) { @@ -55,14 +56,14 @@ deleteLater(); } public: - TimedProcess(QProcess *vProcess, const QString &vCommand, int vTimeout) - : QObject(), _timeout(vTimeout), _process(vProcess), _command(vCommand) { + TimedProcess(QProcess *vProcess, const QString &vCommand, int vTimeout, QStringList vArguments = {}) + : QObject(), _timeout(vTimeout), _process(vProcess), _command(vCommand), _arguments(vArguments) { connect(_process, SIGNAL( finished(int)), this , SLOT(onFinish (int))); } void start() { _pid = startTimer(_timeout); - _process->start(_command, QStringList()); + _process->start(_command, _arguments); } protected: