#include <article.h>
Public Types | |
enum | Status { Unread = 0, Read, New } |
typedef TQValueList< Article > | List |
Public Member Functions | |
Article (const TQString &guid, Feed *feed) | |
Article (RSS::Article article, Feed *feed) | |
Article (RSS::Article article, Backend::FeedStorage *archive) | |
Article (const Article &other) | |
Article & | operator= (const Article &other) |
bool | operator== (const Article &other) const |
bool | operator!= (const Article &other) const |
bool | isNull () const |
int | status () const |
void | setStatus (int s) |
void | offsetPubDate (int secs) |
TQString | title () const |
KURL | link () const |
TQString | author () const |
TQString | description () const |
TQString | guid () const |
bool | keep () const |
void | setKeep (bool keep) |
bool | isDeleted () const |
RSS::Enclosure | enclosure () const |
void | setDeleted () |
Feed * | feed () const |
uint | hash () const |
bool | guidIsHash () const |
bool | guidIsPermaLink () const |
const TQDateTime & | pubDate () const |
KURL | commentsLink () const |
int | comments () const |
void | addTag (const TQString &tag) |
void | removeTag (const TQString &tag) |
bool | hasTag (const TQString &tag) const |
TQStringList | tags () const |
bool | operator< (const Article &other) const |
bool | operator<= (const Article &other) const |
bool | operator> (const Article &other) const |
bool | operator>= (const Article &other) const |
Detailed Description
A proxy class for RSS::Article with some additional methods to assist sorting.
Constructor & Destructor Documentation
Akregator::Article::Article | ( | const TQString & | guid, |
Feed * | feed | ||
) |
creates am article object for an existing article.
The constructor accesses the archive to load it's data
Definition at line 82 of file article.cpp.
Akregator::Article::Article | ( | RSS::Article | article, |
Feed * | feed | ||
) |
creates an article object from a parsed librss Article the article is added to the archive if not yet stored, or updated if stored but modified
Definition at line 184 of file article.cpp.
Member Function Documentation
bool Akregator::Article::guidIsHash | ( | ) | const |
returns if the guid is a hash or an ID taken from the source
Definition at line 371 of file article.cpp.
uint Akregator::Article::hash | ( | ) | const |
returns a hash value used to detect changes in articles with non-hash GUIDs.
If the guid is a hash itself, it returns 0
Definition at line 376 of file article.cpp.
bool Akregator::Article::keep | ( | ) | const |
if true, the article should be kept even when expired
Definition at line 387 of file article.cpp.
The documentation for this class was generated from the following files: