4#include <Kanoop/torrent/kanooptorrent.h>
24 void setTotalDownloaded(qint64 value) { _totalDownloaded = value; }
28 void setTotalUploaded(qint64 value) { _totalUploaded = value; }
34 void setDownloadRate(qint64 value) { _downloadRate = value; }
38 void setUploadRate(qint64 value) { _uploadRate = value; }
44 void setTotalPeers(
int value) { _totalPeers = value; }
50 void setDhtNodes(
int value) { _dhtNodes = value; }
56 void setActiveTorrents(
int value) { _activeTorrents = value; }
60 void setPausedTorrents(
int value) { _pausedTorrents = value; }
63 qint64 _totalDownloaded = 0;
64 qint64 _totalUploaded = 0;
65 qint64 _downloadRate = 0;
66 qint64 _uploadRate = 0;
69 int _activeTorrents = 0;
70 int _pausedTorrents = 0;
Aggregate statistics snapshot for a TorrentClient session.
qint64 downloadRate() const
Combined download rate in bytes/sec across all torrents.
qint64 totalDownloaded() const
Total bytes downloaded across all torrents since session start.
int dhtNodes() const
Number of nodes in the DHT routing table (IPv4 + IPv6).
int activeTorrents() const
Number of torrents currently downloading or seeding.
qint64 uploadRate() const
Combined upload rate in bytes/sec across all torrents.
int pausedTorrents() const
Number of paused torrents.
int totalPeers() const
Total number of connected peers across all torrents.
qint64 totalUploaded() const
Total bytes uploaded across all torrents since session start.