| QXmpp Version: 1.5.6
    | 
Provides progress of stateless file sharing uploads. More...
Inherits QObject.
| Classes | |
| struct | Downloaded | 
| Public Types | |
| enum | HashVerificationResult { NoStrongHashes , HashVerified } | 
| using | Result = std::variant< Downloaded, QXmpp::Cancelled, QXmppError > | 
| Contains QXmpp::Success (successfully finished), QXmpp::Cancelled (manually cancelled) or QXmppError (an error occured while downloading). | |
| Public Member Functions | |
| 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 () | 
| Properties | |
| float | progress | 
| Progress of the file download between 0.0 and 1.0. | |
| Friends | |
| class | QXmppFileSharingManager | 
Provides progress of stateless file sharing uploads.
Describes the result of the hash verification.
| QXmppFileDownload::finished | ( | ) | 
Emitted when the download has finished.
| float QXmppFileDownload::progress | ( | ) | const | 
Returns the current progress between 0.0 and 1.0.
| QXmppFileDownload::Result QXmppFileDownload::result | ( | ) | const | 
Returns the result of the download.
The download must be finished when calling this.