Index: sources/device/DeviceController.h =================================================================== diff -u -r61f87c52ccba9ce140fd8039915e025b6c790575 -r02350a71e85f193287e6c999e816dc5ced6966f2 --- sources/device/DeviceController.h (.../DeviceController.h) (revision 61f87c52ccba9ce140fd8039915e025b6c790575) +++ sources/device/DeviceController.h (.../DeviceController.h) (revision 02350a71e85f193287e6c999e816dc5ced6966f2) @@ -60,11 +60,17 @@ : QObject(), _timeout(vTimeout), _process(vProcess), _command(vCommand), _arguments(vArguments) { connect(_process, SIGNAL( finished(int)), this , SLOT(onFinish (int))); + + connect(_process, SIGNAL( errorOccurred(QProcess::ProcessError)), this, SLOT(onProcessErrored(QProcess::ProcessError))); } void start() { _pid = startTimer(_timeout); _process->start(_command, _arguments); } +public slots : + void onProcessErrored(QProcess::ProcessError err) { + LOG_DEBUG("TimedProcess error " + err); + } protected: void timerEvent(QTimerEvent *) { @@ -97,9 +103,6 @@ // friends friend class ::tst_initializations; - bool _mounted = false; - bool _umounted = false; - bool _removed = false; const int _interval = 1000; // in ms const qint8 _minRequiredAvailableSpacePercent = 10; @@ -113,6 +116,7 @@ QString _macWireless = ""; QString _macBluetooth = ""; QString _netCloudSync = ""; + QString _lastMountedDevice = ""; bool _hasThread = false; bool _hasSalt = false;