diff options
author | Klaas Freitag <freitag@owncloud.com> | 2014-01-07 18:42:21 +0400 |
---|---|---|
committer | Klaas Freitag <freitag@owncloud.com> | 2014-01-07 18:42:21 +0400 |
commit | 273463daf4e472d501affb2edb89f6162e8391db (patch) | |
tree | 9c34ec309a9ab7c99b3c76c5397784e080944042 /src/mirall/owncloudpropagator.h | |
parent | 7da84dbe4456509fbbbb4103bed52d8323ec32d6 (diff) |
Fix progress for the case that the source file changes during upload.
If the source file changes, the overall transmission size is not longer
correct. Fixed that by pushing the change over the previously calculated
size to csyncthread. Also set the mtime and size in the item object in
propagator to avoid doublicate uploading.
Diffstat (limited to 'src/mirall/owncloudpropagator.h')
-rw-r--r-- | src/mirall/owncloudpropagator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mirall/owncloudpropagator.h b/src/mirall/owncloudpropagator.h index ddaf3387b..42a8aa4e4 100644 --- a/src/mirall/owncloudpropagator.h +++ b/src/mirall/owncloudpropagator.h @@ -38,6 +38,7 @@ protected: OwncloudPropagator *_propagator; public: explicit PropagatorJob(OwncloudPropagator* propagator) : _propagator(propagator) {} + public slots: virtual void start() = 0; signals: @@ -168,9 +169,12 @@ public: QAtomicInt *_abortRequested; // boolean set by the main thread to abort. + void overallTransmissionSizeChanged( qint64 change ); + signals: void completed(const SyncFileItem &); void progress(Progress::Kind kind, const SyncFileItem&, quint64 bytes, quint64 total); + void progressChanged(qint64 change); void finished(); }; |