qBittorrent
BitTorrent::Torrent Class Referenceabstract

#include <torrent.h>

Inheritance diagram for BitTorrent::Torrent:
Collaboration diagram for BitTorrent::Torrent:

Public Member Functions

virtual ~Torrent ()=default
 
virtual InfoHash infoHash () const =0
 
virtual QString name () const =0
 
virtual QDateTime creationDate () const =0
 
virtual QString creator () const =0
 
virtual QString comment () const =0
 
virtual bool isPrivate () const =0
 
virtual qlonglong totalSize () const =0
 
virtual qlonglong wantedSize () const =0
 
virtual qlonglong completedSize () const =0
 
virtual qlonglong pieceLength () const =0
 
virtual qlonglong wastedSize () const =0
 
virtual QString currentTracker () const =0
 
virtual bool isAutoTMMEnabled () const =0
 
virtual void setAutoTMMEnabled (bool enabled)=0
 
virtual QString savePath () const =0
 
virtual void setSavePath (const QString &savePath)=0
 
virtual QString downloadPath () const =0
 
virtual void setDownloadPath (const QString &downloadPath)=0
 
virtual QString actualStorageLocation () const =0
 
virtual QString rootPath () const =0
 
virtual QString contentPath () const =0
 
virtual QString category () const =0
 
virtual bool belongsToCategory (const QString &category) const =0
 
virtual bool setCategory (const QString &category)=0
 
virtual TagSet tags () const =0
 
virtual bool hasTag (const QString &tag) const =0
 
virtual bool addTag (const QString &tag)=0
 
virtual bool removeTag (const QString &tag)=0
 
virtual void removeAllTags ()=0
 
virtual int piecesCount () const =0
 
virtual int piecesHave () const =0
 
virtual qreal progress () const =0
 
virtual QDateTime addedTime () const =0
 
virtual qreal ratioLimit () const =0
 
virtual int seedingTimeLimit () const =0
 
virtual QString actualFilePath (int index) const =0
 
virtual QStringList filePaths () const =0
 
virtual QVector< DownloadPriorityfilePriorities () const =0
 
virtual TorrentInfo info () const =0
 
virtual bool isSeed () const =0
 
virtual bool isPaused () const =0
 
virtual bool isQueued () const =0
 
virtual bool isForced () const =0
 
virtual bool isChecking () const =0
 
virtual bool isDownloading () const =0
 
virtual bool isUploading () const =0
 
virtual bool isCompleted () const =0
 
virtual bool isActive () const =0
 
virtual bool isInactive () const =0
 
virtual bool isErrored () const =0
 
virtual bool isSequentialDownload () const =0
 
virtual bool hasFirstLastPiecePriority () const =0
 
virtual TorrentState state () const =0
 
virtual bool hasMetadata () const =0
 
virtual bool hasMissingFiles () const =0
 
virtual bool hasError () const =0
 
virtual int queuePosition () const =0
 
virtual QVector< TrackerEntrytrackers () const =0
 
virtual QVector< QUrl > urlSeeds () const =0
 
virtual QString error () const =0
 
virtual qlonglong totalDownload () const =0
 
virtual qlonglong totalUpload () const =0
 
virtual qlonglong activeTime () const =0
 
virtual qlonglong finishedTime () const =0
 
virtual qlonglong eta () const =0
 
virtual QVector< qreal > filesProgress () const =0
 
virtual int seedsCount () const =0
 
virtual int peersCount () const =0
 
virtual int leechsCount () const =0
 
virtual int totalSeedsCount () const =0
 
virtual int totalPeersCount () const =0
 
virtual int totalLeechersCount () const =0
 
virtual int completeCount () const =0
 
virtual int incompleteCount () const =0
 
virtual QDateTime lastSeenComplete () const =0
 
virtual QDateTime completedTime () const =0
 
virtual qlonglong timeSinceUpload () const =0
 
virtual qlonglong timeSinceDownload () const =0
 
virtual qlonglong timeSinceActivity () const =0
 
virtual int downloadLimit () const =0
 
virtual int uploadLimit () const =0
 
virtual bool superSeeding () const =0
 
virtual bool isDHTDisabled () const =0
 
