akregator
#include <feed.h>
Public Types | |
enum | ArchiveMode { globalDefault, keepAllArticles, disableArchiving, limitArticleNumber, limitArticleAge } |
Public Slots | |
void | fetch (bool followDiscovery=false) |
void | slotAbortFetch () |
void | slotAddFeedIconListener () |
void | slotAddToFetchQueue (Akregator::FetchQueue *queue, bool intervalFetchOnly=false) |
Public Slots inherited from Akregator::TreeNode | |
virtual void | slotAddToFetchQueue (Akregator::FetchQueue *queue, bool intervalFetchesOnly=false)=0 |
Signals | |
void | fetchAborted (Akregator::Feed *) |
void | fetchDiscovery (Akregator::Feed *) |
void | fetched (Akregator::Feed *) |
void | fetchError (Akregator::Feed *) |
void | fetchStarted (Akregator::Feed *) |
Signals inherited from Akregator::TreeNode | |
void | signalArticlesAdded (Akregator::TreeNode *, const QList< Akregator::Article > &guids) |
void | signalArticlesRemoved (Akregator::TreeNode *, const QList< Akregator::Article > &guids) |
void | signalArticlesUpdated (Akregator::TreeNode *, const QList< Akregator::Article > &guids) |
void | signalChanged (Akregator::TreeNode *) |
void | signalDestroyed (Akregator::TreeNode *) |
Public Member Functions | |
Feed (Akregator::Backend::Storage *storage) | |
~Feed () | |
bool | accept (TreeNodeVisitor *visitor) |
ArchiveMode | archiveMode () const |
KJob * | createMarkAsReadJob () |
void | deleteExpiredArticles (Akregator::ArticleDeleteJob *job) |
QString | description () const |
QVector< const Feed * > | feeds () const |
QVector< Feed * > | feeds () |
Syndication::ErrorCode | fetchErrorCode () const |
bool | fetchErrorOccurred () const |
int | fetchInterval () const |
Article | findArticle (const QString &guid) const |
QVector< const Folder * > | folders () const |
QVector< Folder * > | folders () |
QString | htmlUrl () const |
QIcon | icon () const |
QPixmap | image () const |
bool | isAggregation () const |
bool | isArticlesLoaded () const |
bool | isFetching () const |
bool | isGroup () const |
bool | loadLinkedWebsite () const |
bool | markImmediatelyAsRead () const |
int | maxArticleAge () const |
int | maxArticleNumber () const |
const TreeNode * | next () const |
TreeNode * | next () |
void | setArchiveMode (ArchiveMode archiveMode) |
void | setCustomFetchIntervalEnabled (bool enabled) |
void | setDescription (const QString &s) |
void | setFavicon (const QIcon &icon) |
void | setFetchInterval (int interval) |
void | setHtmlUrl (const QString &s) |
void | setImage (const QPixmap &p) |
void | setLoadLinkedWebsite (bool enabled) |
void | setMarkImmediatelyAsRead (bool enabled) |
void | setMaxArticleAge (int maxArticleAge) |
void | setMaxArticleNumber (int maxArticleNumber) |
void | setUseNotification (bool enabled) |
void | setXmlUrl (const QString &s) |
QDomElement | toOPML (QDomElement parent, QDomDocument document) const |
int | totalCount () const |
int | unread () const |
bool | useCustomFetchInterval () const |
bool | useNotification () const |
QString | xmlUrl () const |
Public Member Functions inherited from Akregator::TreeNode | |
TreeNode () | |
virtual | ~TreeNode () |
virtual TreeNode * | childAt (int pos) |
virtual const TreeNode * | childAt (int pos) const |
virtual QList< const TreeNode * > | children () const |
virtual QList< TreeNode * > | children () |
ArticleListJob * | createListJob () |
virtual uint | id () const |
QPoint | listViewScrollBarPositions () const |
virtual const TreeNode * | nextSibling () const |
virtual TreeNode * | nextSibling () |
virtual const Folder * | parent () const |
virtual Folder * | parent () |
virtual const TreeNode * | prevSibling () const |
virtual TreeNode * | prevSibling () |
virtual void | setId (uint id) |
void | setListViewScrollBarPositions (const QPoint &pos) |
virtual void | setNotificationMode (bool doNotify) |
virtual void | setParent (Folder *parent) |
void | setTitle (const QString &title) |
QString | title () const |
Public Member Functions inherited from Akregator::FaviconListener | |
virtual | ~FaviconListener () |
Static Public Member Functions | |
static QString | archiveModeToString (ArchiveMode mode) |
static Feed * | fromOPML (QDomElement e, Akregator::Backend::Storage *storage) |
static ArchiveMode | stringToArchiveMode (const QString &str) |
Additional Inherited Members | |
Protected Member Functions inherited from Akregator::TreeNode | |
virtual void | articlesModified () |
void | emitSignalDestroyed () |
virtual void | nodeModified () |
Detailed Description
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) |
Constructor & Destructor Documentation
|
explicit |
Member Function Documentation
|
virtual |
Implements Akregator::TreeNode.
Akregator::Feed::ArchiveMode Akregator::Feed::archiveMode | ( | ) | const |
|
static |
|
virtual |
Implements Akregator::TreeNode.
void Akregator::Feed::deleteExpiredArticles | ( | Akregator::ArticleDeleteJob * | job | ) |
QString Akregator::Feed::description | ( | ) | const |
|
virtual |
Implements Akregator::TreeNode.
|
virtual |
Implements Akregator::TreeNode.
|
slot |
|
signal |
emitted when a fetch is aborted
|
signal |
emitted when a feed URL was found by auto discovery
|
signal |
emitted when feed finished fetching
|
signal |
emitted when a fetch error occurred
Syndication::ErrorCode Akregator::Feed::fetchErrorCode | ( | ) | const |
bool Akregator::Feed::fetchErrorOccurred | ( | ) | const |
int Akregator::Feed::fetchInterval | ( | ) | const |
|
signal |
emitted when fetching started
Article Akregator::Feed::findArticle | ( | const QString & | guid | ) | const |
|
virtual |
Implements Akregator::TreeNode.
|
virtual |
Implements Akregator::TreeNode.
|
static |
QString Akregator::Feed::htmlUrl | ( | ) | const |
|
virtual |
Implements Akregator::TreeNode.
QPixmap Akregator::Feed::image | ( | ) | const |
|
inlinevirtual |
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.
bool Akregator::Feed::isArticlesLoaded | ( | ) | const |
|
inlinevirtual |
returns if this node is a feed group (false
here)
Implements Akregator::TreeNode.
bool Akregator::Feed::markImmediatelyAsRead | ( | ) | const |
int Akregator::Feed::maxArticleAge | ( | ) | const |
int Akregator::Feed::maxArticleNumber | ( | ) | 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.
|
virtual |
Implements Akregator::TreeNode.
void Akregator::Feed::setArchiveMode | ( | ArchiveMode | archiveMode | ) |
void Akregator::Feed::setCustomFetchIntervalEnabled | ( | bool | enabled | ) |
void Akregator::Feed::setDescription | ( | const QString & | s | ) |
|
virtual |
sets the favicon (used in the tree view)
Implements Akregator::FaviconListener.
void Akregator::Feed::setFetchInterval | ( | int | interval | ) |
void Akregator::Feed::setHtmlUrl | ( | const QString & | s | ) |
void Akregator::Feed::setImage | ( | const QPixmap & | p | ) |
void Akregator::Feed::setLoadLinkedWebsite | ( | bool | enabled | ) |
void Akregator::Feed::setMarkImmediatelyAsRead | ( | bool | enabled | ) |
void Akregator::Feed::setMaxArticleAge | ( | int | maxArticleAge | ) |
void Akregator::Feed::setMaxArticleNumber | ( | int | maxArticleNumber | ) |
void Akregator::Feed::setXmlUrl | ( | const QString & | s | ) |
|
slot |
|
static |
|
virtual |
exports the feed settings to OPML
Implements Akregator::TreeNode.
|
virtual |
returns the number of total articles in this feed
- Returns
- number of articles
Implements Akregator::TreeNode.
|
virtual |
returns the unread count for this feed
Implements Akregator::TreeNode.
bool Akregator::Feed::useCustomFetchInterval | ( | ) | const |
QString Akregator::Feed::xmlUrl | ( | ) | const |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.