Remove Boost - SrmDevice

converted SrmDevice to use signals instead of callback.
Also add missing erase connections.

Signed-off-by: Andy Bryson <agbryson@gmail.com>
This commit is contained in:
Rainer Clasen
2012-12-28 20:35:44 +01:00
committed by Mark Liversedge
parent 356a80a448
commit 5d1e67b5f5
3 changed files with 32 additions and 22 deletions

View File

@@ -416,6 +416,10 @@ DownloadRideDialog::eraseClicked()
DevicesPtr devtype = Devices::getType(deviceCombo->currentText());
DevicePtr device = devtype->newDevice( dev );
connect( device.data(), SIGNAL(updateStatus(QString)), this, SLOT(updateStatus(QString)));
connect( this, SIGNAL(cancel()), device.data(), SLOT(cancelled()) );
connect( device.data(), SIGNAL(updateProgress(QString)), this, SLOT(updateProgress(QString)));
QString err;
if( device->cleanup( err) )
updateStatus( tr("cleaned data") );