virtual bool isPEXDisabled () const =0
 
virtual bool isLSDDisabled () const =0
 
virtual QVector< PeerInfopeers () const =0
 
virtual QBitArray pieces () const =0
 
virtual QBitArray downloadingPieces () const =0
 
virtual QVector< int > pieceAvailability () const =0
 
virtual qreal distributedCopies () const =0
 
virtual qreal maxRatio () const =0
 
virtual int maxSeedingTime () const =0
 
virtual qreal realRatio () const =0
 
virtual int uploadPayloadRate () const =0
 
virtual int downloadPayloadRate () const =0
 
virtual qlonglong totalPayloadUpload () const =0
 
virtual qlonglong totalPayloadDownload () const =0
 
virtual int connectionsCount () const =0
 
virtual int connectionsLimit () const =0
 
virtual qlonglong nextAnnounce () const =0
 
virtual QVector< qreal > availableFileFractions () const =0
 fraction of file pieces that are available at least from one peer More...
 
virtual void setName (const QString &name)=0
 
virtual void setSequentialDownload (bool enable)=0
 
virtual void setFirstLastPiecePriority (bool enabled)=0
 
virtual void pause ()=0
 
virtual void resume (TorrentOperatingMode mode=TorrentOperatingMode::AutoManaged)=0
 
virtual void forceReannounce (int index=-1)=0
 
virtual void forceDHTAnnounce ()=0
 
virtual void forceRecheck ()=0
 
virtual void prioritizeFiles (const QVector< DownloadPriority > &priorities)=0
 
virtual void setRatioLimit (qreal limit)=0
 
virtual void setSeedingTimeLimit (int limit)=0
 
virtual void setUploadLimit (int limit)=0
 
virtual void setDownloadLimit (int limit)=0
 
virtual void setSuperSeeding (bool enable)=0
 
virtual void setDHTDisabled (bool disable)=0
 
virtual void setPEXDisabled (bool disable)=0
 
virtual void setLSDDisabled (bool disable)=0
 
virtual void flushCache () const =0
 
virtual void addTrackers (const QVector< TrackerEntry > &trackers)=0
 
virtual void replaceTrackers (const QVector< TrackerEntry > &trackers)=0
 
virtual void addUrlSeeds (const QVector< QUrl > &urlSeeds)=0
 
virtual void removeUrlSeeds (const QVector< QUrl > &urlSeeds)=0
 
virtual bool connectPeer (const PeerAddress &peerAddress)=0
 
virtual void clearPeers ()=0
 
virtual QString createMagnetURI () const =0
 
TorrentID id () const
 
bool isResumed () const
 
qlonglong remainingSize () const
 
void toggleSequentialDownload ()
 
void toggleFirstLastPiecePriority ()
 
- Public Member Functions inherited from BitTorrent::AbstractFileStorage
virtual ~AbstractFileStorage ()=default
 
virtual int filesCount () const =0
 
virtual QString filePath (int index) const =0
 
virtual qlonglong fileSize (int index) const =0
 
virtual void renameFile (int index, const QString &name)=0
 
void renameFile (const QString &oldPath, const QString &newPath)
 
void renameFolder (const QString &oldPath, const QString &newPath)
 

Static Public Attributes

static const qreal USE_GLOBAL_RATIO = -2
 
static const qreal NO_RATIO_LIMIT = -1
 
static const int USE_GLOBAL_SEEDING_TIME = -2
 
static const int NO_SEEDING_TIME_LIMIT = -1
 
static const qreal MAX_RATIO = 9999
 
static const int MAX_SEEDING_TIME = 525600
 

Detailed Description

Definition at line 101 of file torrent.h.

Constructor & Destructor Documentation

◆ ~Torrent()

virtual BitTorrent::Torrent::~Torrent ( )
virtualdefault

Member Function Documentation

◆ activeTime()

virtual qlonglong BitTorrent::Torrent::activeTime ( ) const
pure virtual

◆ actualFilePath()

virtual QString BitTorrent::Torrent::actualFilePath ( int  index) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PreviewSelectDialog::previewButtonClicked().

Here is the caller graph for this function:

◆ actualStorageLocation()

