Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ void UploadObjectHandler::doMultipartUpload(const std::shared_ptr<IOStream> &fil
long long amount) {
m_totalTransfered += amount;
emit updateProgress(m_totalTransfered, m_totalSize);
emit updateSpeed(m_totalTransfered);
});


Expand Down Expand Up @@ -314,6 +315,7 @@ void UploadObjectHandler::doSinglePartUpload(const std::shared_ptr<Aws::IOStream
long long progress) {
m_totalTransfered += static_cast<uint64_t>(progress);
emit updateProgress(m_totalTransfered, m_totalSize);
emit updateSpeed(m_totalTransfered);
});


Expand Down Expand Up @@ -471,6 +473,7 @@ void DownloadObjectHandler::doDownload()
Aws::Http::HttpResponse *, long long progress) {
m_totalTransfered += static_cast<uint64_t>(progress);
emit updateProgress(m_totalTransfered, m_totalSize);
emit updateSpeed(m_totalTransfered);
});

/* Never pass outer fstream into SetResponseStreamFactory(), because aws-lib will free fstream,
Expand Down
1 change: 1 addition & 0 deletions actions.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ class ObjectHandlerInterface: public QObject
virtual void waitForFinish() = 0;
virtual ~ObjectHandlerInterface() = default;
signals:
void updateSpeed(uint64_t);
void updateProgress(uint64_t, uint64_t);
void updateStatus(TransferStatus);
void finished(bool, s3error);
Expand Down