21 #ifndef BT_TORRENTSTATS_H
22 #define BT_TORRENTSTATS_H
25 #include <util/constants.h>
26 #include <ktorrent_export.h>
27 #include <qdatetime.h>
158 #endif // BT_TORRENTSTATS_H
bool superseeding
Set to true if superseeding is enabled.
Uint32 seeders_total
Total seeders in swarm.
bool overMaxRatio() const
Are we over the max share ratio.
Uint32 leechers_connected_to
Num leechers connected to.
QDateTime time_added
QDateTime when the torrent was added.
Uint32 chunk_size
Size of each chunk.
Uint32 num_chunks_left
Get the number of chunks left.
Uint32 total_chunks
The total number of chunks.
bool qm_can_start
Whether or not the QM can start this torrent.
Uint64 imported_bytes
The number of bytes imported (igore these for average speed)
QString statusToString() const
Convert the status into a human readable string.
TorrentStatus status
Status of the download.
Uint32 seeders_connected_to
Num seeders connected to.
bool completed
See if the download is completed.
float max_seed_time
Maximum seed time in hours.
Uint32 download_rate
The download rate in bytes per sec.
Uint64 bytes_downloaded
Total number of bytes downloaded.
Uint64 bytes_left
The number of bytes left (gets sent to the tracker)
bool paused
See if this torrent is paused.
Uint64 session_bytes_downloaded
The number of bytes downloaded in this session.
Uint64 bytes_uploaded
Total number of bytes uploaded.
TimeStamp last_download_activity_time
TimeStamp when we last saw download activity.
QString output_path
Path of the dir or file where the data will get saved.
Uint32 num_corrupted_chunks
Number of corrupted chunks found since the last check.
float max_share_ratio
Maximum share ratio.
TimeStamp last_upload_activity_time
TimeStamp when we last saw upload activity.
bool autostart
See if we are allowed to startup this torrent automatically.
Uint64 bytes_left_to_download
The number of bytes left to download (bytes_left - excluded bytes)
QString error_msg
Error message for the user.
Uint32 num_chunks_downloading
The number of chunks we are currently downloading.
bool stopped_by_error
See if the torrent is stopped by error.
bool auto_stopped
Set to true if torrent was stopped due to reaching max share ration or max seed time.
Uint32 num_chunks_excluded
Get the number of chunks which have been excluded.
float shareRatio() const
Calculate the share ratio.
Uint64 total_bytes_to_download
The total number of bytes which need to be downloaded.
QString torrent_name
Name of the torrent.
Uint64 session_bytes_uploaded
The number of bytes uploaded in this session.
bool multi_file_torrent
See if we have a multi file torrent.
bool queued
Whether or not the torrent is queued.
Uint32 upload_rate
The upload rate in bytes per sec.
bool priv_torrent
Private torrent (i.e. no use of DHT)
Uint32 num_chunks_downloaded
The number of chunks which have been downloaded.
bool running
See if we are running.
bool started
See if the torrent has been started.
Uint32 leechers_total
Total leechers in swarm.
Uint32 num_peers
The number of peers we are connected to.
Uint64 total_bytes
total number of bytes in torrent