virtual QString BitTorrent::Torrent::actualStorageLocation ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::getFullPath(), and PreviewSelectDialog::previewButtonClicked().

Here is the caller graph for this function:

◆ addedTime()

virtual QDateTime BitTorrent::Torrent::addedTime ( ) const
pure virtual

◆ addTag()

virtual bool BitTorrent::Torrent::addTag ( const QString &  tag)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TransferListWidget::addSelectionTag(), and TorrentsController::addTagsAction().

Here is the caller graph for this function:

◆ addTrackers()

virtual void BitTorrent::Torrent::addTrackers ( const QVector< TrackerEntry > &  trackers)
pure virtual

◆ addUrlSeeds()

virtual void BitTorrent::Torrent::addUrlSeeds ( const QVector< QUrl > &  urlSeeds)
pure virtual

◆ availableFileFractions()

virtual QVector<qreal> BitTorrent::Torrent::availableFileFractions ( ) const
pure virtual

fraction of file pieces that are available at least from one peer

This is not the same as torrrent availability, it is just a fraction of pieces that can be downloaded right now. It varies between 0 to 1.

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentsController::filesAction(), and PropertiesWidget::loadDynamicData().

Here is the caller graph for this function:

◆ belongsToCategory()

virtual bool BitTorrent::Torrent::belongsToCategory ( const QString &  category) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentFilter::matchCategory().

Here is the caller graph for this function:

◆ category()

◆ clearPeers()

virtual void BitTorrent::Torrent::clearPeers ( )
pure virtual

Implemented in BitTorrent::TorrentImpl.

◆ comment()

virtual QString BitTorrent::Torrent::comment ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadTorrentInfos(), and TorrentsController::propertiesAction().

Here is the caller graph for this function:

◆ completeCount()

virtual int BitTorrent::Torrent::completeCount ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

◆ completedSize()

virtual qlonglong BitTorrent::Torrent::completedSize ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TransferListModel::displayValue(), TransferListModel::internalValue(), remainingSize(), and serialize().

Here is the caller graph for this function:

◆ completedTime()

virtual QDateTime BitTorrent::Torrent::completedTime ( ) const
pure virtual

◆ connectionsCount()

virtual int BitTorrent::Torrent::connectionsCount ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadDynamicData(), and TorrentsController::propertiesAction().

Here is the caller graph for this function:

◆ connectionsLimit()

virtual int BitTorrent::Torrent::connectionsLimit ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadDynamicData(), and TorrentsController::propertiesAction().

Here is the caller graph for this function:

◆ connectPeer()

virtual bool BitTorrent::Torrent::connectPeer ( const PeerAddress peerAddress)
pure virtual

Implemented in BitTorrent::TorrentImpl.

◆ contentPath()

virtual QString BitTorrent::Torrent::contentPath ( ) const
pure virtual

◆ createMagnetURI()

virtual QString BitTorrent::Torrent::createMagnetURI ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by serialize().

Here is the caller graph for this function:

◆ creationDate()

virtual QDateTime BitTorrent::Torrent::creationDate ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadTorrentInfos(), and TorrentsController::propertiesAction().

Here is the caller graph for this function:

◆ creator()

virtual QString BitTorrent::Torrent::creator ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadTorrentInfos(), and TorrentsController::propertiesAction().

Here is the caller graph for this function:

◆ currentTracker()

virtual QString BitTorrent::Torrent::currentTracker ( ) const
pure virtual

◆ distributedCopies()

virtual qreal BitTorrent::Torrent::distributedCopies ( ) const
pure virtual

◆ downloadingPieces()

virtual QBitArray BitTorrent::Torrent::downloadingPieces ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadDynamicData(), and TorrentsController::pieceStatesAction().

Here is the caller graph for this function:

◆ downloadLimit()

virtual int BitTorrent::Torrent::downloadLimit ( ) const
pure virtual

◆ downloadPath()

virtual QString BitTorrent::Torrent::downloadPath ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentsController::propertiesAction(), and serialize().

Here is the caller graph for this function:

◆ downloadPayloadRate()

virtual int BitTorrent::Torrent::downloadPayloadRate ( ) const
pure virtual

◆ error()

virtual QString BitTorrent::Torrent::error ( ) const
pure virtual

◆ eta()

virtual qlonglong BitTorrent::Torrent::eta ( ) const
pure virtual

◆ filePaths()

virtual QStringList BitTorrent::Torrent::filePaths ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by anonymous_namespace{transferlistwidget.cpp}::torrentContainsPreviewableFiles().

Here is the caller graph for this function:

◆ filePriorities()

virtual QVector<DownloadPriority> BitTorrent::Torrent::filePriorities ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentsController::filePrioAction(), TorrentsController::filesAction(), and PropertiesWidget::loadDynamicData().

Here is the caller graph for this function:

◆ filesProgress()

virtual QVector<qreal> BitTorrent::Torrent::filesProgress ( ) const
pure virtual

◆ finishedTime()

virtual qlonglong BitTorrent::Torrent::finishedTime ( ) const
pure virtual

◆ flushCache()

virtual void BitTorrent::Torrent::flushCache ( ) const
pure virtual

◆ forceDHTAnnounce()

virtual void BitTorrent::Torrent::forceDHTAnnounce ( )
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TrackerListWidget::reannounceSelected(), and TrackerListWidget::showTrackerListMenu().

Here is the caller graph for this function:

◆ forceReannounce()

◆ forceRecheck()

virtual void BitTorrent::Torrent::forceRecheck ( )
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentsController::recheckAction().

Here is the caller graph for this function:

◆ hasError()

virtual bool BitTorrent::Torrent::hasError ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

◆ hasFirstLastPiecePriority()

virtual bool BitTorrent::Torrent::hasFirstLastPiecePriority ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TransferListWidget::displayListMenu(), serialize(), and toggleFirstLastPiecePriority().

Here is the caller graph for this function:

◆ hasMetadata()

◆ hasMissingFiles()

virtual bool BitTorrent::Torrent::hasMissingFiles ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TransferListWidget::displayListMenu().

Here is the caller graph for this function:

◆ hasTag()

virtual bool BitTorrent::Torrent::hasTag ( const QString &  tag) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentFilter::matchTag().

Here is the caller graph for this function:

◆ id()

◆ incompleteCount()

virtual int BitTorrent::Torrent::incompleteCount ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

◆ info()

virtual TorrentInfo BitTorrent::Torrent::info ( ) const
pure virtual

◆ infoHash()

virtual InfoHash BitTorrent::Torrent::infoHash ( ) const
pure virtual

◆ isActive()

virtual bool BitTorrent::Torrent::isActive ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentFilter::matchState().

Here is the caller graph for this function:

◆ isAutoTMMEnabled()

virtual bool BitTorrent::Torrent::isAutoTMMEnabled ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by serialize(), TorrentsController::setDownloadPathAction(), and TorrentsController::setSavePathAction().

Here is the caller graph for this function:

◆ isChecking()

virtual bool BitTorrent::Torrent::isChecking ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadDynamicData(), and PeerListWidget::showPeerListMenu().

Here is the caller graph for this function:

◆ isCompleted()

virtual bool BitTorrent::Torrent::isCompleted ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentFilter::matchState().

Here is the caller graph for this function:

◆ isDHTDisabled()

virtual bool BitTorrent::Torrent::isDHTDisabled ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TrackerListWidget::loadStickyItems().

Here is the caller graph for this function:

◆ isDownloading()

virtual bool BitTorrent::Torrent::isDownloading ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentFilter::matchState().

Here is the caller graph for this function:

◆ isErrored()

virtual bool BitTorrent::Torrent::isErrored ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TransferListWidget::displayListMenu(), and TorrentFilter::matchState().

Here is the caller graph for this function:

◆ isForced()

virtual bool BitTorrent::Torrent::isForced ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TransferListWidget::displayListMenu(), and serialize().

Here is the caller graph for this function:

◆ isInactive()

virtual bool BitTorrent::Torrent::isInactive ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentFilter::matchState().

Here is the caller graph for this function:

◆ isLSDDisabled()

virtual bool BitTorrent::Torrent::isLSDDisabled ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TrackerListWidget::loadStickyItems().

Here is the caller graph for this function:

◆ isPaused()

◆ isPEXDisabled()

