feed.h
76 enum ArchiveMode { globalDefault, keepAllArticles, disableArchiving, limitArticleNumber, limitArticleAge };
A proxy class for RSS::Article with some additional methods to assist sorting.
Definition: article.h:58
void setArchiveMode(ArchiveMode archiveMode)
sets the archiving mode for this feed
Definition: feed.cpp:707
virtual TQValueList< Article > articles(const TQString &tag=TQString())
Returns a sequence of the articles this node contains.
Definition: feed.cpp:192
bool markImmediatelyAsRead() const
if true, new articles are marked immediately as read instead of new/unread.
Definition: feed.cpp:318
virtual int totalCount() const
returns the number of total articles in this feed
Definition: feed.cpp:752
void setLoadLinkedWebsite(bool enabled)
if true, the linked URL is loaded directly in the article viewer instead of showing the description
Definition: feed.cpp:337
void fetchDiscovery(Feed *)
emitted when a feed URL was found by auto discovery
void setMaxArticleAge(int maxArticleAge)
sets the maximum age of articles used for expiration by age (used in limitArticleAge archive mode)
Definition: feed.cpp:312
virtual void doArticleNotification()
reimplement this in subclasses to do the actual notification called by articlesModified
Definition: feed.cpp:773
virtual void slotAddToFetchQueue(FetchQueue *queue, bool intervalFetchOnly=false)
add this feed to the fetch queue queue
Definition: feed.cpp:409
void setMaxArticleNumber(int maxArticleNumber)
sets the article count limit used in limitArticleNumber archive mode
Definition: feed.cpp:316
static TQString archiveModeToString(ArchiveMode mode)
converts ArchiveMode values to corresponding strings
Definition: feed.cpp:104
int maxArticleAge() const
returns the maximum age of articles used for expiration by age (used in limitArticleAge archive mode)
Definition: feed.cpp:310
bool isArticlesLoaded() const
returns if the article archive of this feed is loaded
Definition: feed.cpp:365
static Feed * fromOPML(TQDomElement e)
creates a Feed object from a description in OPML format
Definition: feed.cpp:125
const TQString & xmlUrl() const
returns the url of the actual feed source (rss/rdf/atom file)
Definition: feed.cpp:351
void setXmlUrl(const TQString &s)
sets the url of the actual feed source (rss/rdf/atom file)
Definition: feed.cpp:353
bool useCustomFetchInterval() const
returns whether this feed uses its own fetch interval or the global setting
Definition: feed.cpp:302
virtual TQDomElement toOPML(TQDomElement parent, TQDomDocument document) const
exports the feed settings to OPML
Definition: feed.cpp:368
int maxArticleNumber() const
returns the article count limit used in limitArticleNumber archive mode
Definition: feed.cpp:314
virtual TQStringList tags() const
returns a list of all tags occurring in this node (sub tree for folders)
Definition: feed.cpp:182
ArchiveMode archiveMode() const
returns the archiving mode which is used for this feed
Definition: feed.cpp:702
virtual void slotMarkAllArticlesAsRead()
mark all articles in this feed as read
Definition: feed.cpp:395
static ArchiveMode stringToArchiveMode(const TQString &str)
converts strings to ArchiveMode value if parsing fails, it returns ArchiveMode::globalDefault
Definition: feed.cpp:260
const TQString & htmlUrl() const
returns the URL of the HTML page of this feed
Definition: feed.cpp:355
void setHtmlUrl(const TQString &s)
sets the URL of the HTML page of this feed
Definition: feed.cpp:357
virtual Article findArticle(const TQString &guid) const
returns the article with the given guid, or a null article if it not exists
Definition: feed.cpp:187
void setCustomFetchIntervalEnabled(bool enabled)
set if the feed has its custom fetch interval or uses the global setting
Definition: feed.cpp:304
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:52