bool QTorrentFilter::isTorrentResumed(const QTorrentHandle &h) const { const QTorrentState state = h.torrentState(); return state != QTorrentState::PausedUploading && state != QTorrentState::PausedDownloading; }
bool QTorrentFilter::isTorrentActive(const QTorrentHandle &h) const { const QTorrentState state = h.torrentState(); return state == QTorrentState::Downloading || state == QTorrentState::Uploading; }
bool QTorrentFilter::isTorrentPaused(const QTorrentHandle &h) const { const QTorrentState state = h.torrentState(); return state == QTorrentState::PausedUploading || state == QTorrentState::Error; }
bool QTorrentFilter::isTorrentSeeding(const QTorrentHandle &h) const { const QTorrentState state = h.torrentState(); return state == QTorrentState::Uploading || state == QTorrentState::StalledUploading || state == QTorrentState::CheckingUploading || state == QTorrentState::QueuedUploading; }
bool QTorrentFilter::isTorrentDownloading(const QTorrentHandle &h) const { const QTorrentState state = h.torrentState(); return state == QTorrentState::Downloading || state == QTorrentState::StalledDownloading || state == QTorrentState::CheckingDownloading || state == QTorrentState::PausedDownloading || state == QTorrentState::QueuedDownloading || state == QTorrentState::Error; }