Aggregate statistics snapshot for a TorrentClient session.
More...
#include <sessionstats.h>
Aggregate statistics snapshot for a TorrentClient session.
SessionStats is a lightweight value class that captures a point-in-time view of session-wide transfer totals, rates, peer counts, and DHT state. Obtain one via TorrentClient::sessionStats() or the TorrentClient::sessionStatsReceived() signal.
Definition at line 15 of file sessionstats.h.
◆ activeTorrents()
| int SessionStats::activeTorrents |
( |
| ) |
const |
|
inline |
Number of torrents currently downloading or seeding.
Definition at line 55 of file sessionstats.h.
◆ dhtNodes()
| int SessionStats::dhtNodes |
( |
| ) |
const |
|
inline |
Number of nodes in the DHT routing table (IPv4 + IPv6).
Definition at line 49 of file sessionstats.h.
◆ downloadRate()
| qint64 SessionStats::downloadRate |
( |
| ) |
const |
|
inline |
Combined download rate in bytes/sec across all torrents.
Definition at line 33 of file sessionstats.h.
◆ pausedTorrents()
| int SessionStats::pausedTorrents |
( |
| ) |
const |
|
inline |
◆ setActiveTorrents()
| void SessionStats::setActiveTorrents |
( |
int |
value | ) |
|
|
inline |
◆ setDhtNodes()
| void SessionStats::setDhtNodes |
( |
int |
value | ) |
|
|
inline |
◆ setDownloadRate()
| void SessionStats::setDownloadRate |
( |
qint64 |
value | ) |
|
|
inline |
◆ setPausedTorrents()
| void SessionStats::setPausedTorrents |
( |
int |
value | ) |
|
|
inline |
◆ setTotalDownloaded()
| void SessionStats::setTotalDownloaded |
( |
qint64 |
value | ) |
|
|
inline |
◆ setTotalPeers()
| void SessionStats::setTotalPeers |
( |
int |
value | ) |
|
|
inline |
◆ setTotalUploaded()
| void SessionStats::setTotalUploaded |
( |
qint64 |
value | ) |
|
|
inline |
◆ setUploadRate()
| void SessionStats::setUploadRate |
( |
qint64 |
value | ) |
|
|
inline |
◆ totalDownloaded()
| qint64 SessionStats::totalDownloaded |
( |
| ) |
const |
|
inline |
Total bytes downloaded across all torrents since session start.
Definition at line 23 of file sessionstats.h.
◆ totalPeers()
| int SessionStats::totalPeers |
( |
| ) |
const |
|
inline |
Total number of connected peers across all torrents.
Definition at line 43 of file sessionstats.h.
◆ totalUploaded()
| qint64 SessionStats::totalUploaded |
( |
| ) |
const |
|
inline |
Total bytes uploaded across all torrents since session start.
Definition at line 27 of file sessionstats.h.
◆ uploadRate()
| qint64 SessionStats::uploadRate |
( |
| ) |
const |
|
inline |
Combined upload rate in bytes/sec across all torrents.
Definition at line 37 of file sessionstats.h.
The documentation for this class was generated from the following file: