KanoopTorrentQt 0.1.0
Qt6 wrapper library for libtorrent-rasterbar
Loading...
Searching...
No Matches
SessionStats Class Reference

Aggregate statistics snapshot for a TorrentClient session. More...

#include <sessionstats.h>

Public Member Functions

qint64 totalDownloaded () const
 Total bytes downloaded across all torrents since session start.
 
void setTotalDownloaded (qint64 value)
 
qint64 totalUploaded () const
 Total bytes uploaded across all torrents since session start.
 
void setTotalUploaded (qint64 value)
 
qint64 downloadRate () const
 Combined download rate in bytes/sec across all torrents.
 
void setDownloadRate (qint64 value)
 
qint64 uploadRate () const
 Combined upload rate in bytes/sec across all torrents.
 
void setUploadRate (qint64 value)
 
int totalPeers () const
 Total number of connected peers across all torrents.
 
void setTotalPeers (int value)
 
int dhtNodes () const
 Number of nodes in the DHT routing table (IPv4 + IPv6).
 
void setDhtNodes (int value)
 
int activeTorrents () const
 Number of torrents currently downloading or seeding.
 
void setActiveTorrents (int value)
 
int pausedTorrents () const
 Number of paused torrents.
 
void setPausedTorrents (int value)
 

Detailed Description

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.

Member Function Documentation

◆ 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

Number of paused torrents.

Definition at line 59 of file sessionstats.h.

◆ setActiveTorrents()

void SessionStats::setActiveTorrents ( int  value)
inline

Definition at line 56 of file sessionstats.h.

◆ setDhtNodes()

void SessionStats::setDhtNodes ( int  value)
inline

Definition at line 50 of file sessionstats.h.

◆ setDownloadRate()

void SessionStats::setDownloadRate ( qint64  value)
inline

Definition at line 34 of file sessionstats.h.

◆ setPausedTorrents()

void SessionStats::setPausedTorrents ( int  value)
inline

Definition at line 60 of file sessionstats.h.

◆ setTotalDownloaded()

void SessionStats::setTotalDownloaded ( qint64  value)
inline

Definition at line 24 of file sessionstats.h.

◆ setTotalPeers()

void SessionStats::setTotalPeers ( int  value)
inline

Definition at line 44 of file sessionstats.h.

◆ setTotalUploaded()

void SessionStats::setTotalUploaded ( qint64  value)
inline

Definition at line 28 of file sessionstats.h.

◆ setUploadRate()

void SessionStats::setUploadRate ( qint64  value)
inline

Definition at line 38 of file sessionstats.h.

◆ 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: