akregator
#include <feedlist.h>
Signals | |
void | fetchAborted (Akregator::Feed *) |
void | fetchDiscovery (Akregator::Feed *) |
void | fetched (Akregator::Feed *) |
void | fetchError (Akregator::Feed *) |
void | fetchStarted (Akregator::Feed *) |
void | signalAboutToRemoveNode (Akregator::TreeNode *) |
void | signalDestroyed (Akregator::FeedList *) |
void | signalNodeAdded (Akregator::TreeNode *) |
void | signalNodeChanged (Akregator::TreeNode *) |
void | signalNodeRemoved (Akregator::TreeNode *) |
void | unreadCountChanged (int unread) |
Public Member Functions | |
FeedList (Akregator::Backend::Storage *storage) | |
~FeedList () | |
void | addToFetchQueue (FetchQueue *queue, bool intervalOnly=false) |
const Folder * | allFeedsFolder () const |
Folder * | allFeedsFolder () |
void | append (FeedList *list, Folder *parent=0, TreeNode *after=0) |
KJob * | createMarkAsReadJob () |
QVector< int > | feedIds () const |
QVector< const Feed * > | feeds () const |
QVector< Feed * > | feeds () |
const Article | findArticle (const QString &feedURL, const QString &guid) const |
const TreeNode * | findByID (int id) const |
TreeNode * | findByID (int id) |
QList< const TreeNode * > | findByTitle (const QString &title) const |
QList< TreeNode * > | findByTitle (const QString &title) |
const Feed * | findByURL (const QString &feedURL) const |
Feed * | findByURL (const QString &feedURL) |
QVector< const Folder * > | folders () const |
QVector< Folder * > | folders () |
bool | isEmpty () const |
bool | readFromOpml (const QDomDocument &doc) |
void | setTitle (const QString &name) |
QString | title () const |
QDomDocument | toOpml () const |
int | unread () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
The model of a feed tree, represents an OPML document.
Contains an additional root node "All Feeds" which isn't stored. Note that a node instance must not be in more than one FeedList at a time! When deleting the feed list, all contained nodes are deleted!
Definition at line 78 of file feedlist.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 175 of file feedlist.cpp.
Akregator::FeedList::~FeedList | ( | ) |
Member Function Documentation
void Akregator::FeedList::addToFetchQueue | ( | FetchQueue * | queue, |
bool | intervalOnly = false |
||
) |
Definition at line 486 of file feedlist.cpp.
const Folder * Akregator::FeedList::allFeedsFolder | ( | ) | const |
Definition at line 406 of file feedlist.cpp.
Folder * Akregator::FeedList::allFeedsFolder | ( | ) |
Definition at line 411 of file feedlist.cpp.
appends another feed list as sub tree.
The root node of list
is ignored. NOTE: nodes are moved from list
to this feed list, not copied
Definition at line 343 of file feedlist.cpp.
KJob * Akregator::FeedList::createMarkAsReadJob | ( | ) |
Definition at line 491 of file feedlist.cpp.
QVector< int > Akregator::FeedList::feedIds | ( | ) | const |
Definition at line 183 of file feedlist.cpp.
returns all feeds in this list
Definition at line 191 of file feedlist.cpp.
Definition at line 199 of file feedlist.cpp.
|
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
|
signal |
emitted when fetching started
const Article Akregator::FeedList::findArticle | ( | const QString & | feedURL, |
const QString & | guid | ||
) | const |
Definition at line 337 of file feedlist.cpp.
const TreeNode * Akregator::FeedList::findByID | ( | int | id | ) | const |
Definition at line 386 of file feedlist.cpp.
TreeNode * Akregator::FeedList::findByID | ( | int | id | ) |
Definition at line 391 of file feedlist.cpp.
Definition at line 396 of file feedlist.cpp.
Definition at line 401 of file feedlist.cpp.
returns a feed object for a given feed URL.
If the feed list does not contain a feed with url
, NULL is returned. If it contains the same feed multiple times, any of the Feed objects is returned.
Definition at line 321 of file feedlist.cpp.
Definition at line 329 of file feedlist.cpp.
returns all folders in this list
Definition at line 204 of file feedlist.cpp.
Definition at line 212 of file feedlist.cpp.
bool Akregator::FeedList::isEmpty | ( | ) | const |
Definition at line 416 of file feedlist.cpp.
bool Akregator::FeedList::readFromOpml | ( | const QDomDocument & | doc | ) |
reads an OPML document and appends the items to this list
- Parameters
-
doc the OPML document to parse
- Returns
- whether parsing was successful or not (TODO: make errors more detailed)
Definition at line 263 of file feedlist.cpp.
void Akregator::FeedList::setTitle | ( | const QString & | name | ) |
sets the title of the feed list
|
signal |
|
signal |
|
signal |
emitted when a node was added to the list
|
signal |
|
signal |
emitted when a node was removed from the list
QString Akregator::FeedList::title | ( | ) | const |
returns the title of the feed list (as used in the OPML document)
QDomDocument Akregator::FeedList::toOpml | ( | ) | const |
exports the feed list as OPML.
The root node ("All Feeds") is ignored!
Definition at line 362 of file feedlist.cpp.
int Akregator::FeedList::unread | ( | ) | const |
Definition at line 480 of file feedlist.cpp.
|
signal |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.