return QString::fromStdString(torrentHandle_.name());
}
-
-
-
-bool QTorrentHandle::operator==(QTorrentHandle const& h)
-{
- return torrentHandle_ == h.torrentHandle_;
-}
-
-
-bool QTorrentHandle::operator<(QTorrentHandle const& h)
-{
- return torrentHandle_ < h.torrentHandle_;
-}
-
size_t QTorrentHandle::getTotalSize() const
{
TorrentInfo info = getTorrentInfo();
return statusTmp.download_rate;
}
+
qint32 QTorrentHandle::numSeeds() const
{
TorrentStatus statusTmp = status();
return statusTmp.list_seeds;
}
+
qint32 QTorrentHandle::numLeeches() const
{
TorrentStatus statusTmp = status();
return (statusTmp.list_peers - statusTmp.list_seeds);
}
+
qint32 QTorrentHandle::ratio() const
{
TorrentStatus statusTmp = status();
}
+TorrentHandle QTorrentHandle::getHandle() const
+{
+ return torrentHandle_;
+}
+
+
+bool QTorrentHandle::operator==(QTorrentHandle const& h) const
+{
+ return torrentHandle_ == h.torrentHandle_;
+}
+
+
+bool QTorrentHandle::operator<(QTorrentHandle const& h) const
+{
+ return torrentHandle_ < h.torrentHandle_;
+}
+
+
+
QString QTorrentHandle::GetStatusString(TorrentStatus const& status) const
{
switch (status.state) {
}
}
+
\ No newline at end of file