Provides progress of stateless file sharing uploads.
More...
|
float | progress () const |
Q_SIGNAL void | progressChanged () |
| Emitted when new bytes have been transferred.
|
void | cancel () |
| Cancels the file transfer. finished() will be emitted.
|
bool | isFinished () const |
| Returns whether the file transfer is finished.
|
quint64 | bytesTransferred () const |
| Returns the number of bytes that have been uploaded or downloaded.
|
quint64 | bytesTotal () const |
| Returns the number of bytes that totally need to be transferred.
|
Result | result () const |
| Returns the result of the download.
|
Q_SIGNAL void | finished () |
|
float | progress |
| Progress of the file download between 0.0 and 1.0.
|
|
class | QXmppFileSharingManager |
Provides progress of stateless file sharing uploads.
- Since
- QXmpp 1.5
◆ HashVerificationResult
Describes the result of the hash verification.
Enumerator |
---|
NoStrongHashes | File did not contain strong hashes (or no hashes at all) and no verification was done.
This value is not used when a hash value did not match. In that case the whole file download returns an error.
|
HashVerified | The file integrity could be proved using a strong hash algorithm.
|
◆ finished()
Q_SIGNAL void QXmppFileDownload::finished |
( |
| ) |
|
Emitted when the download has finished.
◆ progress()
float QXmppFileDownload::progress |
( |
| ) |
const |
Returns the current progress between 0.0 and 1.0.
◆ result()
Returns the result of the download.
The download must be finished when calling this.
The documentation for this class was generated from the following files: