Syndication::Enclosure Class
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)
List of all members, including inherited members
Public Functions
- QString debugInfo() const
- uint duration() const
- bool isNull() const
- uint length() const
- QString title() const
- QString type() const
- QString url() const
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).