Syndication
Namespaces | |
namespace | Atom |
namespace | RDF |
namespace | RSS2 |
Classes | |
class | AbstractParser |
class | AtomMapper |
class | Category |
class | CategoryAtomImpl |
class | CategoryRSS2Impl |
class | DataRetriever |
class | DocumentSource |
class | DocumentVisitor |
class | ElementWrapper |
class | Enclosure |
class | EnclosureAtomImpl |
class | EnclosureRSS2Impl |
class | Feed |
class | FeedAtomImpl |
class | FeedRDFImpl |
class | FeedRSS2Impl |
class | Image |
class | ImageAtomImpl |
class | ImageRDFImpl |
class | ImageRSS2Impl |
class | Item |
class | ItemAtomImpl |
class | ItemRDFImpl |
class | ItemRSS2Impl |
class | Loader |
class | Mapper |
class | ParserCollection |
class | Person |
class | RDFMapper |
class | RSS2Mapper |
class | SpecificDocument |
class | SpecificItem |
class | SpecificItemVisitor |
Typedefs | |
typedef QSharedPointer< CategoryAtomImpl > | CategoryAtomImplPtr |
typedef QSharedPointer< Category > | CategoryPtr |
typedef QSharedPointer< CategoryRSS2Impl > | CategoryRSS2ImplPtr |
typedef QSharedPointer< EnclosureAtomImpl > | EnclosureAtomImplPtr |
typedef QSharedPointer< EnclosureRSS2Impl > | EnclosureRSS2ImplPtr |
typedef QSharedPointer< FeedAtomImpl > | FeedAtomImplPtr |
typedef QSharedPointer< FeedRDFImpl > | FeedRDFImplPtr |
typedef QSharedPointer< FeedRSS2Impl > | FeedRSS2ImplPtr |
typedef QSharedPointer< ImageAtomImpl > | ImageAtomImplPtr |
typedef QSharedPointer< Image > | ImagePtr |
typedef QSharedPointer< ImageRDFImpl > | ImageRDFImplPtr |
typedef QSharedPointer< ImageRSS2Impl > | ImageRSS2ImplPtr |
typedef QSharedPointer< ItemAtomImpl > | ItemAtomImplPtr |
typedef QSharedPointer< ItemRDFImpl > | ItemRDFImplPtr |
typedef QSharedPointer< ItemRSS2Impl > | ItemRSS2ImplPtr |
Enumerations | |
enum | ErrorCode { Success = 0 , Aborted = 1 , Timeout = 2 , UnknownHost = 3 , FileNotFound = 4 , OtherRetrieverError = 5 , InvalidXml = 6 , XmlNotAccepted = 7 , InvalidFormat = 8 } |
Variables | |
QCryptographicHash | md5Machine (QCryptographicHash::Md5) |
static ParserCollectionImpl< Syndication::Feed > * | parserColl = nullptr |
Detailed Description
TODO.
Typedef Documentation
◆ CategoryAtomImplPtr
Definition at line 17 of file categoryatomimpl.h.
◆ CategoryPtr
Definition at line 19 of file category.h.
◆ CategoryRSS2ImplPtr
Definition at line 17 of file categoryrss2impl.h.
◆ EnclosureAtomImplPtr
Definition at line 17 of file enclosureatomimpl.h.
◆ EnclosureRSS2ImplPtr
Definition at line 18 of file enclosurerss2impl.h.
◆ FeedAtomImplPtr
Definition at line 17 of file feedatomimpl.h.
◆ FeedRDFImplPtr
Definition at line 17 of file feedrdfimpl.h.
◆ FeedRSS2ImplPtr
Definition at line 17 of file feedrss2impl.h.
◆ ImageAtomImplPtr
Definition at line 18 of file imageatomimpl.h.
◆ ImagePtr
typedef QSharedPointer< Image > Syndication::ImagePtr |
Definition at line 19 of file feedatomimpl.h.
◆ ImageRDFImplPtr
Definition at line 18 of file imagerdfimpl.h.
◆ ImageRSS2ImplPtr
Definition at line 17 of file imagerss2impl.h.
◆ ItemAtomImplPtr
Definition at line 18 of file itematomimpl.h.
◆ ItemRDFImplPtr
Definition at line 19 of file itemrdfimpl.h.
◆ ItemRSS2ImplPtr
Definition at line 17 of file itemrss2impl.h.
Enumeration Type Documentation
◆ ErrorCode
error code indicating fetching or parsing errors
Enumerator | |
---|---|
Success | No error occurred, feed was fetched and parsed successfully. |
Aborted | file downloading/parsing was aborted by the user |
Timeout | file download timed out |
UnknownHost | The hostname couldn't get resolved to an IP address. |
FileNotFound | the host was contacted successfully, but reported a 404 error |
OtherRetrieverError | retriever error not covered by the error codes above. This is returned if a custom DataRetriever was used. See the retriever-specific status byte for more information on the occurred error. |
InvalidXml | The XML is invalid. This is returned if no parser accepts the source and the DOM document can't be parsed. It is not returned if the source is not valid XML but a (non-XML) parser accepts it. |
XmlNotAccepted | The source is valid XML, but no parser accepted it. |
InvalidFormat | the source was accepted by a parser, but the actual parsing failed. As our parser implementations currently do not validate the source ("parse what you can get"), this code will be rarely seen. |
Function Documentation
◆ calcHash() [1/2]
unsigned int Syndication::calcHash | ( | const QByteArray & | array | ) |
◆ calcHash() [2/2]
◆ calcMD5Sum()
◆ commentApiNamespace()
SYNDICATION_EXPORT QString Syndication::commentApiNamespace | ( | ) |
wellformedweb.org's RSS namespace for comment functionality "http://wellformedweb.org/CommentAPI/"
Definition at line 39 of file constants.cpp.
◆ contentNameSpace()
SYNDICATION_EXPORT QString Syndication::contentNameSpace | ( | ) |
Definition at line 24 of file constants.cpp.
◆ convertNewlines()
◆ dateTimeToString()
◆ dublinCoreNamespace()
SYNDICATION_EXPORT QString Syndication::dublinCoreNamespace | ( | ) |
Definition at line 29 of file constants.cpp.
◆ escapeSpecialCharacters()
◆ htmlToPlainText()
◆ isHtml()
◆ itunesNamespace()
SYNDICATION_EXPORT QString Syndication::itunesNamespace | ( | ) |
Definition at line 34 of file constants.cpp.
◆ normalize() [1/2]
◆ normalize() [2/2]
◆ parse()
SYNDICATION_EXPORT FeedPtr Syndication::parse | ( | const DocumentSource & | src, |
const QString & | formatHint = QString() ) |
parses a document from a source and returns a new Feed object wrapping the feed content.
Shortcut for parserCollection()->parse(). See ParserCollection::parse() for more details.
- Parameters
-
src the document source to parse formatHint an optional hint which format to test first
Definition at line 54 of file global.cpp.
◆ parseDate()
uint Syndication::parseDate | ( | const QString & | str, |
DateFormat | hint ) |
◆ parseISODate()
◆ parserCollection()
SYNDICATION_EXPORT ParserCollection< Feed > * Syndication::parserCollection | ( | ) |
The default ParserCollection instance parsing a DocumentSource into a Feed object.
Use this to parse a local file or a otherwise manually created DocumentSource object.
To retrieve a feed from the web, use Loader instead.
Example code:
Definition at line 41 of file global.cpp.
◆ parseRFCDate()
◆ personFromString()
PersonPtr Syndication::personFromString | ( | const QString & | strp | ) |
◆ plainTextToHtml()
◆ resolveEntities()
◆ slashNamespace()
SYNDICATION_EXPORT QString Syndication::slashNamespace | ( | ) |
"slash" namespace http://purl.org/rss/1.0/modules/slash/
Definition at line 44 of file constants.cpp.
◆ stringContainsMarkup()
bool Syndication::stringContainsMarkup | ( | const QString & | str | ) |
◆ tagRegExp()
|
static |
◆ toTimeT()
◆ xhtmlNamespace()
SYNDICATION_EXPORT QString Syndication::xhtmlNamespace | ( | ) |
Definition at line 19 of file constants.cpp.
◆ xmlNamespace()
SYNDICATION_EXPORT QString Syndication::xmlNamespace | ( | ) |
Definition at line 14 of file constants.cpp.
Variable Documentation
◆ parserColl
|
static |
Definition at line 28 of file global.cpp.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.