- QString name() const;
- size_t getTotalSize() const;
- QTorrentHandle::State state() const;
- float progress() const;
- float uploadRate() const;
- float downloadRate() const;
- qint32 numSeeds() const;
- qint32 numLeeches() const;
- qint32 ratio() const;
-
- TorrentHandle getHandle() const;
-
- bool operator==(QTorrentHandle const& h) const;
- bool operator<(QTorrentHandle const& h) const;
+
+ TorrentInfo const& getTorrentInfo() const;
+
+ bool isValid() const;
+
+ QString name() const;
+ size_t getTotalSize() const;
+ QTorrentHandle::State state() const;
+ float progress() const;
+ float uploadRate() const;
+ float downloadRate() const;
+ qint32 numSeeds() const;
+ qint32 numLeeches() const;
+ qint32 ratio() const;
+
+ TorrentHandle getHandle() const;
+
+ bool operator==(QTorrentHandle const& h) const;
+ bool operator<(QTorrentHandle const& h) const;
+
+ private:
+ QTorrentHandle(); // Prevent default construct.
+ TorrentHandle torrentHandle_;