virtual bool BitTorrent::Torrent::isPEXDisabled ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TrackerListWidget::loadStickyItems().

Here is the caller graph for this function:

◆ isPrivate()

◆ isQueued()

virtual bool BitTorrent::Torrent::isQueued ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadDynamicData(), and PeerListWidget::showPeerListMenu().

Here is the caller graph for this function:

◆ isResumed()

bool BitTorrent::Torrent::isResumed ( ) const

Definition at line 59 of file torrent.cpp.

60  {
61  return !isPaused();
62  }
virtual bool isPaused() const =0

References isPaused().

Referenced by TorrentFilter::matchState().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isSeed()

◆ isSequentialDownload()

virtual bool BitTorrent::Torrent::isSequentialDownload ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TransferListWidget::displayListMenu(), serialize(), and toggleSequentialDownload().

Here is the caller graph for this function:

◆ isUploading()

virtual bool BitTorrent::Torrent::isUploading ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentFilter::matchState().

Here is the caller graph for this function:

◆ lastSeenComplete()

virtual QDateTime BitTorrent::Torrent::lastSeenComplete ( ) const
pure virtual

◆ leechsCount()

virtual int BitTorrent::Torrent::leechsCount ( ) const
pure virtual

◆ maxRatio()

virtual qreal BitTorrent::Torrent::maxRatio ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TransferListModel::displayValue(), TransferListModel::internalValue(), and serialize().

Here is the caller graph for this function:

◆ maxSeedingTime()

virtual int BitTorrent::Torrent::maxSeedingTime ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by serialize().

Here is the caller graph for this function:

◆ name()

◆ nextAnnounce()

virtual qlonglong BitTorrent::Torrent::nextAnnounce ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadDynamicData(), and TorrentsController::propertiesAction().

Here is the caller graph for this function:

◆ pause()

virtual void BitTorrent::Torrent::pause ( )
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentsController::pauseAction(), and TransferListWidget::torrentDoubleClicked().

Here is the caller graph for this function:

◆ peers()

virtual QVector<PeerInfo> BitTorrent::Torrent::peers ( ) const
pure virtual

◆ peersCount()

virtual int BitTorrent::Torrent::peersCount ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

◆ pieceAvailability()

virtual QVector<int> BitTorrent::Torrent::pieceAvailability ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadDynamicData().

Here is the caller graph for this function:

◆ pieceLength()

virtual qlonglong BitTorrent::Torrent::pieceLength ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadDynamicData(), and TorrentsController::propertiesAction().

Here is the caller graph for this function:

◆ pieces()

virtual QBitArray BitTorrent::Torrent::pieces ( ) const
pure virtual

◆ piecesCount()

virtual int BitTorrent::Torrent::piecesCount ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadDynamicData(), and TorrentsController::propertiesAction().

Here is the caller graph for this function:

◆ piecesHave()

virtual int BitTorrent::Torrent::piecesHave ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadDynamicData(), and TorrentsController::propertiesAction().

Here is the caller graph for this function:

◆ prioritizeFiles()

virtual void BitTorrent::Torrent::prioritizeFiles ( const QVector< DownloadPriority > &  priorities)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::applyPriorities(), and TorrentsController::filePrioAction().

Here is the caller graph for this function:

◆ progress()

virtual qreal BitTorrent::Torrent::progress ( ) const
pure virtual

◆ queuePosition()

virtual int BitTorrent::Torrent::queuePosition ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TransferListModel::displayValue(), TransferListModel::internalValue(), and serialize().

Here is the caller graph for this function:

◆ ratioLimit()

virtual qreal BitTorrent::Torrent::ratioLimit ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by serialize().

Here is the caller graph for this function:

◆ realRatio()

virtual qreal BitTorrent::Torrent::realRatio ( ) const
pure virtual

◆ remainingSize()

qlonglong BitTorrent::Torrent::remainingSize ( ) const

Definition at line 64 of file torrent.cpp.

65  {
66  return wantedSize() - completedSize();
67  }
virtual qlonglong completedSize() const =0
virtual qlonglong wantedSize() const =0

References completedSize(), and wantedSize().

Referenced by TransferListModel::displayValue(), TransferListModel::internalValue(), and serialize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeAllTags()

