qBittorrent
|
#include <rss_folder.h>
Public Member Functions | |
QList< Article * > | articles () const override |
int | unreadCount () const override |
void | markAsRead () override |
void | refresh () override |
QList< Item * > | items () const |
QJsonValue | toJsonValue (bool withData=false) const override |
Public Member Functions inherited from RSS::Item | |
QString | path () const |
QString | name () const |
Private Slots | |
void | handleItemUnreadCountChanged () |
Private Member Functions | |
Folder (const QString &path="") | |
~Folder () override | |
void | cleanup () override |
void | addItem (Item *item) |
void | removeItem (Item *item) |
Private Attributes | |
QList< Item * > | m_items |
Friends | |
class | Session |
Additional Inherited Members | |
Signals inherited from RSS::Item | |
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) |
Static Public Member Functions inherited from RSS::Item | |
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 inherited from RSS::Item | |
static const QChar | PathSeparator |
Protected Member Functions inherited from RSS::Item | |
Item (const QString &path) | |
~Item () override | |
Definition at line 40 of file rss_folder.h.
|
explicitprivate |
Definition at line 43 of file rss_folder.cpp.
|
overrideprivate |
Definition at line 48 of file rss_folder.cpp.
References RSS::Item::aboutToBeDestroyed(), asConst(), and items().
|
private |
Definition at line 119 of file rss_folder.cpp.
References RSS::Item::articleAboutToBeRemoved(), RSS::Item::articleRead(), RSS::Item::articles(), asConst(), handleItemUnreadCountChanged(), m_items, RSS::Item::newArticle(), RSS::Item::unreadCount(), and RSS::Item::unreadCountChanged().
Referenced by RSS::Session::addItem().
|
overridevirtual |
Implements RSS::Item.
Definition at line 56 of file rss_folder.cpp.
References asConst(), and items().
|
overrideprivatevirtual |
|
privateslot |
Definition at line 108 of file rss_folder.cpp.
References RSS::Item::unreadCountChanged().
Referenced by addItem().
QList< Item * > Folder::items | ( | ) | const |
Definition at line 94 of file rss_folder.cpp.
References m_items.
Referenced by articles(), cleanup(), FeedListWidget::fill(), markAsRead(), refresh(), toJsonValue(), unreadCount(), and ~Folder().
|
overridevirtual |
|
overridevirtual |
Implements RSS::Item.
Definition at line 88 of file rss_folder.cpp.
References asConst(), and items().
Referenced by RSS::Session::refresh().
|
private |
Definition at line 137 of file rss_folder.cpp.
References RSS::Item::articleAboutToBeRemoved(), RSS::Item::articles(), asConst(), m_items, RSS::Item::unreadCount(), and RSS::Item::unreadCountChanged().
Referenced by RSS::Session::moveItem(), and RSS::Session::removeItem().
|
overridevirtual |
Implements RSS::Item.
Definition at line 99 of file rss_folder.cpp.
References asConst(), and items().
Referenced by RSSController::itemsAction().
|
overridevirtual |
Implements RSS::Item.
Definition at line 73 of file rss_folder.cpp.
References items().
|
friend |
Definition at line 45 of file rss_folder.h.
|
private |
Definition at line 68 of file rss_folder.h.
Referenced by addItem(), items(), and removeItem().