Syndication

enclosureatomimpl.cpp
1 /*
2  This file is part of the syndication library
3  SPDX-FileCopyrightText: 2006 Frank Osterfeld <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #include "enclosureatomimpl.h"
9 
10 #include <QString>
11 
12 namespace Syndication
13 {
14 EnclosureAtomImpl::EnclosureAtomImpl(const Syndication::Atom::Link &link)
15  : m_link(link)
16 {
17 }
18 
20 {
21  return m_link.isNull();
22 }
23 
25 {
26  return m_link.href();
27 }
28 
30 {
31  return m_link.title();
32 }
33 
35 {
36  return m_link.type();
37 }
38 
40 {
41  return m_link.length();
42 }
43 
45 {
46  return 0;
47 }
48 
49 } // namespace Syndication
bool isNull() const override
returns whether this enclosure is a null object.
QString url() const override
The URL of the linked resource (required).
QString title() const override
title of the enclosure.
QString type() const override
mimetype of the enclosure.
uint length() const override
returns the length of the linked file in bytes
uint duration() const override
for audio/video files, the duration of the file in seconds
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Dec 6 2021 22:54:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.