mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-27 23:14:31 +00:00
Expose more data fields
This commit is contained in:
parent
cdec6c9027
commit
64665146e1
@ -494,6 +494,11 @@ int TorrentHandle::piecesCount() const
|
|||||||
return m_torrentInfo.piecesCount();
|
return m_torrentInfo.piecesCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int TorrentHandle::piecesHave() const
|
||||||
|
{
|
||||||
|
return m_nativeStatus.num_pieces;
|
||||||
|
}
|
||||||
|
|
||||||
qreal TorrentHandle::progress() const
|
qreal TorrentHandle::progress() const
|
||||||
{
|
{
|
||||||
if (!m_nativeStatus.total_wanted)
|
if (!m_nativeStatus.total_wanted)
|
||||||
@ -844,6 +849,11 @@ int TorrentHandle::activeTime() const
|
|||||||
return m_nativeStatus.active_time;
|
return m_nativeStatus.active_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int TorrentHandle::finishedTime() const
|
||||||
|
{
|
||||||
|
return m_nativeStatus.finished_time;
|
||||||
|
}
|
||||||
|
|
||||||
int TorrentHandle::seedingTime() const
|
int TorrentHandle::seedingTime() const
|
||||||
{
|
{
|
||||||
return m_nativeStatus.seeding_time;
|
return m_nativeStatus.seeding_time;
|
||||||
@ -906,6 +916,21 @@ int TorrentHandle::leechsCount() const
|
|||||||
return (m_nativeStatus.num_peers - m_nativeStatus.num_seeds);
|
return (m_nativeStatus.num_peers - m_nativeStatus.num_seeds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int TorrentHandle::totalSeedsCount() const
|
||||||
|
{
|
||||||
|
return m_nativeStatus.list_seeds;
|
||||||
|
}
|
||||||
|
|
||||||
|
int TorrentHandle::totalPeersCount() const
|
||||||
|
{
|
||||||
|
return m_nativeStatus.list_peers;
|
||||||
|
}
|
||||||
|
|
||||||
|
int TorrentHandle::totalLeechersCount() const
|
||||||
|
{
|
||||||
|
return (m_nativeStatus.list_peers - m_nativeStatus.list_seeds);
|
||||||
|
}
|
||||||
|
|
||||||
int TorrentHandle::completeCount() const
|
int TorrentHandle::completeCount() const
|
||||||
{
|
{
|
||||||
return m_nativeStatus.num_complete;
|
return m_nativeStatus.num_complete;
|
||||||
|
@ -181,6 +181,7 @@ namespace BitTorrent
|
|||||||
QString savePathParsed() const;
|
QString savePathParsed() const;
|
||||||
int filesCount() const;
|
int filesCount() const;
|
||||||
int piecesCount() const;
|
int piecesCount() const;
|
||||||
|
int piecesHave() const;
|
||||||
qreal progress() const;
|
qreal progress() const;
|
||||||
QString label() const;
|
QString label() const;
|
||||||
QDateTime addedTime() const;
|
QDateTime addedTime() const;
|
||||||
@ -222,12 +223,16 @@ namespace BitTorrent
|
|||||||
qlonglong totalDownload() const;
|
qlonglong totalDownload() const;
|
||||||
qlonglong totalUpload() const;
|
qlonglong totalUpload() const;
|
||||||
int activeTime() const;
|
int activeTime() const;
|
||||||
|
int finishedTime() const;
|
||||||
int seedingTime() const;
|
int seedingTime() const;
|
||||||
qulonglong eta() const;
|
qulonglong eta() const;
|
||||||
QVector<qreal> filesProgress() const;
|
QVector<qreal> filesProgress() const;
|
||||||
int seedsCount() const;
|
int seedsCount() const;
|
||||||
int peersCount() const;
|
int peersCount() const;
|
||||||
int leechsCount() const;
|
int leechsCount() const;
|
||||||
|
int totalSeedsCount() const;
|
||||||
|
int totalPeersCount() const;
|
||||||
|
int totalLeechersCount() const;
|
||||||
int completeCount() const;
|
int completeCount() const;
|
||||||
int incompleteCount() const;
|
int incompleteCount() const;
|
||||||
QDateTime lastSeenComplete() const;
|
QDateTime lastSeenComplete() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user