mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-10 17:35:00 -06:00
Add support for exporting .torrent data to buffer
Related: https://github.com/qbittorrent/qBittorrent/pull/16886#discussion_r855882018 PR #16931.
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
#include "abstractfilestorage.h"
|
||||
|
||||
class QBitArray;
|
||||
class QByteArray;
|
||||
class QDateTime;
|
||||
class QUrl;
|
||||
|
||||
@@ -301,6 +302,7 @@ namespace BitTorrent
|
||||
virtual void clearPeers() = 0;
|
||||
|
||||
virtual QString createMagnetURI() const = 0;
|
||||
virtual nonstd::expected<QByteArray, QString> exportToBuffer() const = 0;
|
||||
virtual nonstd::expected<void, QString> exportToFile(const Path &path) const = 0;
|
||||
|
||||
TorrentID id() const;
|
||||
|
||||
Reference in New Issue
Block a user