Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

RssParser Class Reference

#include </home/clem/local/src/opie/core/multimedia/opieplayer/rssparser.h>

Collaboration diagram for RssParser:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RssParser ()
 ~RssParser ()
QVector< rssItem > & getItems ()
QStringList getChannelInfo ()
int getSize ()

Public Attributes

QString errorMessage

Protected Member Functions

bool startElement (const QString &, const QString &, const QString &, const QXmlAttributes &)
bool endElement (const QString &, const QString &, const QString &)
bool characters (const QString &)
bool warning (const QXmlParseException &)
bool error (const QXmlParseException &)
bool fatalError (const QXmlParseException &)

Protected Attributes

QString itemTitle
QString itemLink
QString itemDescription

Private Types

enum  Tag {
  NoneTag = 0, TitleTag = 1, NewItemTag = 2, DescriptionTag = 3,
  LinkTag = 4, pubDateTag = 5
}

Private Attributes

Tag tag
QStringList channelInfo
rssItemItem
rssChannelchannel
rssImageimage
bool isItem
QStringList tokenNames
QString htmlString

Member Enumeration Documentation

enum RssParser::Tag [private]
 

Enumeration values:
NoneTag 
TitleTag 
NewItemTag 
DescriptionTag 
LinkTag 
pubDateTag 

Definition at line 83 of file rssparser.h.


Constructor & Destructor Documentation

RssParser::RssParser  ) 
 

Definition at line 19 of file rssparser.cpp.

References isItem.

RssParser::~RssParser  ) 
 

Definition at line 24 of file rssparser.cpp.

References channel, i, rssChannel::rssItems, and size.


Member Function Documentation

bool RssParser::characters const QString  )  [protected]
 

Definition at line 113 of file rssparser.cpp.

References channel, rssChannel::description, rssItem::description, DescriptionTag, QString::isEmpty(), isItem, Item, rssChannel::link, rssItem::link, LinkTag, NewItemTag, NoneTag, rssChannel::pubdate, rssItem::pubdate, pubDateTag, tag, rssChannel::title, rssItem::title, and TitleTag.

bool RssParser::endElement const QString ,
const QString ,
const QString
[protected]
 

Definition at line 95 of file rssparser.cpp.

References channel, isItem, Item, NoneTag, rssChannel::rssItems, size, and tag.

bool RssParser::error const QXmlParseException &   )  [protected]
 

Definition at line 167 of file rssparser.cpp.

References errorMessage, and qWarning().

bool RssParser::fatalError const QXmlParseException &   )  [protected]
 

Definition at line 175 of file rssparser.cpp.

References errorMessage, and qWarning().

QStringList RssParser::getChannelInfo  ) 
 

Definition at line 196 of file rssparser.cpp.

References channel, rssChannel::copyright, rssChannel::description, rssChannel::language, rssChannel::link, rssChannel::pubdate, and rssChannel::title.

QVector< rssItem > & RssParser::getItems  ) 
 

Definition at line 186 of file rssparser.cpp.

References channel, and rssChannel::rssItems.

int RssParser::getSize  ) 
 

Definition at line 191 of file rssparser.cpp.

References channel, and rssChannel::rssItems.

bool RssParser::startElement const QString ,
const QString ,
const QString ,
const QXmlAttributes & 
[protected]
 

Definition at line 33 of file rssparser.cpp.

References QValueList< T >::append(), rssChannel::attributes, rssItem::attributes, channel, DescriptionTag, i, image, isItem, Item, LinkTag, NewItemTag, pubDateTag, rssChannel::rssItems, tag, and TitleTag.

bool RssParser::warning const QXmlParseException &   )  [protected]
 

Definition at line 159 of file rssparser.cpp.

References errorMessage, and qWarning().


Member Data Documentation

rssChannel* RssParser::channel [private]
 

Definition at line 102 of file rssparser.h.

Referenced by characters(), endElement(), getChannelInfo(), getItems(), getSize(), startElement(), and ~RssParser().

QStringList RssParser::channelInfo [private]
 

Definition at line 100 of file rssparser.h.

QString RssParser::errorMessage
 

Definition at line 75 of file rssparser.h.

Referenced by error(), fatalError(), and warning().

QString RssParser::htmlString [private]
 

Definition at line 107 of file rssparser.h.

rssImage* RssParser::image [private]
 

Definition at line 103 of file rssparser.h.

Referenced by startElement().

bool RssParser::isItem [private]
 

Definition at line 105 of file rssparser.h.

Referenced by characters(), endElement(), RssParser(), and startElement().

rssItem* RssParser::Item [private]
 

Definition at line 101 of file rssparser.h.

Referenced by characters(), endElement(), and startElement().

QString RssParser::itemDescription [protected]
 

Definition at line 119 of file rssparser.h.

QString RssParser::itemLink [protected]
 

Definition at line 119 of file rssparser.h.

QString RssParser::itemTitle [protected]
 

Definition at line 119 of file rssparser.h.

Tag RssParser::tag [private]
 

Definition at line 97 of file rssparser.h.

Referenced by characters(), endElement(), and startElement().

QStringList RssParser::tokenNames [private]
 

Definition at line 106 of file rssparser.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:51:03 2005 for OPIE by  doxygen 1.4.2