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/client/QXmppDownload.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/client/QXmppDownload.cpp (limited to 'src/client/QXmppDownload.cpp') diff --git a/src/client/QXmppDownload.cpp b/src/client/QXmppDownload.cpp new file mode 100644 index 00000000..0ece1906 --- /dev/null +++ b/src/client/QXmppDownload.cpp @@ -0,0 +1,26 @@ +// SPDX-FileCopyrightText: 2022 Jonah BrĂ¼chert +// +// SPDX-License-Identifier: LGPL-2.1-or-later + +#include "QXmppDownload.h" + +/// +/// \class QXmppDownload +/// +/// \brief Provides progress of stateless file sharing uploads. +/// +/// \since QXmpp 1.5 +/// + +/// +/// \typedef QXmppDownload::Result +/// +/// \brief Contains QXmpp::Success (successfully finished), QXmpp::Cancelled (manually cancelled) +/// or QXmppError (an error occured while downloading). +/// + +/// +/// \fn QXmppDownload::finished +/// +/// Emitted when the download has finished. +/// -- cgit v1.2.3