qBittorrent
global.h File Reference
#include <type_traits>
#include <QtGlobal>
Include dependency graph for global.h:

Go to the source code of this file.

Functions

template<typename T >
constexpr std::add_const_t< T > & asConst (T &t) noexcept
 
template<typename T >
constexpr std::add_const_t< T > asConst (T &&t) noexcept
 
template<typename T >
void asConst (const T &&)=delete
 

Variables

const char C_TORRENT_FILE_EXTENSION [] = ".torrent"
 
const int MAX_TORRENT_SIZE = 100 * 1024 * 1024
 

Function Documentation

◆ asConst() [1/3]

template<typename T >
void asConst ( const T &&  )
delete

◆ asConst() [2/3]

template<typename T >
constexpr std::add_const_t<T> asConst ( T &&  t)
constexprnoexcept

Definition at line 46 of file global.h.

46 { return std::move(t); }

◆ asConst() [3/3]

template<typename T >
constexpr std::add_const_t<T>& asConst ( T &  t)
constexprnoexcept

Definition at line 42 of file global.h.

42 { return t; }

Referenced by TorrentOptionsDialog::accept(), TorrentsController::addAction(), BitTorrent::Session::addCategory(), RSS::Folder::addItem(), AddNewTorrentDialog::AddNewTorrentDialog(), TorrentsController::addTrackersAction(), WatchedFoldersModel::apply(), TransferListWidget::applyToSelectedTorrents(), anonymous_namespace{torrentscontroller.cpp}::applyToTorrents(), RSS::Folder::articles(), TrackerListWidget::askForTrackers(), AutomatedRssDownloader::AutomatedRssDownloader(), SearchController::checkForUpdatesFinished(), TorrentContentModelFolder::childFolderWithName(), RSS::Folder::cleanup(), anonymous_namespace{searchpluginmanager.cpp}::clearPythonCache(), BitTorrent::Session::configureNetworkInterfaces(), anonymous_namespace{downloadmanager.cpp}::NetworkCookieJar::cookiesForUrl(), RSSWidget::copySelectedFeedsURL(), TransferListWidget::copySelectedIDs(), TransferListWidget::copySelectedMagnetURIs(), TransferListWidget::copySelectedNames(), anonymous_namespace{settingsstorage.cpp}::TransactionalSettings::deserialize(), RSSWidget::displayItemsListMenu(), TransferListWidget::displayListMenu(), RSSWidget::downloadSelectedTorrents(), MainWindow::dragEnterEvent(), PluginSelectDialog::dragEnterEvent(), MainWindow::dropEvent(), FeedListWidget::dropEvent(), PluginSelectDialog::dropEvent(), BitTorrent::Session::editCategory(), TransferListWidget::editTorrentTrackers(), SearchPluginManager::enabledPlugins(), PluginSelectDialog::enableSelection(), Net::Smtp::encodeMimeHeader(), MainWindow::event(), anonymous_namespace{session.cpp}::expandCategories(), RSS::AutoDownloader::exportRulesToJSONFormat(), RSS::AutoDownloader::exportRulesToLegacyFormat(), FileLogger::FileLogger(), BitTorrent::TorrentImpl::filePriorities(), TorrentsController::filesAction(), FeedListWidget::fill(), SearchWidget::fillCatCombobox(), SearchWidget::fillPluginComboBox(), SearchSortModel::filterAcceptsRow(), CategoryFilterModel::findItem(), TransferListWidget::forceStartSelectedTorrents(), RSS::AutoDownloadRule::fromJsonObject(), BitTorrent::Session::generateResumeData(), TorrentContentModel::getFilePriorities(), SearchPluginManager::getPluginCategories(), anonymous_namespace{torrentscontroller.cpp}::getStickyTrackers(), AutomatedRssDownloader::handleFeedCheckStateChange(), BitTorrent::Session::handleTorrentFinished(), BitTorrent::Session::handleTorrentNeedSaveResumeData(), PluginSelectDialog::iconDownloadFinished(), RSS::AutoDownloader::importRulesFromJSONFormat(), RSS::AutoDownloader::importRulesFromLegacyFormat(), TorrentsController::infoAction(), IPSubnetWhitelistOptionsDialog::IPSubnetWhitelistOptionsDialog(), AdvancedSettings::loadAdvancedSettings(), RSS::Feed::loadArticlesLegacy(), AutomatedRssDownloader::loadFeedList(), RSS::Session::loadFolder(), RSSWidget::loadFoldersOpenState(), RSS::Session::loadLegacy(), PeerListWidget::loadPeers(), OptionsDialog::loadSplitterState(), TrackerListWidget::loadStickyItems(), PluginSelectDialog::loadSupportedSearchPlugins(), TrackerListWidget::loadTrackers(), LogPeerModel::LogPeerModel(), LogController::mainAction(), SyncController::maindataAction(), MainWindow::MainWindow(), RSS::Feed::markAsRead(), RSS::Folder::markAsRead(), anonymous_namespace{downloadmanager.cpp}::NetworkCookieJar::NetworkCookieJar(), AppController::networkInterfaceAddressListAction(), AppController::networkInterfaceListAction(), TrackersAdditionDialog::newTrackers(), PluginSelectDialog::on_actionUninstall_triggered(), IPSubnetWhitelistOptionsDialog::on_buttonDeleteIPSubnet_clicked(), RSSWidget::on_markReadButton_clicked(), CookiesDialog::onButtonDeleteClicked(), TorrentFilesWatcher::Worker::onTimeout(), RSSWidget::openSelectedArticlesUrls(), TransferListWidget::openSelectedTorrentsFolder(), OptionsDialog::OptionsDialog(), SpeedPlotView::paintEvent(), Http::RequestParser::parseRequestLine(), TransferListWidget::pauseAllTorrents(), TransferListWidget::pauseSelectedTorrents(), TransferListWidget::pauseVisibleTorrents(), LogController::peersAction(), CategoryFilterModel::populate(), TagFilterModel::populate(), BitTorrent::Session::populateAdditionalTrackers(), AppController::preferencesAction(), BitTorrent::Tracker::prepareAnnounceResponse(), TransferListWidget::previewSelectedTorrents(), BitTorrent::Session::processBannedIPs(), WebApplication::processRequest(), PropTabBar::PropTabBar(), SearchHandler::readSearchOutput(), TransferListWidget::reannounceSelectedTorrents(), TorrentContentModelFolder::recalculateAvailability(), TorrentContentModelFolder::recalculateProgress(), TransferListWidget::recheckSelectedTorrents(), BitTorrent::Session::recursiveTorrentDownload(), RSS::Folder::refresh(), RSSWidget::refreshSelectedItems(), BitTorrent::TorrentImpl::removeAllTags(), BitTorrent::Session::removeCategory(), RSS::Folder::removeItem(), BitTorrent::Session::removeTag(), CategoryFilterWidget::removeUnusedCategories(), TagFilterWidget::removeUnusedTags(), RSS::AutoDownloader::resetProcessingQueue(), TransferListWidget::resumeAllTorrents(), BitTorrent::TorrentCreatorThread::run(), RSSWidget::saveFoldersOpenState(), BitTorrent::Session::saveTorrentsQueue(), BitTorrent::Session::setAppendExtensionEnabled(), BitTorrent::Session::setDownloadPath(), BitTorrent::Session::setDownloadPathEnabled(), TorrentContentModelFolder::setPriority(), ArticleListWidget::setRSSItem(), BitTorrent::Session::setSavePath(), TransferListWidget::setSelectedAutoTMMEnabled(), TransferListWidget::setSelectedTorrentsSuperSeeding(), TransferListWidget::setSelectionCategory(), TorrentContentModel::setupModelData(), Utils::Fs::smartRemoveEmptyFolderTree(), TransferListWidget::startSelectedTorrents(), TransferListWidget::startVisibleTorrents(), RSS::AutoDownloader::store(), RSS::Feed::store(), SearchPluginManager::supportedCategories(), TorrentsController::tagsAction(), RSS::Feed::toJsonValue(), RSS::Folder::toJsonValue(), TagFilterModel::torrentAboutToBeRemoved(), anonymous_namespace{transferlistwidget.cpp}::torrentContainsPreviewableFiles(), TorrentOptionsDialog::TorrentOptionsDialog(), BitTorrent::Session::torrents(), TorrentsController::trackersAction(), AutomatedRssDownloader::updateFeedList(), AdvancedSettings::updateInterfaceAddressCombo(), AutomatedRssDownloader::updateMatchingArticles(), AutomatedRssDownloader::updateMustLineValidity(), AutomatedRssDownloader::updateMustNotLineValidity(), PeersAdditionDialog::validateInput(), WatchedFolderOptionsDialog::WatchedFolderOptionsDialog(), TorrentsController::webseedsAction(), wrapText(), RSS::Folder::~Folder(), anonymous_namespace{downloadmanager.cpp}::NetworkCookieJar::~NetworkCookieJar(), OptionsDialog::~OptionsDialog(), and TrackerFiltersList::~TrackerFiltersList().

Variable Documentation

◆ C_TORRENT_FILE_EXTENSION

◆ MAX_TORRENT_SIZE

const int MAX_TORRENT_SIZE = 100 * 1024 * 1024
inline