qBittorrent
|
#include <automatedrssdownloader.h>
Public Member Functions | |
AutomatedRssDownloader (QWidget *parent=nullptr) | |
~AutomatedRssDownloader () override | |
Private Slots | |
void | on_addRuleBtn_clicked () |
void | on_removeRuleBtn_clicked () |
void | on_addCategoryBtn_clicked () |
void | on_exportBtn_clicked () |
void | on_importBtn_clicked () |
void | handleRuleCheckStateChange (QListWidgetItem *ruleItem) |
void | handleFeedCheckStateChange (QListWidgetItem *feedItem) |
void | displayRulesListMenu () |
void | renameSelectedRule () |
void | updateRuleDefinitionBox () |
void | clearSelectedRuleDownloadedEpisodeList () |
void | updateFieldsToolTips (bool regex) |
void | updateMustLineValidity () |
void | updateMustNotLineValidity () |
void | updateEpisodeFilterValidity () |
void | handleRuleDefinitionChanged () |
void | handleRuleAdded (const QString &ruleName) |
void | handleRuleRenamed (const QString &ruleName, const QString &oldRuleName) |
void | handleRuleChanged (const QString &ruleName) |
void | handleRuleAboutToBeRemoved (const QString &ruleName) |
void | handleProcessingStateChanged (bool enabled) |
Private Member Functions | |
void | loadSettings () |
void | saveSettings () |
void | createRuleItem (const RSS::AutoDownloadRule &rule) |
void | initCategoryCombobox () |
void | clearRuleDefinitionBox () |
void | updateEditedRule () |
void | updateMatchingArticles () |
void | saveEditedRule () |
void | loadFeedList () |
void | updateFeedList () |
void | addFeedArticlesToTree (RSS::Feed *feed, const QStringList &articles) |
Private Attributes | |
const QString | m_formatFilterJSON |
const QString | m_formatFilterLegacy |
Ui::AutomatedRssDownloader * | m_ui |
QListWidgetItem * | m_currentRuleItem |
QSet< std::pair< QString, QString > > | m_treeListEntries |
RSS::AutoDownloadRule | m_currentRule |
QHash< QString, QListWidgetItem * > | m_itemsByRuleName |
QRegularExpression * | m_episodeRegex |
Definition at line 53 of file automatedrssdownloader.h.
|
explicit |
Definition at line 62 of file automatedrssdownloader.cpp.
References asConst(), createRuleItem(), FileSystemPathEdit::DirectorySave, displayRulesListMenu(), handleFeedCheckStateChange(), handleProcessingStateChanged(), handleRuleAboutToBeRemoved(), handleRuleAdded(), handleRuleChanged(), handleRuleCheckStateChange(), handleRuleDefinitionChanged(), handleRuleRenamed(), initCategoryCombobox(), RSS::AutoDownloader::instance(), UIThemeManager::instance(), loadFeedList(), loadSettings(), m_episodeRegex, m_ui, on_removeRuleBtn_clicked(), RSS::AutoDownloader::processingStateChanged(), renameSelectedRule(), RSS::AutoDownloader::ruleAboutToBeRemoved(), RSS::AutoDownloader::ruleAdded(), RSS::AutoDownloader::ruleChanged(), RSS::AutoDownloader::ruleRenamed(), updateEpisodeFilterValidity(), updateFieldsToolTips(), updateMustLineValidity(), updateMustNotLineValidity(), and updateRuleDefinitionBox().
|
override |
Definition at line 151 of file automatedrssdownloader.cpp.
References m_episodeRegex, m_ui, saveEditedRule(), and saveSettings().
|
private |
Definition at line 633 of file automatedrssdownloader.cpp.
References f(), UIThemeManager::instance(), m_treeListEntries, m_ui, RSS::Item::name(), and RSS::Feed::url().
Referenced by updateMatchingArticles().
|
private |
Definition at line 308 of file automatedrssdownloader.cpp.
References m_ui, updateEpisodeFilterValidity(), updateFieldsToolTips(), updateMustLineValidity(), and updateMustNotLineValidity().
Referenced by updateRuleDefinitionBox().
|
privateslot |
Definition at line 568 of file automatedrssdownloader.cpp.
References handleRuleDefinitionChanged(), m_currentRule, and RSS::AutoDownloadRule::setPreviouslyMatchedEpisodes().
Referenced by displayRulesListMenu().
|
private |
Definition at line 175 of file automatedrssdownloader.cpp.
References RSS::AutoDownloadRule::isEnabled(), m_itemsByRuleName, m_ui, and RSS::AutoDownloadRule::name().
Referenced by AutomatedRssDownloader(), and handleRuleAdded().
|
privateslot |
Definition at line 501 of file automatedrssdownloader.cpp.
References clearSelectedRuleDownloadedEpisodeList(), UIThemeManager::instance(), m_ui, on_addRuleBtn_clicked(), on_removeRuleBtn_clicked(), and renameSelectedRule().
Referenced by AutomatedRssDownloader().
|
privateslot |
Definition at line 583 of file automatedrssdownloader.cpp.
References asConst(), RSS::AutoDownloadRule::feedURLs(), handleRuleDefinitionChanged(), RSS::AutoDownloader::insertRule(), RSS::AutoDownloader::instance(), m_currentRule, m_currentRuleItem, m_ui, RSS::AutoDownloader::ruleByName(), and RSS::AutoDownloadRule::setFeedURLs().
Referenced by AutomatedRssDownloader().
|
privateslot |
Definition at line 855 of file automatedrssdownloader.cpp.
References m_ui.
Referenced by AutomatedRssDownloader().
|
privateslot |
Definition at line 849 of file automatedrssdownloader.cpp.
References m_currentRuleItem, and m_itemsByRuleName.
Referenced by AutomatedRssDownloader().
|
privateslot |
Definition at line 828 of file automatedrssdownloader.cpp.
References createRuleItem().
Referenced by AutomatedRssDownloader().
|
privateslot |
Definition at line 842 of file automatedrssdownloader.cpp.
References RSS::AutoDownloader::instance(), m_currentRuleItem, and m_itemsByRuleName.
Referenced by AutomatedRssDownloader().
|
privateslot |
Definition at line 563 of file automatedrssdownloader.cpp.
References m_ui.
Referenced by AutomatedRssDownloader().
|
privateslot |
Definition at line 822 of file automatedrssdownloader.cpp.
References updateEditedRule(), and updateMatchingArticles().
Referenced by AutomatedRssDownloader(), clearSelectedRuleDownloadedEpisodeList(), and handleFeedCheckStateChange().
|
privateslot |
Definition at line 833 of file automatedrssdownloader.cpp.
References m_currentRule, m_itemsByRuleName, RSS::AutoDownloadRule::name(), and RSS::AutoDownloadRule::setName().
Referenced by AutomatedRssDownloader().
|
private |
Definition at line 330 of file automatedrssdownloader.cpp.
References BitTorrent::Session::categories(), BitTorrent::Session::instance(), and m_ui.
Referenced by AutomatedRssDownloader().
|
private |
Definition at line 183 of file automatedrssdownloader.cpp.
References asConst(), RSS::Session::instance(), m_ui, and updateFeedList().
Referenced by AutomatedRssDownloader().
|
private |
Definition at line 161 of file automatedrssdownloader.cpp.
References Preferences::getRssGeometrySize(), Preferences::getRssHSplitterSizes(), Preferences::instance(), m_ui, and Utils::Gui::resize().
Referenced by AutomatedRssDownloader().
|
privateslot |
Definition at line 411 of file automatedrssdownloader.cpp.
References TorrentCategoryDialog::createCategory(), and m_ui.
|
privateslot |
Definition at line 374 of file automatedrssdownloader.cpp.
References AutoExpandableDialog::getText(), RSS::AutoDownloader::insertRule(), and RSS::AutoDownloader::instance().
Referenced by displayRulesListMenu().
|
privateslot |
Definition at line 422 of file automatedrssdownloader.cpp.
References RSS::AutoDownloader::exportRules(), EXT_JSON, EXT_LEGACY, RSS::AutoDownloader::instance(), RSS::AutoDownloader::JSON, RSS::AutoDownloader::Legacy, m_formatFilterJSON, m_formatFilterLegacy, and Utils::IO::saveToFile().
|
privateslot |
Definition at line 464 of file automatedrssdownloader.cpp.
References file(), RSS::AutoDownloader::importRules(), RSS::AutoDownloader::instance(), RSS::AutoDownloader::JSON, RSS::AutoDownloader::Legacy, m_formatFilterJSON, m_formatFilterLegacy, and Exception::message().
|
privateslot |
Definition at line 394 of file automatedrssdownloader.cpp.
References RSS::AutoDownloader::instance(), m_ui, and RSS::AutoDownloader::removeRule().
Referenced by AutomatedRssDownloader(), and displayRulesListMenu().
|
privateslot |
Definition at line 535 of file automatedrssdownloader.cpp.
References AutoExpandableDialog::getText(), RSS::AutoDownloader::instance(), m_ui, and RSS::AutoDownloader::renameRule().
Referenced by AutomatedRssDownloader(), and displayRulesListMenu().
|
private |
Definition at line 366 of file automatedrssdownloader.cpp.
References RSS::AutoDownloader::insertRule(), RSS::AutoDownloader::instance(), m_currentRule, m_currentRuleItem, m_ui, and updateEditedRule().
Referenced by updateRuleDefinitionBox(), and ~AutomatedRssDownloader().
|
private |
Definition at line 168 of file automatedrssdownloader.cpp.
References Preferences::instance(), m_ui, Preferences::setRssGeometrySize(), and Preferences::setRssHSplitterSizes().
Referenced by ~AutomatedRssDownloader().
|
private |
Definition at line 339 of file automatedrssdownloader.cpp.
References m_currentRule, m_currentRuleItem, m_ui, RSS::AutoDownloadRule::setAddPaused(), RSS::AutoDownloadRule::setCategory(), RSS::AutoDownloadRule::setEnabled(), RSS::AutoDownloadRule::setEpisodeFilter(), RSS::AutoDownloadRule::setIgnoreDays(), RSS::AutoDownloadRule::setMustContain(), RSS::AutoDownloadRule::setMustNotContain(), RSS::AutoDownloadRule::setSavePath(), RSS::AutoDownloadRule::setTorrentContentLayout(), RSS::AutoDownloadRule::setUseRegex(), and RSS::AutoDownloadRule::setUseSmartFilter().
Referenced by handleRuleDefinitionChanged(), and saveEditedRule().
|
privateslot |
Definition at line 805 of file automatedrssdownloader.cpp.
References UIThemeManager::instance(), m_episodeRegex, and m_ui.
Referenced by AutomatedRssDownloader(), clearRuleDefinitionBox(), and updateRuleDefinitionBox().
|
private |
Definition at line 197 of file automatedrssdownloader.cpp.
References asConst(), RSS::AutoDownloader::instance(), m_currentRuleItem, m_ui, and RSS::AutoDownloader::ruleByName().
Referenced by loadFeedList(), and updateRuleDefinitionBox().
|
privateslot |
Definition at line 682 of file automatedrssdownloader.cpp.
References m_ui.
Referenced by AutomatedRssDownloader(), clearRuleDefinitionBox(), and updateRuleDefinitionBox().
|
private |
Definition at line 607 of file automatedrssdownloader.cpp.
References addFeedArticlesToTree(), asConst(), RSS::Session::feedByURL(), RSS::AutoDownloadRule::feedURLs(), RSS::AutoDownloader::instance(), RSS::Session::instance(), m_currentRule, m_currentRuleItem, m_treeListEntries, m_ui, RSS::AutoDownloadRule::matches(), RSS::AutoDownloader::ruleByName(), and RSS::Feed::title().
Referenced by handleRuleDefinitionChanged(), and updateRuleDefinitionBox().
|
privateslot |
Definition at line 711 of file automatedrssdownloader.cpp.
References asConst(), UIThemeManager::instance(), m_ui, and Utils::String::wildcardToRegexPattern().
Referenced by AutomatedRssDownloader(), clearRuleDefinitionBox(), and updateRuleDefinitionBox().
|
privateslot |
Definition at line 758 of file automatedrssdownloader.cpp.
References asConst(), UIThemeManager::instance(), m_ui, and Utils::String::wildcardToRegexPattern().
Referenced by AutomatedRssDownloader(), clearRuleDefinitionBox(), and updateRuleDefinitionBox().
|
privateslot |
Definition at line 241 of file automatedrssdownloader.cpp.
References RSS::AutoDownloadRule::addPaused(), RSS::AutoDownloadRule::assignedCategory(), clearRuleDefinitionBox(), RSS::AutoDownloadRule::episodeFilter(), RSS::AutoDownloadRule::ignoreDays(), RSS::AutoDownloader::instance(), RSS::AutoDownloadRule::lastMatch(), m_currentRule, m_currentRuleItem, m_ui, RSS::AutoDownloadRule::mustContain(), RSS::AutoDownloadRule::mustNotContain(), RSS::AutoDownloader::ruleByName(), saveEditedRule(), RSS::AutoDownloadRule::savePath(), Utils::Fs::toNativePath(), RSS::AutoDownloadRule::torrentContentLayout(), updateEpisodeFilterValidity(), updateFeedList(), updateFieldsToolTips(), updateMatchingArticles(), updateMustLineValidity(), updateMustNotLineValidity(), RSS::AutoDownloadRule::useRegex(), and RSS::AutoDownloadRule::useSmartFilter().
Referenced by AutomatedRssDownloader().
|
private |
Definition at line 106 of file automatedrssdownloader.h.
Referenced by clearSelectedRuleDownloadedEpisodeList(), handleFeedCheckStateChange(), handleRuleRenamed(), saveEditedRule(), updateEditedRule(), updateMatchingArticles(), and updateRuleDefinitionBox().
|
private |
Definition at line 104 of file automatedrssdownloader.h.
Referenced by handleFeedCheckStateChange(), handleRuleAboutToBeRemoved(), handleRuleChanged(), saveEditedRule(), updateEditedRule(), updateFeedList(), updateMatchingArticles(), and updateRuleDefinitionBox().
|
private |
Definition at line 108 of file automatedrssdownloader.h.
Referenced by AutomatedRssDownloader(), updateEpisodeFilterValidity(), and ~AutomatedRssDownloader().
|
private |
Definition at line 100 of file automatedrssdownloader.h.
Referenced by on_exportBtn_clicked(), and on_importBtn_clicked().
|
private |
Definition at line 101 of file automatedrssdownloader.h.
Referenced by on_exportBtn_clicked(), and on_importBtn_clicked().
|
private |
Definition at line 107 of file automatedrssdownloader.h.
Referenced by createRuleItem(), handleRuleAboutToBeRemoved(), handleRuleChanged(), and handleRuleRenamed().
|
private |
Definition at line 105 of file automatedrssdownloader.h.
Referenced by addFeedArticlesToTree(), and updateMatchingArticles().
|
private |
Definition at line 103 of file automatedrssdownloader.h.
Referenced by addFeedArticlesToTree(), AutomatedRssDownloader(), clearRuleDefinitionBox(), createRuleItem(), displayRulesListMenu(), handleFeedCheckStateChange(), handleProcessingStateChanged(), handleRuleCheckStateChange(), initCategoryCombobox(), loadFeedList(), loadSettings(), on_addCategoryBtn_clicked(), on_removeRuleBtn_clicked(), renameSelectedRule(), saveEditedRule(), saveSettings(), updateEditedRule(), updateEpisodeFilterValidity(), updateFeedList(), updateFieldsToolTips(), updateMatchingArticles(), updateMustLineValidity(), updateMustNotLineValidity(), updateRuleDefinitionBox(), and ~AutomatedRssDownloader().