virtual void BitTorrent::Torrent::removeAllTags ( )
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TransferListWidget::clearSelectionTags(), and TorrentsController::removeTagsAction().

Here is the caller graph for this function:

◆ removeTag()

virtual bool BitTorrent::Torrent::removeTag ( const QString &  tag)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TransferListWidget::removeSelectionTag(), and TorrentsController::removeTagsAction().

Here is the caller graph for this function:

◆ removeUrlSeeds()

virtual void BitTorrent::Torrent::removeUrlSeeds ( const QVector< QUrl > &  urlSeeds)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::deleteSelectedUrlSeeds(), and PropertiesWidget::editWebSeed().

Here is the caller graph for this function:

◆ replaceTrackers()

virtual void BitTorrent::Torrent::replaceTrackers ( const QVector< TrackerEntry > &  trackers)
pure virtual

◆ resume()

virtual void BitTorrent::Torrent::resume ( TorrentOperatingMode  mode = TorrentOperatingMode::AutoManaged)
pure virtual

◆ rootPath()

virtual QString BitTorrent::Torrent::rootPath ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by Application::runExternalProgram().

Here is the caller graph for this function:

◆ savePath()

◆ seedingTimeLimit()

virtual int BitTorrent::Torrent::seedingTimeLimit ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by serialize().

Here is the caller graph for this function:

◆ seedsCount()

virtual int BitTorrent::Torrent::seedsCount ( ) const
pure virtual

◆ setAutoTMMEnabled()

virtual void BitTorrent::Torrent::setAutoTMMEnabled ( bool  enabled)
pure virtual

◆ setCategory()

virtual bool BitTorrent::Torrent::setCategory ( const QString &  category)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentOptionsDialog::accept(), TorrentsController::setCategoryAction(), and TransferListModel::setData().

Here is the caller graph for this function:

◆ setDHTDisabled()

virtual void BitTorrent::Torrent::setDHTDisabled ( bool  disable)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentOptionsDialog::accept().

Here is the caller graph for this function:

◆ setDownloadLimit()

virtual void BitTorrent::Torrent::setDownloadLimit ( int  limit)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentOptionsDialog::accept(), and TorrentsController::setDownloadLimitAction().

Here is the caller graph for this function:

◆ setDownloadPath()

virtual void BitTorrent::Torrent::setDownloadPath ( const QString &  downloadPath)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentOptionsDialog::accept(), and TorrentsController::setDownloadPathAction().

Here is the caller graph for this function:

◆ setFirstLastPiecePriority()

virtual void BitTorrent::Torrent::setFirstLastPiecePriority ( bool  enabled)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentOptionsDialog::accept(), and toggleFirstLastPiecePriority().

Here is the caller graph for this function:

◆ setLSDDisabled()

virtual void BitTorrent::Torrent::setLSDDisabled ( bool  disable)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentOptionsDialog::accept().

Here is the caller graph for this function:

◆ setName()

virtual void BitTorrent::Torrent::setName ( const QString &  name)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentsController::renameAction(), and TransferListModel::setData().

Here is the caller graph for this function:

◆ setPEXDisabled()

virtual void BitTorrent::Torrent::setPEXDisabled ( bool  disable)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentOptionsDialog::accept().

Here is the caller graph for this function:

◆ setRatioLimit()

virtual void BitTorrent::Torrent::setRatioLimit ( qreal  limit)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentOptionsDialog::accept(), and TorrentsController::setShareLimitsAction().

Here is the caller graph for this function:

◆ setSavePath()

virtual void BitTorrent::Torrent::setSavePath ( const QString &  savePath)
pure virtual

◆ setSeedingTimeLimit()

virtual void BitTorrent::Torrent::setSeedingTimeLimit ( int  limit)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentOptionsDialog::accept(), and TorrentsController::setShareLimitsAction().

Here is the caller graph for this function:

◆ setSequentialDownload()

virtual void BitTorrent::Torrent::setSequentialDownload ( bool  enable)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentOptionsDialog::accept(), and toggleSequentialDownload().

Here is the caller graph for this function:

◆ setSuperSeeding()

virtual void BitTorrent::Torrent::setSuperSeeding ( bool  enable)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentsController::setSuperSeedingAction().

