31 #include <libtorrent/torrent_info.hpp>
33 #include <QCoreApplication>
34 #include <QtContainerFwd>
60 static nonstd::expected<TorrentInfo, QString>
load(
const QByteArray &data) noexcept;
61 static nonstd::expected<TorrentInfo, QString>
loadFromFile(
const QString &path) noexcept;
62 nonstd::expected<void, QString>
saveToFile(
const QString &path)
const;
82 QVector<TrackerEntry>
trackers()
const;
98 std::shared_ptr<lt::torrent_info>
nativeInfo()
const;
QVector< QUrl > urlSeeds() const
static nonstd::expected< TorrentInfo, QString > load(const QByteArray &data) noexcept
QStringList filesForPiece(int pieceIndex) const
qlonglong totalSize() const
QVector< lt::file_index_t > nativeIndexes() const
QVector< TrackerEntry > trackers() const
qlonglong fileOffset(int index) const
QString filePath(int index) const
InfoHash infoHash() const
int fileIndex(const QString &fileName) const
QVector< lt::file_index_t > m_nativeIndexes
TorrentInfo & operator=(const TorrentInfo &other)
TorrentContentLayout contentLayout() const
PieceRange filePieces(const QString &file) const
std::shared_ptr< lt::torrent_info > nativeInfo() const
QStringList filePaths() const
QDateTime creationDate() const
QByteArray metadata() const
std::shared_ptr< const lt::torrent_info > m_nativeInfo
bool hasRootFolder() const
QString rootFolder() const
QVector< QByteArray > pieceHashes() const
qlonglong fileSize(int index) const
QVector< int > fileIndicesForPiece(int pieceIndex) const
nonstd::expected< void, QString > saveToFile(const QString &path) const
static nonstd::expected< TorrentInfo, QString > loadFromFile(const QString &path) noexcept
QString fileName(const QString &filePath)
file(GLOB QBT_TS_FILES "${qBittorrent_SOURCE_DIR}/src/lang/*.ts") set_source_files_properties($