akregator/src

Akregator::Article Class Reference

#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 ()
Feedfeed () 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.

Definition at line 57 of file article.h.

Member Typedef Documentation

◆ List

typedef TQValueList<Article> Akregator::Article::List

Definition at line 61 of file article.h.

Member Enumeration Documentation

◆ Status

enum Akregator::Article::Status

Definition at line 60 of file article.h.

Constructor & Destructor Documentation

◆ Article() [1/5]

Akregator::Article::Article ( )

Definition at line 74 of file article.cpp.

◆ Article() [2/5]

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.

◆ Article() [3/5]

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.

◆ Article() [4/5]

Akregator::Article::Article ( RSS::Article article,
Backend::FeedStorage * archive )

Definition at line 191 of file article.cpp.

◆ Article() [5/5]

Akregator::Article::Article ( const Article & other)

Definition at line 228 of file article.cpp.

◆ ~Article()

Akregator::Article::~Article ( )
virtual

Definition at line 233 of file article.cpp.

Member Function Documentation

◆ addTag()

void Akregator::Article::addTag ( const TQString & tag)

Definition at line 412 of file article.cpp.

◆ author()

TQString Akregator::Article::author ( ) const

Definition at line 334 of file article.cpp.

◆ comments()

int Akregator::Article::comments ( ) const

Definition at line 360 of file article.cpp.

◆ commentsLink()

KURL Akregator::Article::commentsLink ( ) const

Definition at line 354 of file article.cpp.

◆ description()

TQString Akregator::Article::description ( ) const

Definition at line 344 of file article.cpp.

◆ enclosure()

RSS::Enclosure Akregator::Article::enclosure ( ) const

Definition at line 392 of file article.cpp.

◆ feed()

Feed * Akregator::Article::feed ( ) const

Definition at line 436 of file article.cpp.

◆ guid()

TQString Akregator::Article::guid ( ) const

Definition at line 349 of file article.cpp.

◆ guidIsHash()

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.

◆ guidIsPermaLink()

bool Akregator::Article::guidIsPermaLink ( ) const

Definition at line 366 of file article.cpp.

◆ hash()

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.

◆ hasTag()

bool Akregator::Article::hasTag ( const TQString & tag) const

Definition at line 426 of file article.cpp.

◆ isDeleted()

bool Akregator::Article::isDeleted ( ) const

Definition at line 223 of file article.cpp.

◆ isNull()

bool Akregator::Article::isNull ( ) const

Definition at line 197 of file article.cpp.

◆ keep()

bool Akregator::Article::keep ( ) const

if true, the article should be kept even when expired

Definition at line 387 of file article.cpp.

◆ link()

KURL Akregator::Article::link ( ) const

Definition at line 339 of file article.cpp.

◆ offsetPubDate()

void Akregator::Article::offsetPubDate ( int secs)

Definition at line 202 of file article.cpp.

◆ operator!=()

bool Akregator::Article::operator!= ( const Article & other) const
inline

Definition at line 77 of file article.h.

◆ operator<()

bool Akregator::Article::operator< ( const Article & other) const

Definition at line 254 of file article.cpp.

◆ operator<=()

bool Akregator::Article::operator<= ( const Article & other) const

Definition at line 260 of file article.cpp.

◆ operator=()

Article & Akregator::Article::operator= ( const Article & other)

Definition at line 242 of file article.cpp.

◆ operator==()

bool Akregator::Article::operator== ( const Article & other) const

Definition at line 276 of file article.cpp.

◆ operator>()

bool Akregator::Article::operator> ( const Article & other) const

Definition at line 265 of file article.cpp.

◆ operator>=()

bool Akregator::Article::operator>= ( const Article & other) const

Definition at line 271 of file article.cpp.

◆ pubDate()

const TQDateTime & Akregator::Article::pubDate ( ) const

Definition at line 439 of file article.cpp.

◆ removeTag()

void Akregator::Article::removeTag ( const TQString & tag)

Definition at line 419 of file article.cpp.

◆ setDeleted()

void Akregator::Article::setDeleted ( )

Definition at line 209 of file article.cpp.

◆ setKeep()

void Akregator::Article::setKeep ( bool keep)

Definition at line 404 of file article.cpp.

◆ setStatus()

void Akregator::Article::setStatus ( int s)

Definition at line 303 of file article.cpp.

◆ status()

int Akregator::Article::status ( ) const

Definition at line 292 of file article.cpp.

◆ tags()

TQStringList Akregator::Article::tags ( ) const

Definition at line 431 of file article.cpp.

◆ title()

TQString Akregator::Article::title ( ) const

Definition at line 329 of file article.cpp.


The documentation for this class was generated from the following files: