Search for usage in LXR

Syndication::RSS2::Enclosure Class Reference

#include <enclosure.h>

Inheritance diagram for Syndication::RSS2::Enclosure:

Public Member Functions

 Enclosure ()
 Enclosure (const QDomElement &element)
QString debugInfo () const
int length () const
QString type () const
QString url () const
- Public Member Functions inherited from Syndication::ElementWrapper
 ElementWrapper ()
 ElementWrapper (const ElementWrapper &other)
 ElementWrapper (const QDomElement &element)
virtual ~ElementWrapper ()
QString attribute (const QString &name, const QString &defValue=QString()) const
QString attributeNS (const QString &nsURI, const QString &localName, const QString &defValue=QString()) const
QString childNodesAsXML () const
QString completeURI (const QString &uri) const
const QDomElementelement () const
QList< QDomElementelementsByTagName (const QString &tagName) const
QList< QDomElementelementsByTagNameNS (const QString &nsURI, const QString &tagName) const
QString extractElementText (const QString &tagName) const
QString extractElementTextNS (const QString &namespaceURI, const QString &localName) const
QDomElement firstElementByTagNameNS (const QString &nsURI, const QString &tagName) const
bool hasAttribute (const QString &name) const
bool hasAttributeNS (const QString &nsURI, const QString &localName) const
bool isNull () const
ElementWrapperoperator= (const ElementWrapper &other)
bool operator== (const ElementWrapper &other) const
QString text () const
QString xmlBase () const
QString xmlLang () const

Additional Inherited Members

- Static Public Member Functions inherited from Syndication::ElementWrapper
static QString childNodesAsXML (const QDomElement &parent)

Detailed Description

Describes a media object that is "attached" to the item.

The most common use case for enclosures are podcasts: An audio file is attached to the feed and can be automatically downloaded by a podcast client.

Frank Osterfeld

Definition at line 28 of file rss2/enclosure.h.

Constructor & Destructor Documentation

Syndication::RSS2::Enclosure::Enclosure ( )

Default constructor, creates a null object, for which isNull() is true.

Definition at line 14 of file rss2/enclosure.cpp.

Syndication::RSS2::Enclosure::Enclosure ( const QDomElement element)

Creates an Enclosure object wrapping an <enclosure> XML element.

elementThe <enclosure> element to wrap

Definition at line 19 of file rss2/enclosure.cpp.

Member Function Documentation

QString Syndication::RSS2::Enclosure::debugInfo ( ) const

Returns a description of the object for debugging purposes.

debug string

Definition at line 46 of file rss2/enclosure.cpp.

int Syndication::RSS2::Enclosure::length ( ) const

returns the size of the enclosure in bytes

Definition at line 29 of file rss2/enclosure.cpp.

QString Syndication::RSS2::Enclosure::type ( ) const

returns the mime type of the enclosure (e.g.


Definition at line 41 of file rss2/enclosure.cpp.

QString Syndication::RSS2::Enclosure::url ( ) const

returns the URL of the enclosure

Definition at line 24 of file rss2/enclosure.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:04:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.