Syndication Library
36 info += QLatin1String(
"# Enclosure begin #################\n");
42 info += QLatin1String(
"url: #") + durl + QLatin1String(
"#\n");
45 QString dtitle =
title();
49 info += QLatin1String(
"title: #") + dtitle + QLatin1String(
"#\n");
52 QString dtype =
type();
56 info += QLatin1String(
"type: #") + dtype + QLatin1String(
"#\n");
63 info += QLatin1String(
"length: #") + QString::number(dlength) + QLatin1String(
"#\n");
70 int hours = dduration / 3600;
71 int minutes = (dduration - hours*3600) / 60;
72 int seconds = dduration - hours*3600 - minutes*60;
73 info += QString::fromLatin1(
"duration: #%1 (%2:%3:%4)#\n").arg(dduration).arg(hours).arg(minutes).arg(seconds);
76 info += QLatin1String(
"# Enclosure end ###################\n");
virtual ~Enclosure()
destructor
virtual QString debugInfo() const
description of this enclosure for debugging purposes
virtual QString type() const =0
mimetype of the enclosure.
virtual uint length() const =0
returns the length of the linked file in bytes
virtual QString url() const =0
The URL of the linked resource (required).
virtual QString title() const =0
title of the enclosure.
virtual uint duration() const =0
for audio/video files, the duration of the file in seconds
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Jul 20 2023 00:00:00 by
doxygen 1.9.8 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.