From 68f167995e7ba71a6f2e556a7a0eab3d234e2d1a Mon Sep 17 00:00:00 2001 From: Jonah BrĂ¼chert Date: Fri, 9 Sep 2022 23:15:10 +0200 Subject: Implement XEP-0448: Stateless File Sharing This adds a file sharing manager that is capable of using multiple back ends. Currently implemented are a normal HTTP File Upload backend and an encrypted HTTP File Upload. Jingle File Transfer could be implemented later. Co-authored-by: Linus Jahn --- src/base/QXmppUtils_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/base/QXmppUtils_p.h') diff --git a/src/base/QXmppUtils_p.h b/src/base/QXmppUtils_p.h index 9a7b6103..17a24634 100644 --- a/src/base/QXmppUtils_p.h +++ b/src/base/QXmppUtils_p.h @@ -16,6 +16,7 @@ namespace QXmpp::Private { QXMPP_EXPORT QByteArray generateRandomBytes(uint32_t minimumByteCount, uint32_t maximumByteCount); QXMPP_EXPORT void generateRandomBytes(uint8_t *bytes, uint32_t byteCount); +float calculateProgress(qint64 transferred, qint64 total); } // namespace QXmpp::Private -- cgit v1.2.3