qBittorrent
|
#include <rss_item.h>
Signals | |
void | pathChanged (Item *item=nullptr) |
void | unreadCountChanged (Item *item=nullptr) |
void | aboutToBeDestroyed (Item *item=nullptr) |
void | newArticle (Article *article) |
void | articleRead (Article *article) |
void | articleAboutToBeRemoved (Article *article) |
Public Member Functions | |
virtual QList< Article * > | articles () const =0 |
virtual int | unreadCount () const =0 |
virtual void | markAsRead ()=0 |
virtual void | refresh ()=0 |
QString | path () const |
QString | name () const |
virtual QJsonValue | toJsonValue (bool withData=false) const =0 |
Static Public Member Functions | |
static bool | isValidPath (const QString &path) |
static QString | joinPath (const QString &path1, const QString &path2) |
static QStringList | expandPath (const QString &path) |
static QString | parentPath (const QString &path) |
static QString | relativeName (const QString &path) |
Static Public Attributes | |
static const QChar | PathSeparator |
Protected Member Functions | |
Item (const QString &path) | |
~Item () override | |
virtual void | cleanup ()=0 |
Private Member Functions | |
void | setPath (const QString &path) |
Private Attributes | |
QString | m_path |
Friends | |
class | Folder |
class | Session |
Definition at line 42 of file rss_item.h.
|
explicitprotected |
Definition at line 41 of file rss_item.cpp.
|
overrideprotected |
Definition at line 46 of file rss_item.cpp.
|
signal |
Referenced by RSS::Session::addItem(), RSS::Feed::~Feed(), and RSS::Folder::~Folder().
|
signal |
Referenced by RSS::Folder::addItem(), RSS::Folder::removeItem(), RSS::Feed::removeOldestArticle(), and ArticleListWidget::setRSSItem().
|
signal |
Referenced by RSS::Folder::addItem(), RSS::Feed::handleArticleRead(), RSS::Feed::markAsRead(), and ArticleListWidget::setRSSItem().
|
pure virtual |
Implemented in RSS::Folder, and RSS::Feed.
Referenced by RSS::Folder::addItem(), RSS::Folder::removeItem(), and ArticleListWidget::setRSSItem().
|
protectedpure virtual |
Implemented in RSS::Folder, and RSS::Feed.
|
static |
Definition at line 90 of file rss_item.cpp.
References path(), and PathSeparator.
Referenced by RSS::Session::loadLegacy().
|
static |
Definition at line 67 of file rss_item.cpp.
References path(), and PathSeparator.
Referenced by RSS::Session::prepareItemDest().
|
static |
Definition at line 82 of file rss_item.cpp.
References PathSeparator.
Referenced by RSS::Session::addFeedToFolder(), RSS::Session::addSubfolder(), RSSWidget::askNewFolder(), FeedListWidget::dropEvent(), RSS::Session::handleFeedTitleChanged(), RSS::Session::loadLegacy(), RSSWidget::on_newFeedButton_clicked(), and RSSWidget::renameSelectedRSSItem().
|
pure virtual |
Implemented in RSS::Folder, and RSS::Feed.
Referenced by RSSController::markAsReadAction(), and RSSWidget::on_markReadButton_clicked().
QString Item::name | ( | ) | const |
Definition at line 62 of file rss_item.cpp.
References path(), and relativeName().
Referenced by AutomatedRssDownloader::addFeedArticlesToTree(), FeedListWidget::createItem(), RSS::Session::handleFeedTitleChanged(), FeedListWidget::handleItemPathChanged(), FeedListWidget::handleItemUnreadCountChanged(), RSSWidget::loadFoldersOpenState(), RSSController::matchingArticlesAction(), and RSSWidget::renameSelectedRSSItem().
|
signal |
Referenced by RSS::Feed::addArticle(), RSS::Folder::addItem(), RSS::AutoDownloader::setProcessingEnabled(), ArticleListWidget::setRSSItem(), and RSS::AutoDownloader::startProcessing().
|
static |
Definition at line 108 of file rss_item.cpp.
References path(), and PathSeparator.
Referenced by RSS::Session::handleFeedTitleChanged(), FeedListWidget::handleItemAdded(), FeedListWidget::handleItemPathChanged(), RSS::Session::loadLegacy(), RSS::Session::moveItem(), RSS::Session::prepareItemDest(), RSS::Session::removeItem(), and RSSWidget::renameSelectedRSSItem().
QString Item::path | ( | ) | const |
Definition at line 57 of file rss_item.cpp.
References m_path.
Referenced by RSS::Session::addFeedToFolder(), RSS::Session::addItem(), RSS::Session::addSubfolder(), RSSWidget::askNewFolder(), FeedListWidget::dropEvent(), expandPath(), RSS::Session::handleFeedTitleChanged(), RSS::Session::handleItemAboutToBeDestroyed(), FeedListWidget::handleItemAdded(), FeedListWidget::handleItemPathChanged(), isValidPath(), FeedListWidget::itemPath(), RSS::Session::loadFolder(), RSS::Session::moveItem(), name(), RSSWidget::on_newFeedButton_clicked(), parentPath(), relativeName(), RSSWidget::renameSelectedRSSItem(), and setPath().
|
signal |
|
pure virtual |
Implemented in RSS::Folder, and RSS::Feed.
Referenced by RSSController::refreshItemAction(), and RSSWidget::refreshSelectedItems().
|
static |
Definition at line 114 of file rss_item.cpp.
References path(), and PathSeparator.
Referenced by RSS::Session::loadLegacy(), and name().
|
private |
Definition at line 48 of file rss_item.cpp.
References m_path, path(), and pathChanged().
Referenced by RSS::Session::moveItem().
|
pure virtual |
Implemented in RSS::Folder, and RSS::Feed.
|
pure virtual |
Implemented in RSS::Folder, and RSS::Feed.
Referenced by RSS::Folder::addItem(), FeedListWidget::createItem(), FeedListWidget::handleItemPathChanged(), FeedListWidget::handleItemUnreadCountChanged(), and RSS::Folder::removeItem().
|
signal |
Referenced by RSS::Folder::addItem(), FeedListWidget::createItem(), RSS::Feed::decreaseUnreadCount(), FeedListWidget::FeedListWidget(), RSS::Folder::handleItemUnreadCountChanged(), RSS::Feed::increaseUnreadCount(), RSS::Feed::markAsRead(), RSS::Folder::removeItem(), and RSSWidget::RSSWidget().
|
friend |
Definition at line 47 of file rss_item.h.
|
friend |
Definition at line 48 of file rss_item.h.
|
private |
Definition at line 86 of file rss_item.h.
|
static |
Definition at line 61 of file rss_item.h.
Referenced by expandPath(), isValidPath(), joinPath(), RSS::Session::loadLegacy(), parentPath(), and relativeName().