akregator
Akregator::Feed Class Reference
#include <feed.h>
List of all members.
Detailed Description
represents a feed
Definition at line 52 of file feed.h.
Member Enumeration Documentation
the archiving modes
- Enumerator:
-
| globalDefault |
use default from Settings (default) |
| keepAllArticles |
Don't delete any articles. |
| disableArchiving |
Don't save any articles except articles with keep flag set (equal to maxArticleNumber() == 0). |
| limitArticleNumber |
Save maxArticleNumber() articles, plus the ones with keep flag set. |
| limitArticleAge |
Save articles not older than maxArticleAge() (or keep flag set). |
Definition at line 60 of file feed.h.
Constructor & Destructor Documentation
default constructor
Definition at line 308 of file feed.cpp.
Member Function Documentation
returns the archiving mode which is used for this feed
Definition at line 726 of file feed.cpp.
converts ArchiveMode values to corresponding strings
Definition at line 111 of file feed.cpp.
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 tag is not null, only articles tagged with tag are returned
- Returns:
- sequence of articles
Implements Akregator::TreeNode.
Definition at line 213 of file feed.cpp.
deletes expired articles
Definition at line 686 of file feed.cpp.
| QString Feed::description |
( |
|
) |
const |
returns the description of this feed
Definition at line 383 of file feed.cpp.
| QVector< const Feed * > Feed::feeds |
( |
|
) |
const [virtual] |
| void Feed::fetch |
( |
bool |
followDiscovery = false |
) |
[slot] |
starts fetching
Definition at line 569 of file feed.cpp.
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
| Syndication::ErrorCode Feed::fetchErrorCode |
( |
|
) |
const |
| bool Feed::fetchErrorOccurred |
( |
|
) |
const |
returns whether a fetch error has occurred
Definition at line 387 of file feed.cpp.
| int Feed::fetchInterval |
( |
|
) |
const |
Returns custom auto fetch interval of this feed.
- Returns:
- custom fetch interval in minutes, 0 if disabled
Definition at line 325 of file feed.cpp.
emitted when fetching started
returns article by guid
- Parameters:
-
| guid | the guid of the article to be returned |
- Returns:
- the article object with the given guid, or a null article if non-existent
Definition at line 208 of file feed.cpp.
creates a Feed object from a description in OPML format
Definition at line 132 of file feed.cpp.
returns the URL of the HTML page of this feed
Definition at line 379 of file feed.cpp.
| QIcon Feed::icon |
( |
|
) |
const [virtual] |
returns the feed image
Definition at line 368 of file feed.cpp.
| bool Akregator::Feed::isAggregation |
( |
|
) |
const [inline, virtual] |
returns if the node represents an aggregation, i.e.
containing items from more than once source feed. Folders and virtual folders are aggregations, feeds are not.
Implements Akregator::TreeNode.
Definition at line 199 of file feed.h.
| bool Feed::isArticlesLoaded |
( |
|
) |
const |
returns if the article archive of this feed is loaded
Definition at line 391 of file feed.cpp.
| bool Feed::isFetching |
( |
|
) |
const |
| bool Akregator::Feed::isGroup |
( |
|
) |
const [inline, virtual] |
| bool Feed::loadLinkedWebsite |
( |
|
) |
const |
| bool Feed::markImmediatelyAsRead |
( |
|
) |
const |
if true, new articles are marked immediately as read instead of new/unread.
Useful for high-traffic feeds.
Definition at line 337 of file feed.cpp.
| int Feed::maxArticleAge |
( |
|
) |
const |
returns the maximum age of articles used for expiration by age (used in limitArticleAge archive mode)
- Returns:
- expiry age in days
Definition at line 329 of file feed.cpp.
| int Feed::maxArticleNumber |
( |
|
) |
const |
returns the article count limit used in limitArticleNumber archive mode
Definition at line 333 of file feed.cpp.
| const TreeNode * Feed::next |
( |
|
) |
const [virtual] |
returns the next node in the tree.
Calling next() unless it returns 0 iterates through the tree in pre-order
Implements Akregator::TreeNode.
Definition at line 799 of file feed.cpp.
sets the archiving mode for this feed
Definition at line 731 of file feed.cpp.
| void Feed::setCustomFetchIntervalEnabled |
( |
bool |
enabled |
) |
|
set if the feed has its custom fetch interval or uses the global setting
- Parameters:
-
| enabled | true: use custom interval, false: use global default |
Definition at line 323 of file feed.cpp.
| void Feed::setDescription |
( |
const QString & |
s |
) |
|
sets the description of this feed
Definition at line 385 of file feed.cpp.
| void Feed::setFavicon |
( |
const QIcon & |
icon |
) |
[virtual] |
| void Feed::setFetchInterval |
( |
int |
interval |
) |
|
Sets custom auto fetch interval.
- Parameters:
-
| interval | interval in minutes, -1 for disabling auto fetching |
Definition at line 327 of file feed.cpp.
| void Feed::setHtmlUrl |
( |
const QString & |
s |
) |
|
sets the URL of the HTML page of this feed
Definition at line 381 of file feed.cpp.
| void Feed::setImage |
( |
const QPixmap & |
p |
) |
|
sets the feed image
Definition at line 717 of file feed.cpp.
| void Feed::setLoadLinkedWebsite |
( |
bool |
enabled |
) |
|
if true, the linked URL is loaded directly in the article viewer instead of showing the description
Definition at line 358 of file feed.cpp.
| void Feed::setMarkImmediatelyAsRead |
( |
bool |
enabled |
) |
|
| void Feed::setMaxArticleAge |
( |
int |
maxArticleAge |
) |
|
sets the maximum age of articles used for expiration by age (used in limitArticleAge archive mode)
- Parameters:
-
| maxArticleAge | expiry age in days |
Definition at line 331 of file feed.cpp.
| void Feed::setMaxArticleNumber |
( |
int |
maxArticleNumber |
) |
|
sets the article count limit used in limitArticleNumber archive mode
Definition at line 335 of file feed.cpp.
| void Feed::setUseNotification |
( |
bool |
enabled |
) |
|
| void Feed::setXmlUrl |
( |
const QString & |
s |
) |
|
sets the url of the actual feed source (rss/rdf/atom file)
Definition at line 372 of file feed.cpp.
| void Feed::slotAbortFetch |
( |
|
) |
[slot] |
| void Feed::slotAddFeedIconListener |
( |
|
) |
[slot] |
| void Feed::slotAddToFetchQueue |
( |
Akregator::FetchQueue * |
queue, |
|
|
bool |
intervalFetchOnly = false | |
|
) |
| | [virtual, slot] |
| void Feed::slotMarkAllArticlesAsRead |
( |
|
) |
[virtual, slot] |
converts strings to ArchiveMode value if parsing fails, it returns ArchiveMode::globalDefault
Definition at line 268 of file feed.cpp.
| int Feed::totalCount |
( |
|
) |
const [virtual] |
| int Feed::unread |
( |
|
) |
const [virtual] |
| bool Feed::useCustomFetchInterval |
( |
|
) |
const |
returns whether this feed uses its own fetch interval or the global setting
- Returns:
true iff this feed has a custom fetch interval
Definition at line 321 of file feed.cpp.
| bool Feed::useNotification |
( |
|
) |
const |
returns the url of the actual feed source (rss/rdf/atom file)
Definition at line 370 of file feed.cpp.
The documentation for this class was generated from the following files: