akregator/src
Akregator::Feed Class Reference
#include <feed.h>
Inheritance diagram for Akregator::Feed:

Detailed Description
represents a feed
Definition at line 62 of file feed.h.
Public Types | |
enum | ArchiveMode { globalDefault, keepAllArticles, disableArchiving, limitArticleNumber, limitArticleAge } |
Public Slots | |
void | fetch (bool followDiscovery=false) |
void | slotAbortFetch () |
virtual void | slotDeleteExpiredArticles () |
virtual void | slotMarkAllArticlesAsRead () |
virtual void | slotAddToFetchQueue (FetchQueue *queue, bool intervalFetchOnly=false) |
Signals | |
void | fetchStarted (Feed *) |
void | fetched (Feed *) |
void | fetchError (Feed *) |
void | fetchDiscovery (Feed *) |
void | fetchAborted (Feed *) |
Public Member Functions | |
Feed () | |
virtual | ~Feed () |
virtual bool | accept (TreeNodeVisitor *visitor) |
virtual QDomElement | toOPML (QDomElement parent, QDomDocument document) const |
bool | useCustomFetchInterval () const |
void | setCustomFetchIntervalEnabled (bool enabled) |
int | fetchInterval () const |
void | setFetchInterval (int interval) |
ArchiveMode | archiveMode () const |
void | setArchiveMode (ArchiveMode archiveMode) |
int | maxArticleAge () const |
void | setMaxArticleAge (int maxArticleAge) |
int | maxArticleNumber () const |
void | setMaxArticleNumber (int maxArticleNumber) |
bool | markImmediatelyAsRead () const |
void | setMarkImmediatelyAsRead (bool enabled) |
void | setUseNotification (bool enabled) |
bool | useNotification () const |
void | setLoadLinkedWebsite (bool enabled) |
bool | loadLinkedWebsite () const |
const QPixmap & | favicon () const |
void | setFavicon (const QPixmap &p) |
const QPixmap & | image () const |
const QString & | xmlUrl () const |
void | setXmlUrl (const QString &s) |
const QString & | htmlUrl () const |
void | setHtmlUrl (const QString &s) |
const QString & | description () const |
void | setDescription (const QString &s) |
virtual QValueList< Article > | articles (const QString &tag=QString::null) |
virtual Article | findArticle (const QString &guid) const |
virtual QStringList | tags () const |
bool | fetchErrorOccurred () |
virtual int | unread () const |
virtual int | totalCount () const |
bool | isArticlesLoaded () const |
virtual bool | isGroup () const |
virtual TreeNode * | next () |
void | loadFavicon () |
void | loadImage () |
Static Public Member Functions | |
static ArchiveMode | stringToArchiveMode (const QString &str) |
static QString | archiveModeToString (ArchiveMode mode) |
static Feed * | fromOPML (QDomElement e) |
Protected Member Functions | |
void | loadArticles () |
void | recalcUnreadCount () |
virtual void | doArticleNotification () |
void | setUnread (int unread) |
Friends | |
class | Article |
Member Enumeration Documentation
|
the archiving modes:
|
Constructor & Destructor Documentation
|
default constructor
|
Member Function Documentation
|
returns the archiving mode which is used for this feed
|
|
converts ArchiveMode values to corresponding strings
|
|
Returns a sequence of the articles this node contains.
For feed groups, this returns a concatenated list of all articles in the sub tree. If
Implements Akregator::TreeNode. |
|
returns the description of this feed
|
|
reimplement this in subclasses to do the actual notification called by articlesModified
Reimplemented from Akregator::TreeNode. |
|
returns the favicon
|
|
starts fetching
|
|
emitted when a fetch is aborted
|
|
emitted when a feed URL was found by auto discovery
|
|
emitted when feed finished fetching
|
|
emitted when a fetch error occurred
|
|
returns whether a fetch error has occurred
|
|
Returns custom auto fetch interval of this feed.
|
|
emitted when fetching started
|
|
returns the article with the given
|
|
creates a Feed object from a description in OPML format
|
|
returns the URL of the HTML page of this feed
|
|
returns the feed image
|
|
returns if the article archive of this feed is loaded
|
|
returns if this node is a feed group (
Implements Akregator::TreeNode. |
|
loads articles from archive
|
|
downloads the favicon
|
|
load the image from the cache if it is in there
|
|
if Useful for high-traffic feeds. |
|
returns the maximum age of articles used for expiration by age (used in
|
|
returns the article count limit used in
|
|
returns the next node in the tree. Calling next() unless it returns 0 iterates through the tree in pre-order Implements Akregator::TreeNode. |
|
sets the archiving mode for this feed
|
|
set if the feed has its custom fetch interval or uses the global setting
|
|
sets the description of this feed
|
|
sets the favicon (used in the tree view)
|
|
Sets custom auto fetch interval.
|
|
sets the URL of the HTML page of this feed
|
|
if true, the linked URL is loaded directly in the article viewer instead of showing the description
|
|
sets the maximum age of articles used for expiration by age (used in
|
|
sets the article count limit used in
|
|
sets the unread count for this feed
|
|
sets the url of the actual feed source (rss/rdf/atom file)
|
|
add this feed to the fetch queue
Implements Akregator::TreeNode. |
|
deletes expired articles
Implements Akregator::TreeNode. |
|
mark all articles in this feed as read
Implements Akregator::TreeNode. |
|
converts strings to ArchiveMode value if parsing fails, it returns ArchiveMode::globalDefault
|
|
returns a list of all tags occurring in this node (sub tree for folders)
Implements Akregator::TreeNode. |
|
exports the feed settings to OPML
Implements Akregator::TreeNode. |
|
returns the number of total articles in this feed
Implements Akregator::TreeNode. |
|
returns the unread count for this feed
Implements Akregator::TreeNode. |
|
returns whether this feed uses its own fetch interval or the global setting
|
|
returns the url of the actual feed source (rss/rdf/atom file)
|
The documentation for this class was generated from the following files: