From cebb5fc1fe88652048ecb3a0c836c360c6f05a5e Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 24 Aug 2007 12:25:52 +0000 Subject: [PATCH] - dropped Threaded branch - Added a function to torrent_handle wrapper for debug use --- src/qtorrenthandle.cpp | 4 ++++ src/qtorrenthandle.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/qtorrenthandle.cpp b/src/qtorrenthandle.cpp index 174f2b4ab..bdb9acdbf 100644 --- a/src/qtorrenthandle.cpp +++ b/src/qtorrenthandle.cpp @@ -217,6 +217,10 @@ QStringList QTorrentHandle::files_path() const { return res; } +int QTorrentHandle::num_uploads() const { + return s.num_uploads; +} + // // Setters // diff --git a/src/qtorrenthandle.h b/src/qtorrenthandle.h index 26ccfad11..354c64f21 100644 --- a/src/qtorrenthandle.h +++ b/src/qtorrenthandle.h @@ -84,6 +84,7 @@ class QTorrentHandle { size_type total_payload_download(); size_type total_payload_upload(); QStringList files_path() const; + int num_uploads() const; // // Setters