qBittorrent
|
#include <torrentoptionsdialog.h>
Public Slots | |
void | accept () override |
Public Member Functions | |
TorrentOptionsDialog (QWidget *parent, const QVector< BitTorrent::Torrent * > &torrents) | |
~TorrentOptionsDialog () override | |
Private Slots | |
void | handleCategoryChanged (int index) |
void | handleTMMChanged () |
void | handleUseDownloadPathChanged () |
void | handleUpSpeedLimitChanged () |
void | handleDownSpeedLimitChanged () |
void | handleRatioTypeChanged () |
Private Member Functions | |
qreal | getRatio () const |
int | getSeedingTime () const |
Private Attributes | |
QVector< BitTorrent::TorrentID > | m_torrentIDs |
Ui::TorrentOptionsDialog * | m_ui |
SettingValue< QSize > | m_storeDialogSize |
QStringList | m_categories |
QString | m_currentCategoriesString |
bool | m_allSameCategory = true |
QAbstractButton * | m_previousRadio = nullptr |
struct { | |
QString savePath | |
QString downloadPath | |
QString category | |
qreal ratio | |
int seedingTime | |
int upSpeedLimit | |
int downSpeedLimit | |
Qt::CheckState autoTMM | |
Qt::CheckState useDownloadPath | |
Qt::CheckState disableDHT | |
Qt::CheckState disablePEX | |
Qt::CheckState disableLSD | |
Qt::CheckState sequential | |
Qt::CheckState firstLastPieces | |
} | m_initialValues |
Definition at line 50 of file torrentoptionsdialog.h.
|
explicit |
Definition at line 62 of file torrentoptionsdialog.cpp.
References asConst(), C_INEQUALITY, category, FileSystemPathEdit::DirectorySave, getRatio(), getSeedingTime(), handleCategoryChanged(), handleDownSpeedLimitChanged(), handleRatioTypeChanged(), handleTMMChanged(), handleUpSpeedLimitChanged(), handleUseDownloadPathChanged(), BitTorrent::Session::instance(), m_allSameCategory, m_categories, m_currentCategoriesString, m_initialValues, m_storeDialogSize, m_torrentIDs, m_ui, BitTorrent::Torrent::NO_RATIO_LIMIT, BitTorrent::Torrent::NO_SEEDING_TIME_LIMIT, Utils::Gui::resize(), anonymous_namespace{preferences.cpp}::setValue(), BitTorrent::Torrent::USE_GLOBAL_RATIO, BitTorrent::Torrent::USE_GLOBAL_SEEDING_TIME, and anonymous_namespace{preferences.cpp}::value().
|
override |
Definition at line 396 of file torrentoptionsdialog.cpp.
References m_storeDialogSize, and m_ui.
|
overrideslot |
Definition at line 402 of file torrentoptionsdialog.cpp.
References asConst(), category, downloadPath, Utils::Fs::expandPathAbs(), getRatio(), getSeedingTime(), BitTorrent::Session::instance(), BitTorrent::Torrent::isPrivate(), m_categories, m_initialValues, m_torrentIDs, m_ui, savePath, BitTorrent::Torrent::setAutoTMMEnabled(), BitTorrent::Torrent::setCategory(), BitTorrent::Torrent::setDHTDisabled(), BitTorrent::Torrent::setDownloadLimit(), BitTorrent::Torrent::setDownloadPath(), BitTorrent::Torrent::setFirstLastPiecePriority(), BitTorrent::Torrent::setLSDDisabled(), BitTorrent::Torrent::setPEXDisabled(), BitTorrent::Torrent::setRatioLimit(), BitTorrent::Torrent::setSavePath(), BitTorrent::Torrent::setSeedingTimeLimit(), BitTorrent::Torrent::setSequentialDownload(), and BitTorrent::Torrent::setUploadLimit().
|
private |
Definition at line 480 of file torrentoptionsdialog.cpp.
References m_ui, anonymous_namespace{torrentoptionsdialog.cpp}::MIXED_SHARE_LIMITS, BitTorrent::Torrent::NO_RATIO_LIMIT, and BitTorrent::Torrent::USE_GLOBAL_RATIO.
Referenced by accept(), and TorrentOptionsDialog().
|
private |
Definition at line 494 of file torrentoptionsdialog.cpp.
References m_ui, anonymous_namespace{torrentoptionsdialog.cpp}::MIXED_SHARE_LIMITS, BitTorrent::Torrent::NO_SEEDING_TIME_LIMIT, and BitTorrent::Torrent::USE_GLOBAL_SEEDING_TIME.
Referenced by accept(), and TorrentOptionsDialog().
|
privateslot |
Definition at line 508 of file torrentoptionsdialog.cpp.
References BitTorrent::Session::categorySavePath(), BitTorrent::Session::instance(), m_allSameCategory, m_currentCategoriesString, m_ui, savePath, and Utils::Fs::toNativePath().
Referenced by TorrentOptionsDialog().
|
privateslot |
Definition at line 612 of file torrentoptionsdialog.cpp.
References C_INFINITY, and m_ui.
Referenced by TorrentOptionsDialog().
|
privateslot |
Definition at line 582 of file torrentoptionsdialog.cpp.
References m_initialValues, m_previousRadio, m_ui, and anonymous_namespace{torrentoptionsdialog.cpp}::MIXED_SHARE_LIMITS.
Referenced by TorrentOptionsDialog().
|
privateslot |
Definition at line 536 of file torrentoptionsdialog.cpp.
References BitTorrent::Session::categoryDownloadPath(), BitTorrent::Session::categorySavePath(), downloadPath, BitTorrent::Session::instance(), m_allSameCategory, m_initialValues, m_ui, savePath, and Utils::Fs::toNativePath().
Referenced by TorrentOptionsDialog().
|
privateslot |
Definition at line 604 of file torrentoptionsdialog.cpp.
References C_INFINITY, and m_ui.
Referenced by TorrentOptionsDialog().
|
privateslot |
Definition at line 574 of file torrentoptionsdialog.cpp.
References downloadPath, BitTorrent::Session::instance(), and m_ui.
Referenced by TorrentOptionsDialog().
Qt::CheckState TorrentOptionsDialog::autoTMM |
Definition at line 92 of file torrentoptionsdialog.h.
QString TorrentOptionsDialog::category |
Definition at line 87 of file torrentoptionsdialog.h.
Referenced by accept(), and TorrentOptionsDialog().
Qt::CheckState TorrentOptionsDialog::disableDHT |
Definition at line 94 of file torrentoptionsdialog.h.
Qt::CheckState TorrentOptionsDialog::disableLSD |
Definition at line 96 of file torrentoptionsdialog.h.
Qt::CheckState TorrentOptionsDialog::disablePEX |
Definition at line 95 of file torrentoptionsdialog.h.
QString TorrentOptionsDialog::downloadPath |
Definition at line 86 of file torrentoptionsdialog.h.
Referenced by accept(), handleTMMChanged(), and handleUseDownloadPathChanged().
int TorrentOptionsDialog::downSpeedLimit |
Definition at line 91 of file torrentoptionsdialog.h.
Qt::CheckState TorrentOptionsDialog::firstLastPieces |
Definition at line 98 of file torrentoptionsdialog.h.
|
private |
Definition at line 81 of file torrentoptionsdialog.h.
Referenced by handleCategoryChanged(), handleTMMChanged(), and TorrentOptionsDialog().
|
private |
Definition at line 79 of file torrentoptionsdialog.h.
Referenced by accept(), and TorrentOptionsDialog().
|
private |
Definition at line 80 of file torrentoptionsdialog.h.
Referenced by handleCategoryChanged(), and TorrentOptionsDialog().
struct { ... } TorrentOptionsDialog::m_initialValues |
Referenced by accept(), handleRatioTypeChanged(), handleTMMChanged(), and TorrentOptionsDialog().
|
private |
Definition at line 82 of file torrentoptionsdialog.h.
Referenced by handleRatioTypeChanged().
|
private |
Definition at line 78 of file torrentoptionsdialog.h.
Referenced by TorrentOptionsDialog(), and ~TorrentOptionsDialog().
|
private |
Definition at line 76 of file torrentoptionsdialog.h.
Referenced by accept(), and TorrentOptionsDialog().
|
private |
Definition at line 77 of file torrentoptionsdialog.h.
Referenced by accept(), getRatio(), getSeedingTime(), handleCategoryChanged(), handleDownSpeedLimitChanged(), handleRatioTypeChanged(), handleTMMChanged(), handleUpSpeedLimitChanged(), handleUseDownloadPathChanged(), TorrentOptionsDialog(), and ~TorrentOptionsDialog().
qreal TorrentOptionsDialog::ratio |
Definition at line 88 of file torrentoptionsdialog.h.
QString TorrentOptionsDialog::savePath |
Definition at line 85 of file torrentoptionsdialog.h.
Referenced by accept(), handleCategoryChanged(), and handleTMMChanged().
int TorrentOptionsDialog::seedingTime |
Definition at line 89 of file torrentoptionsdialog.h.
Qt::CheckState TorrentOptionsDialog::sequential |
Definition at line 97 of file torrentoptionsdialog.h.
int TorrentOptionsDialog::upSpeedLimit |
Definition at line 90 of file torrentoptionsdialog.h.
Qt::CheckState TorrentOptionsDialog::useDownloadPath |
Definition at line 93 of file torrentoptionsdialog.h.