mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 17:09:56 +00:00
Device: allow status updates from all methods
turned statusCallback into a member of Device (instead of a parameter to download() and preview(). This allows all methods to access it, directly and provide better feedback during open/close/erase.
This commit is contained in:
@@ -26,9 +26,9 @@ static bool powerTapRegistered =
|
||||
Devices::addType("PowerTap", DevicesPtr(new PowerTapDevices()) );
|
||||
|
||||
DevicePtr
|
||||
PowerTapDevices::newDevice( CommPortPtr dev )
|
||||
PowerTapDevices::newDevice( CommPortPtr dev, Device::StatusCallback cb)
|
||||
{
|
||||
return DevicePtr( new PowerTapDevice( dev ));
|
||||
return DevicePtr( new PowerTapDevice( dev, cb ));
|
||||
}
|
||||
|
||||
QString
|
||||
@@ -123,7 +123,6 @@ bool
|
||||
PowerTapDevice::download( const QDir &tmpdir,
|
||||
QList<DeviceDownloadFile> &files,
|
||||
CancelCallback cancelCallback,
|
||||
StatusCallback statusCallback,
|
||||
ProgressCallback progressCallback,
|
||||
QString &err)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user