qBittorrent
|
#include <session.h>
Classes | |
struct | MoveStorageJob |
struct | RemovingTorrentData |
Signals | |
void | allTorrentsFinished () |
void | categoryAdded (const QString &categoryName) |
void | categoryRemoved (const QString &categoryName) |
void | downloadFromUrlFailed (const QString &url, const QString &reason) |
void | downloadFromUrlFinished (const QString &url) |
void | fullDiskError (Torrent *torrent, const QString &msg) |
void | IPFilterParsed (bool error, int ruleCount) |
void | loadTorrentFailed (const QString &error) |
void | metadataDownloaded (const TorrentInfo &info) |
void | recursiveTorrentDownloadPossible (Torrent *torrent) |
void | speedLimitModeChanged (bool alternative) |
void | statsUpdated () |
void | subcategoriesSupportChanged () |
void | tagAdded (const QString &tag) |
void | tagRemoved (const QString &tag) |
void | torrentAboutToBeRemoved (Torrent *torrent) |
void | torrentAdded (Torrent *torrent) |
void | torrentCategoryChanged (Torrent *torrent, const QString &oldCategory) |
void | torrentFinished (Torrent *torrent) |
void | torrentFinishedChecking (Torrent *torrent) |
void | torrentLoaded (Torrent *torrent) |
void | torrentMetadataReceived (Torrent *torrent) |
void | torrentPaused (Torrent *torrent) |
void | torrentResumed (Torrent *torrent) |
void | torrentSavePathChanged (Torrent *torrent) |
void | torrentSavingModeChanged (Torrent *torrent) |
void | torrentsUpdated (const QVector< Torrent * > &torrents) |
void | torrentTagAdded (Torrent *torrent, const QString &tag) |
void | torrentTagRemoved (Torrent *torrent, const QString &tag) |
void | trackerError (Torrent *torrent, const QString &tracker) |
void | trackerlessStateChanged (Torrent *torrent, bool trackerless) |
void | trackersAdded (Torrent *torrent, const QVector< TrackerEntry > &trackers) |
void | trackersChanged (Torrent *torrent) |
void | trackersRemoved (Torrent *torrent, const QVector< TrackerEntry > &trackers) |
void | trackerSuccess (Torrent *torrent, const QString &tracker) |
void | trackerWarning (Torrent *torrent, const QString &tracker) |
Static Public Member Functions | |
static void | initInstance () |
static void | freeInstance () |
static Session * | instance () |
static bool | isValidCategoryName (const QString &name) |
static QStringList | expandCategory (const QString &category) |
static bool | isValidTag (const QString &tag) |
Private Slots | |
void | configureDeferred () |
void | readAlerts () |
void | enqueueRefresh () |
void | processShareLimits () |
void | generateResumeData () |
void | handleIPFilterParsed (int ruleCount) |
void | handleIPFilterError () |
void | handleDownloadFinished (const Net::DownloadResult &result) |
void | fileSearchFinished (const TorrentID &id, const QString &savePath, const QStringList &fileNames) |
Private Member Functions | |
Session (QObject *parent=nullptr) | |
~Session () | |
bool | hasPerTorrentRatioLimit () const |
bool | hasPerTorrentSeedingTimeLimit () const |
Q_INVOKABLE void | configure () |
void | configureComponents () |
void | initializeNativeSession () |
void | loadLTSettings (lt::settings_pack &settingsPack) |
void | configureNetworkInterfaces (lt::settings_pack &settingsPack) |
void | configurePeerClasses () |
void | adjustLimits (lt::settings_pack &settingsPack) const |
void | applyBandwidthLimits (lt::settings_pack &settingsPack) const |
void | initMetrics () |
void | adjustLimits () |
void | applyBandwidthLimits () |
void | processBannedIPs (lt::ip_filter &filter) |
QStringList | getListeningIPs () const |
void | configureListeningInterface () |
void | enableTracker (bool enable) |
void | enableBandwidthScheduler () |
void | populateAdditionalTrackers () |
void | enableIPFilter () |
void | disableIPFilter () |
bool | loadTorrent (LoadTorrentParams params) |
LoadTorrentParams | initLoadTorrentParams (const AddTorrentParams &addTorrentParams) |
bool | addTorrent_impl (const std::variant< MagnetUri, TorrentInfo > &source, const AddTorrentParams &addTorrentParams) |
void | updateSeedingLimitTimer () |
void | exportTorrentFile (const TorrentInfo &torrentInfo, const QString &folderPath, const QString &baseName) |
void | handleAlert (const lt::alert *a) |
void | dispatchTorrentAlert (const lt::alert *a) |
void | handleAddTorrentAlert (const lt::add_torrent_alert *p) |
void | handleStateUpdateAlert (const lt::state_update_alert *p) |
void | handleMetadataReceivedAlert (const lt::metadata_received_alert *p) |
void | handleFileErrorAlert (const lt::file_error_alert *p) |
void | handleTorrentRemovedAlert (const lt::torrent_removed_alert *p) |
void | handleTorrentDeletedAlert (const lt::torrent_deleted_alert *p) |
void | handleTorrentDeleteFailedAlert (const lt::torrent_delete_failed_alert *p) |
void | handlePortmapWarningAlert (const lt::portmap_error_alert *p) |
void | handlePortmapAlert (const lt::portmap_alert *p) |
void | handlePeerBlockedAlert (const lt::peer_blocked_alert *p) |
void | handlePeerBanAlert (const lt::peer_ban_alert *p) |
void | handleUrlSeedAlert (const lt::url_seed_alert *p) |
void | handleListenSucceededAlert (const lt::listen_succeeded_alert *p) |
void | handleListenFailedAlert (const lt::listen_failed_alert *p) |
void | handleExternalIPAlert (const lt::external_ip_alert *p) |
void | handleSessionStatsAlert (const lt::session_stats_alert *p) |
void | handleAlertsDroppedAlert (const lt::alerts_dropped_alert *p) const |
void | handleStorageMovedAlert (const lt::storage_moved_alert *p) |
void | handleStorageMovedFailedAlert (const lt::storage_moved_failed_alert *p) |
void | handleSocks5Alert (const lt::socks5_alert *p) const |
void | createTorrent (const lt::torrent_handle &nativeHandle) |
void | saveResumeData () |
void | saveTorrentsQueue () const |
void | removeTorrentsQueue () const |
std::vector< lt::alert * > | getPendingAlerts (lt::time_duration time=lt::time_duration::zero()) const |
void | moveTorrentStorage (const MoveStorageJob &job) const |
void | handleMoveTorrentStorageJobFinished () |
void | loadCategories () |
void | storeCategories () const |
void | upgradeCategories () |
Static Private Attributes | |
static Session * | m_instance = nullptr |
|
explicitprivate |
Definition at line 305 of file session.cpp.
Referenced by initInstance().
|
private |
Definition at line 965 of file session.cpp.
References Net::PortForwarder::instance(), m_filterParser, m_ioThread, m_nativeSession, and saveResumeData().
bool Session::addCategory | ( | const QString & | name, |
const CategoryOptions & | options = {} |
||
) |
Definition at line 701 of file session.cpp.
References asConst(), categoryAdded(), expandCategory(), isSubcategoriesEnabled(), isValidCategoryName(), m_categories, and storeCategories().
Referenced by initLoadTorrentParams().
QString Session::additionalTrackers | ( | ) | const |
Definition at line 2904 of file session.cpp.
References m_additionalTrackers.
Referenced by populateAdditionalTrackers(), and setAdditionalTrackers().
bool Session::addMoveTorrentStorageJob | ( | TorrentImpl * | torrent, |
const QString & | newPath, | ||
MoveStorageMode | mode | ||
) |
Definition at line 4027 of file session.cpp.
References BitTorrent::TorrentImpl::actualStorageLocation(), LogMsg(), m_moveStorageQueue, moveTorrentStorage(), BitTorrent::TorrentImpl::name(), BitTorrent::TorrentImpl::nativeHandle(), and Utils::Fs::toNativePath().
Referenced by BitTorrent::TorrentImpl::moveStorage().
bool Session::addTag | ( | const QString & | tag | ) |
Definition at line 839 of file session.cpp.
References hasTag(), isValidTag(), m_storedTags, m_tags, and tagAdded().
Referenced by TagFilterWidget::addTag(), BitTorrent::TorrentImpl::addTag(), TorrentsController::createTagsAction(), and initLoadTorrentParams().
bool Session::addTorrent | ( | const MagnetUri & | magnetUri, |
const AddTorrentParams & | params = AddTorrentParams() |
||
) |
Definition at line 2037 of file session.cpp.
References addTorrent_impl(), and BitTorrent::MagnetUri::isValid().
bool Session::addTorrent | ( | const QString & | source, |
const AddTorrentParams & | params = AddTorrentParams() |
||
) |
Definition at line 2007 of file session.cpp.
References Net::DownloadManager::download(), handleDownloadFinished(), Net::DownloadManager::hasSupportedScheme(), Net::DownloadManager::instance(), BitTorrent::TorrentInfo::loadFromFile(), LogMsg(), m_downloadedTorrents, MAX_TORRENT_SIZE, anonymous_namespace{misc.cpp}::source, and Log::WARNING.
Referenced by AddNewTorrentDialog::accept(), TorrentsController::addAction(), SearchJobWidget::addTorrentToSession(), MainWindow::downloadFromURLList(), RSSWidget::downloadSelectedTorrents(), MainWindow::dropEvent(), TorrentCreatorDialog::handleCreationSuccess(), handleDownloadFinished(), MainWindow::keyPressEvent(), MainWindow::on_actionOpen_triggered(), TorrentFilesWatcher::onMagnetFound(), TorrentFilesWatcher::onTorrentFound(), RSS::AutoDownloader::processJob(), Application::processParams(), and recursiveTorrentDownload().
bool Session::addTorrent | ( | const TorrentInfo & | torrentInfo, |
const AddTorrentParams & | params = AddTorrentParams() |
||
) |
Definition at line 2044 of file session.cpp.
References addTorrent_impl().
|
private |
Definition at line 2094 of file session.cpp.
References BitTorrent::MagnetUri::addTorrentParams(), BitTorrent::TorrentImpl::addTrackers(), BitTorrent::TorrentImpl::addUrlSeeds(), BitTorrent::applyContentLayout(), cancelDownloadMetadata(), BitTorrent::LoadTorrentParams::category, categoryDownloadPath(), categorySavePath(), BitTorrent::LoadTorrentParams::contentLayout, BitTorrent::detectContentLayout(), BitTorrent::AddTorrentParams::downloadLimit, BitTorrent::LoadTorrentParams::downloadPath, Utils::Fs::fileName(), BitTorrent::TorrentInfo::filePath(), BitTorrent::AddTorrentParams::filePaths, BitTorrent::TorrentInfo::filePaths(), BitTorrent::AddTorrentParams::filePriorities, BitTorrent::TorrentInfo::filesCount(), findIncompleteFiles(), Utils::Fs::findRootFolder(), BitTorrent::TorrentID::fromInfoHash(), BitTorrent::LoadTorrentParams::hasSeedStatus, initLoadTorrentParams(), isPreallocationEnabled(), BitTorrent::TorrentInfo::isPrivate(), BitTorrent::TorrentImpl::isPrivate(), loadTorrent(), BitTorrent::LoadTorrentParams::ltAddTorrentParams, m_loadingTorrents, m_torrents, BitTorrent::LoadTorrentParams::name, BitTorrent::TorrentInfo::name(), BitTorrent::TorrentInfo::nativeIndexes(), BitTorrent::TorrentInfo::nativeInfo(), BitTorrent::Normal, BitTorrent::LoadTorrentParams::operatingMode, BitTorrent::TorrentInfo::rootFolder(), BitTorrent::LoadTorrentParams::savePath, BitTorrent::AddTorrentParams::sequential, BitTorrent::AddTorrentParams::skipChecking, anonymous_namespace{misc.cpp}::source, BitTorrent::LoadTorrentParams::stopped, BitTorrent::LT::toNative(), Utils::Fs::toNativePath(), BitTorrent::LT::toUnderlyingType(), BitTorrent::MagnetUri::trackers(), BitTorrent::TorrentInfo::trackers(), BitTorrent::AddTorrentParams::uploadLimit, BitTorrent::MagnetUri::urlSeeds(), BitTorrent::TorrentInfo::urlSeeds(), and BitTorrent::LoadTorrentParams::useAutoTMM.
Referenced by addTorrent().
|
private |
Definition at line 1002 of file session.cpp.
References isQueueingSystemEnabled(), and m_nativeSession.
Referenced by cancelDownloadMetadata(), downloadMetadata(), handleMetadataReceivedAlert(), and loadLTSettings().
|
private |
Definition at line 1127 of file session.cpp.
References m_extraLimit, maxActiveDownloads(), and maxActiveTorrents().
|
signal |
Referenced by Application::exec(), and handleTorrentFinished().
int Session::altGlobalDownloadSpeedLimit | ( | ) | const |
Definition at line 2646 of file session.cpp.
References m_altGlobalDownloadSpeedLimit.
Referenced by applyBandwidthLimits(), downloadSpeedLimit(), and setAltGlobalDownloadSpeedLimit().
int Session::altGlobalUploadSpeedLimit | ( | ) | const |
Definition at line 2671 of file session.cpp.
References m_altGlobalUploadSpeedLimit.
Referenced by applyBandwidthLimits(), setAltGlobalUploadSpeedLimit(), and uploadSpeedLimit().
QString Session::announceIP | ( | ) | const |
Definition at line 3615 of file session.cpp.
References m_announceIP.
Referenced by AdvancedSettings::loadAdvancedSettings(), and loadLTSettings().
bool Session::announceToAllTiers | ( | ) | const |
Definition at line 3123 of file session.cpp.
References m_announceToAllTiers.
Referenced by AdvancedSettings::loadAdvancedSettings(), and loadLTSettings().
bool Session::announceToAllTrackers | ( | ) | const |
Definition at line 3109 of file session.cpp.
References m_announceToAllTrackers.
Referenced by AdvancedSettings::loadAdvancedSettings(), and loadLTSettings().
|
private |
Definition at line 1012 of file session.cpp.
References m_nativeSession.
Referenced by loadLTSettings(), and setAltGlobalSpeedLimitEnabled().
|
private |
Definition at line 1139 of file session.cpp.
References altGlobalDownloadSpeedLimit(), altGlobalUploadSpeedLimit(), globalDownloadSpeedLimit(), globalUploadSpeedLimit(), and isAltGlobalSpeedLimitEnabled().
int Session::asyncIOThreads | ( | ) | const |
Definition at line 3179 of file session.cpp.
References CachedSettingValue< T >::get(), and m_asyncIOThreads.
Referenced by AdvancedSettings::loadAdvancedSettings(), and loadLTSettings().
void Session::banIP | ( | const QString & | ip | ) |
Definition at line 1771 of file session.cpp.
References bannedIPs(), m_bannedIPs, and m_nativeSession.
Referenced by TransferController::banPeersAction(), and PeerListWidget::banSelectedPeers().
QStringList Session::bannedIPs | ( | ) | const |
Definition at line 2995 of file session.cpp.
References m_bannedIPs.
Referenced by banIP().
bool Session::blockPeersOnPrivilegedPorts | ( | ) | const |
Definition at line 3801 of file session.cpp.
References m_blockPeersOnPrivilegedPorts.
Referenced by AdvancedSettings::loadAdvancedSettings(), and loadLTSettings().
void Session::bottomTorrentsQueuePos | ( | const QVector< TorrentID > & | ids | ) |
Definition at line 1942 of file session.cpp.
References m_downloadedMetadata, m_nativeSession, m_torrents, BitTorrent::TorrentImpl::nativeHandle(), BitTorrent::TorrentImpl::queuePosition(), saveTorrentsQueue(), and anonymous_namespace{session.cpp}::torrentQueuePositionBottom().
Referenced by TorrentsController::bottomPrioAction(), and TransferListWidget::bottomQueuePosSelectedTorrents().
BTProtocol Session::btProtocol | ( | ) | const |
Definition at line 3706 of file session.cpp.
References m_btProtocol.
Referenced by loadLTSettings().
const CacheStatus & Session::cacheStatus | ( | ) | const |
Definition at line 4306 of file session.cpp.
References m_cacheStatus.
Referenced by StatsDialog::update().
bool Session::cancelDownloadMetadata | ( | const TorrentID & | id | ) |
Definition at line 1850 of file session.cpp.
References adjustLimits(), m_downloadedMetadata, m_extraLimit, and m_nativeSession.
Referenced by addTorrent_impl(), and AddNewTorrentDialog::reject().
QStringList Session::categories | ( | ) | const |
Definition at line 659 of file session.cpp.
References m_categories.
Referenced by AutomatedRssDownloader::initCategoryCombobox(), and BitTorrent::TorrentImpl::setCategory().
|
signal |
QString Session::categoryDownloadPath | ( | const QString & | categoryName | ) | const |
Definition at line 682 of file session.cpp.
References categoryOptions(), BitTorrent::CategoryOptions::downloadPath, downloadPath(), BitTorrent::CategoryOptions::DownloadPathOption::enabled, isDownloadPathEnabled(), m_categories, BitTorrent::CategoryOptions::DownloadPathOption::path, Utils::Fs::resolvePath(), and Utils::Fs::toValidFileSystemName().
Referenced by addTorrent_impl(), BitTorrent::TorrentImpl::downloadPath(), TorrentOptionsDialog::handleTMMChanged(), and BitTorrent::TorrentImpl::setAutoTMMEnabled().
CategoryOptions Session::categoryOptions | ( | const QString & | categoryName | ) | const |
Definition at line 664 of file session.cpp.
References m_categories.
Referenced by categoryDownloadPath(), loadCategories(), storeCategories(), and upgradeCategories().
|
signal |
QString Session::categorySavePath | ( | const QString & | categoryName | ) | const |
Definition at line 669 of file session.cpp.
References m_categories, Utils::Fs::resolvePath(), savePath(), and Utils::Fs::toValidFileSystemName().
Referenced by addTorrent_impl(), TorrentOptionsDialog::handleCategoryChanged(), TorrentOptionsDialog::handleTMMChanged(), BitTorrent::TorrentImpl::savePath(), and BitTorrent::TorrentImpl::setAutoTMMEnabled().
int Session::checkingMemUsage | ( | ) | const |
Definition at line 3221 of file session.cpp.
References CachedSettingValue< T >::get(), and m_checkingMemUsage.
Referenced by AdvancedSettings::loadAdvancedSettings(), and loadLTSettings().
ChokingAlgorithm Session::chokingAlgorithm | ( | ) | const |
Definition at line 2868 of file session.cpp.
References m_chokingAlgorithm.
Referenced by AdvancedSettings::loadAdvancedSettings(), and loadLTSettings().
|
private |
Definition at line 1019 of file session.cpp.
References configureComponents(), loadLTSettings(), m_deferredConfigureScheduled, and m_nativeSession.
Referenced by configureDeferred().
|
private |
Definition at line 1030 of file session.cpp.
References configurePeerClasses(), disableIPFilter(), enableIPFilter(), isIPFilteringEnabled(), and m_IPFilteringConfigured.
Referenced by configure().
|
privateslot |
Definition at line 4230 of file session.cpp.
References configure(), and m_deferredConfigureScheduled.
Referenced by configureListeningInterface(), setAltGlobalDownloadSpeedLimit(), setAltGlobalUploadSpeedLimit(), setAnnounceIP(), setAnnounceToAllTiers(), setAnnounceToAllTrackers(), setAnonymousModeEnabled(), setAsyncIOThreads(), setBannedIPs(), setBlockPeersOnPrivilegedPorts(), setBTProtocol(), setCheckingMemUsage(), setChokingAlgorithm(), setCoalesceReadWriteEnabled(), setConnectionSpeed(), setDHTEnabled(), setDiskCacheSize(), setDiskCacheTTL(), setDownloadRateForSlowTorrents(), setEncryption(), setFilePoolSize(), setGlobalDownloadSpeedLimit(), setGlobalUploadSpeedLimit(), setHashingThreads(), setIDNSupportEnabled(), setIgnoreLimitsOnLAN(), setIgnoreSlowTorrentsForQueueing(), setIncludeOverheadInLimits(), setIPFilterFile(), setIPFilteringEnabled(), setLSDEnabled(), setMaxActiveDownloads(), setMaxActiveTorrents(), setMaxActiveUploads(), setMaxConcurrentHTTPAnnounces(), setMaxConnections(), setMaxUploads(), setMultiConnectionsPerIpEnabled(), setOutgoingPortsMax(), setOutgoingPortsMin(), setPeerToS(), setPeerTurnover(), setPeerTurnoverCutoff(), setPeerTurnoverInterval(), setPieceExtentAffinity(), setProxyPeerConnectionsEnabled(), setQueueingSystemEnabled(), setSeedChokingAlgorithm(), setSendBufferLowWatermark(), setSendBufferWatermark(), setSendBufferWatermarkFactor(), setSlowTorrentsInactivityTimer(), setSocketBacklogSize(), setSSRFMitigationEnabled(), setStopTrackerTimeout(), setSuggestMode(), setTrackerFilteringEnabled(), setUploadRateForSlowTorrents(), setUPnPLeaseDuration(), setUseOSCache(), setUtpMixedMode(), setUTPRateLimited(), and setValidateHTTPSTrackerCertificate().
|
private |
Definition at line 2590 of file session.cpp.
References configureDeferred(), and m_listenInterfaceConfigured.
Referenced by setNetworkInterface(), setNetworkInterfaceAddress(), and setPort().
|
private |
Definition at line 1421 of file session.cpp.
References asConst(), Utils::Net::canonicalIPv6Addr(), getListeningIPs(), Log::INFO, LogMsg(), m_listenInterfaceConfigured, port(), and Log::WARNING.
Referenced by loadLTSettings().
|
private |
Definition at line 1485 of file session.cpp.
References f(), ignoreLimitsOnLAN(), isUTPRateLimited(), m_nativeSession, and BitTorrent::LT::toUnderlyingType().
Referenced by configureComponents().
int Session::connectionSpeed | ( | ) | const |
Definition at line 3369 of file session.cpp.
References m_connectionSpeed.
Referenced by AdvancedSettings::loadAdvancedSettings(), and loadLTSettings().
|
private |
Definition at line 4588 of file session.cpp.
References exportTorrentFile(), BitTorrent::TorrentID::fromInfoHash(), isAddTrackersEnabled(), LogMsg(), BitTorrent::LoadTorrentParams::ltAddTorrentParams, m_additionalTrackerList, m_loadingTorrents, m_nativeSession, m_resumeDataStorage, m_seedingLimitTimer, m_torrents, BitTorrent::LoadTorrentParams::restored, BitTorrent::ResumeDataStorage::store(), torrentAdded(), torrentExportDirectory(), torrentLoaded(), and Log::WARNING.
Referenced by handleAddTorrentAlert().
void Session::decreaseTorrentsQueuePos | ( | const QVector< TorrentID > & | ids | ) |
Definition at line 1889 of file session.cpp.
References m_downloadedMetadata, m_nativeSession, m_torrents, BitTorrent::TorrentImpl::nativeHandle(), BitTorrent::TorrentImpl::queuePosition(), saveTorrentsQueue(), anonymous_namespace{session.cpp}::torrentQueuePositionBottom(), and anonymous_namespace{session.cpp}::torrentQueuePositionDown().
Referenced by TorrentsController::decreasePrioAction(), and TransferListWidget::decreaseQueuePosSelectedTorrents().
bool Session::deleteTorrent | ( | const TorrentID & | id, |
DeleteOption | deleteOption = DeleteTorrent |
||
) |
Definition at line 1792 of file session.cpp.
References DeleteTorrent, BitTorrent::Torrent::id(), m_moveStorageQueue, m_nativeSession, m_removingTorrents, m_resumeDataStorage, m_torrents, BitTorrent::TorrentImpl::name(), BitTorrent::TorrentImpl::nativeHandle(), BitTorrent::ResumeDataStorage::remove(), BitTorrent::TorrentImpl::rootPath(), torrentAboutToBeRemoved(), anonymous_namespace{session.cpp}::torrentQueuePositionBottom(), and Digest32< N >::toString().
Referenced by TorrentsController::deleteAction(), and processShareLimits().
|
private |
Definition at line 4258 of file session.cpp.
References m_filterParser, m_nativeSession, and processBannedIPs().
Referenced by configureComponents().
int Session::diskCacheSize | ( | ) | const |
Definition at line 3237 of file session.cpp.
References CachedSettingValue< T >::get(), and m_diskCacheSize.
Referenced by AdvancedSettings::loadAdvancedSettings(), and loadLTSettings().
int Session::diskCacheTTL | ( | ) | const |
Definition at line 3263 of file session.cpp.
References m_diskCacheTTL.
Referenced by AdvancedSettings::loadAdvancedSettings(), and loadLTSettings().
|
private |
Definition at line 4571 of file session.cpp.
References BitTorrent::TorrentImpl::handleAlert(), handleMetadataReceivedAlert(), and m_torrents.
Referenced by handleAlert(), and saveResumeData().
|
signal |
Referenced by RSS::AutoDownloader::AutoDownloader(), handleDownloadFinished(), and MainWindow::MainWindow().
|
signal |
Referenced by RSS::AutoDownloader::AutoDownloader(), and handleDownloadFinished().
bool Session::downloadMetadata | ( | const MagnetUri & | magnetUri | ) |
Definition at line 2283 of file session.cpp.
References BitTorrent::MagnetUri::addTorrentParams(), adjustLimits(), customStorageConstructor(), BitTorrent::TorrentID::fromInfoHash(), BitTorrent::MagnetUri::infoHash(), isPreallocationEnabled(), BitTorrent::MagnetUri::isValid(), m_downloadedMetadata, m_extraLimit, m_loadingTorrents, m_nativeSession, m_torrents, maxConnectionsPerTorrent(), maxUploadsPerTorrent(), BitTorrent::MagnetUri::name(), savePath(), Utils::Fs::tempPath(), Utils::Fs::toNativePath(), and anonymous_namespace{session.cpp}::toString().
Referenced by AddNewTorrentDialog::loadMagnet().
QString Session::downloadPath | ( | ) | const |
Definition at line 625 of file session.cpp.
References m_downloadPath.
Referenced by categoryDownloadPath(), findIncompleteFiles(), initLoadTorrentParams(), BitTorrent::TorrentImpl::setDownloadPath(), and startUpTorrents().
int Session::downloadRateForSlowTorrents | ( | ) | const |
Definition at line 3489 of file session.cpp.
References m_downloadRateForSlowTorrents.
Referenced by loadLTSettings().
int Session::downloadSpeedLimit | ( | ) | const |
Definition at line 2696 of file session.cpp.
References altGlobalDownloadSpeedLimit(), globalDownloadSpeedLimit(), and isAltGlobalSpeedLimitEnabled().
Referenced by TransferController::infoAction(), and StatusBar::updateSpeedLabels().
bool Session::editCategory | ( | const QString & | name, |
const CategoryOptions & | options | ||
) |
Definition at line 728 of file session.cpp.
References asConst(), isDisableAutoTMMWhenCategorySavePathChanged(), m_categories, m_torrents, and storeCategories().
|
private |
Definition at line 1578 of file session.cpp.
References BandwidthScheduler::bandwidthLimitRequested(), m_bwScheduler, and setAltGlobalSpeedLimitEnabled().
Referenced by setBandwidthSchedulerEnabled().