Syndication::EnclosureRSS2Impl

Search for usage in LXR

Syndication::EnclosureRSS2Impl Class Reference

#include <enclosurerss2impl.h>

Inheritance diagram for Syndication::EnclosureRSS2Impl:

Public Member Functions

 EnclosureRSS2Impl (const Syndication::RSS2::Item &item, const Syndication::RSS2::Enclosure &enc)
 
uint duration () const override
 
bool isNull () const override
 
uint length () const override
 
QString title () const override
 
QString type () const override
 
QString url () const override
 
- Public Member Functions inherited from Syndication::Enclosure
virtual ~Enclosure ()
 
virtual QString debugInfo () const
 

Detailed Description

Author
Frank Osterfeld

Definition at line 25 of file enclosurerss2impl.h.

Constructor & Destructor Documentation

◆ EnclosureRSS2Impl()

Syndication::EnclosureRSS2Impl::EnclosureRSS2Impl ( const Syndication::RSS2::Item & item,
const Syndication::RSS2::Enclosure & enc )
explicit

Definition at line 16 of file enclosurerss2impl.cpp.

Member Function Documentation

◆ duration()

uint Syndication::EnclosureRSS2Impl::duration ( ) const
overridevirtual

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

Returns
the duration of the file in seconds, or 0 if not specified

Implements Syndication::Enclosure.

Definition at line 48 of file enclosurerss2impl.cpp.

◆ isNull()

bool Syndication::EnclosureRSS2Impl::isNull ( ) const
overridevirtual

returns whether this enclosure is a null object.

Implements Syndication::Enclosure.

Definition at line 22 of file enclosurerss2impl.cpp.

◆ length()

uint Syndication::EnclosureRSS2Impl::length ( ) const
overridevirtual

returns the length of the linked file in bytes

Returns
the length of the file in bytes, 0 if not specified

Implements Syndication::Enclosure.

Definition at line 43 of file enclosurerss2impl.cpp.

◆ title()

QString Syndication::EnclosureRSS2Impl::title ( ) const
overridevirtual

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.

Returns
title describing the enclosure, or a null string if not specified.

Implements Syndication::Enclosure.

Definition at line 32 of file enclosurerss2impl.cpp.

◆ type()

QString Syndication::EnclosureRSS2Impl::type ( ) const
overridevirtual

mimetype of the enclosure.

TODO: link mimetype specs

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

Returns
the mimetype of the file, or a null string if not specified

Implements Syndication::Enclosure.

Definition at line 38 of file enclosurerss2impl.cpp.

◆ url()

QString Syndication::EnclosureRSS2Impl::url ( ) const
overridevirtual

The URL of the linked resource (required).

Implements Syndication::Enclosure.

Definition at line 27 of file enclosurerss2impl.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
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.