Here is the caller graph for this function:

◆ setUploadLimit()

virtual void BitTorrent::Torrent::setUploadLimit ( int  limit)
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TorrentOptionsDialog::accept(), and TorrentsController::setUploadLimitAction().

Here is the caller graph for this function:

◆ state()

virtual TorrentState BitTorrent::Torrent::state ( ) const
pure virtual

◆ superSeeding()

virtual bool BitTorrent::Torrent::superSeeding ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TransferListWidget::displayListMenu(), and serialize().

Here is the caller graph for this function:

◆ tags()

◆ timeSinceActivity()

virtual qlonglong BitTorrent::Torrent::timeSinceActivity ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by TransferListModel::displayValue(), TransferListModel::internalValue(), and serialize().

Here is the caller graph for this function:

◆ timeSinceDownload()

virtual qlonglong BitTorrent::Torrent::timeSinceDownload ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

◆ timeSinceUpload()

virtual qlonglong BitTorrent::Torrent::timeSinceUpload ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

◆ toggleFirstLastPiecePriority()

void BitTorrent::Torrent::toggleFirstLastPiecePriority ( )

Definition at line 74 of file torrent.cpp.

75  {
77  }
virtual bool hasFirstLastPiecePriority() const =0
virtual void setFirstLastPiecePriority(bool enabled)=0

References hasFirstLastPiecePriority(), and setFirstLastPiecePriority().

Referenced by TorrentsController::toggleFirstLastPiecePrioAction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toggleSequentialDownload()

void BitTorrent::Torrent::toggleSequentialDownload ( )

Definition at line 69 of file torrent.cpp.

70  {
72  }
virtual void setSequentialDownload(bool enable)=0
virtual bool isSequentialDownload() const =0

References isSequentialDownload(), and setSequentialDownload().

Referenced by TorrentsController::toggleSequentialDownloadAction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ totalDownload()

virtual qlonglong BitTorrent::Torrent::totalDownload ( ) const
pure virtual

◆ totalLeechersCount()

virtual int BitTorrent::Torrent::totalLeechersCount ( ) const
pure virtual

◆ totalPayloadDownload()

virtual qlonglong BitTorrent::Torrent::totalPayloadDownload ( ) const
pure virtual

◆ totalPayloadUpload()

virtual qlonglong BitTorrent::Torrent::totalPayloadUpload ( ) const
pure virtual

◆ totalPeersCount()

virtual int BitTorrent::Torrent::totalPeersCount ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

◆ totalSeedsCount()

virtual int BitTorrent::Torrent::totalSeedsCount ( ) const
pure virtual

◆ totalSize()

virtual qlonglong BitTorrent::Torrent::totalSize ( ) const
pure virtual

◆ totalUpload()

virtual qlonglong BitTorrent::Torrent::totalUpload ( ) const
pure virtual

◆ trackers()

◆ uploadLimit()

virtual int BitTorrent::Torrent::uploadLimit ( ) const
pure virtual

◆ uploadPayloadRate()

virtual int BitTorrent::Torrent::uploadPayloadRate ( ) const
pure virtual

◆ urlSeeds()

virtual QVector<QUrl> BitTorrent::Torrent::urlSeeds ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadUrlSeeds(), and TorrentsController::webseedsAction().

Here is the caller graph for this function:

◆ wantedSize()

virtual qlonglong BitTorrent::Torrent::wantedSize ( ) const
pure virtual

◆ wastedSize()

virtual qlonglong BitTorrent::Torrent::wastedSize ( ) const
pure virtual

Implemented in BitTorrent::TorrentImpl.

Referenced by PropertiesWidget::loadDynamicData(), and TorrentsController::propertiesAction().

Here is the caller graph for this function:

Member Data Documentation

◆ MAX_RATIO

◆ MAX_SEEDING_TIME

const int BitTorrent::Torrent::MAX_SEEDING_TIME = 525600
static

◆ NO_RATIO_LIMIT

◆ NO_SEEDING_TIME_LIMIT

◆ USE_GLOBAL_RATIO

◆ USE_GLOBAL_SEEDING_TIME


The documentation for this class was generated from the following files: