Syndication::Enclosure Class

class Syndication::Enclosure

An enclosure describes a (media) file available on the net. More...

Header: #include <Syndication/Enclosure>
CMake: find_package(KF6 REQUIRED COMPONENTS Syndication)
target_link_libraries(mytarget PRIVATE KF6::Syndication)

Public Functions

virtual QString debugInfo() const
virtual uint duration() const = 0
virtual bool isNull() const = 0
virtual uint length() const = 0
virtual QString title() const = 0
virtual QString type() const = 0
virtual QString url() const = 0

Detailed Description

Most of the time, enclosures are used for "podcasts", i.e. audio files announced and distributed via syndication.

Member Function Documentation

[virtual] QString Enclosure::debugInfo() const

description of this enclosure for debugging purposes

[pure virtual] uint Enclosure::duration() const

for audio/video files, the duration of the file in seconds

[pure virtual] bool Enclosure::isNull() const

returns whether this enclosure is a null object.

[pure virtual] uint Enclosure::length() const

returns the length of the linked file in bytes

[pure virtual] QString Enclosure::title() const

title of the enclosure. This is a human-readable description of the linked file. If available, the title should be used in user interfaces instead of the URL. If no title is set (e.g., RSS2 enclosures don't have titles), use url() as fallback.

[pure virtual] QString Enclosure::type() const

MIME type of the enclosure.

Examples are "audio/mpeg" for MP3, or "application/pdf" for PDF.

[pure virtual] QString Enclosure::url() const

The URL of the linked resource (required).