Syndication::RSS2::Enclosure
#include <enclosure.h>
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.
Definition at line 28 of file rss2/enclosure.h.
Constructor & Destructor Documentation
◆ Enclosure() [1/2]
Syndication::RSS2::Enclosure::Enclosure | ( | ) |
Default constructor, creates a null object, for which isNull() is true
.
Definition at line 14 of file rss2/enclosure.cpp.
◆ Enclosure() [2/2]
|
explicit |
Creates an Enclosure object wrapping an <enclosure>
XML element.
- Parameters
-
element The <enclosure>
element to wrap
Definition at line 19 of file rss2/enclosure.cpp.
Member Function Documentation
◆ debugInfo()
QString Syndication::RSS2::Enclosure::debugInfo | ( | ) | const |
Returns a description of the object for debugging purposes.
- Returns
- debug string
Definition at line 46 of file rss2/enclosure.cpp.
◆ length()
int Syndication::RSS2::Enclosure::length | ( | ) | const |
returns the size of the enclosure in bytes
Definition at line 29 of file rss2/enclosure.cpp.
◆ type()
QString Syndication::RSS2::Enclosure::type | ( | ) | const |
returns the mime type of the enclosure (e.g.
"audio/mpeg")
Definition at line 41 of file rss2/enclosure.cpp.
◆ url()
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:
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.