1#ifndef TORRENTSEARCHRESULT_H
2#define TORRENTSEARCHRESULT_H
4#include <Kanoop/torrent/kanooptorrent.h>
5#include <Kanoop/torrent/magnetlink.h>
22 QString
name()
const {
return _name; }
26 qint64
size()
const {
return _size; }
69 QString _uploaderName;
Parses and constructs BitTorrent magnet URIs.
Metadata for a single torrent search result.
QString uploaderName() const
Name of the uploader.
int leechers() const
Number of leechers reported by the tracker.
QString infoHash() const
Hex-encoded info hash string.
static QString formatSize(qint64 bytes)
Format a byte count as a human-readable string.
MagnetLink toMagnetLink() const
Convert this result to a MagnetLink.
qint64 size() const
Total content size in bytes.
int seeders() const
Number of seeders reported by the tracker.
QString name() const
Torrent display name.
QString category() const
Category string (e.g.
QDateTime addedDate() const
Date/time the torrent was added to the index.
static TorrentSearchResult fromJson(const QJsonObject &json)
Parse a search result from a JSON object.