File indexing completed on 2024-10-13 12:20:34
0001 /* 0002 This file is part of the syndication library 0003 SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #include "enclosureatomimpl.h" 0009 0010 #include <QString> 0011 0012 namespace Syndication 0013 { 0014 EnclosureAtomImpl::EnclosureAtomImpl(const Syndication::Atom::Link &link) 0015 : m_link(link) 0016 { 0017 } 0018 0019 bool EnclosureAtomImpl::isNull() const 0020 { 0021 return m_link.isNull(); 0022 } 0023 0024 QString EnclosureAtomImpl::url() const 0025 { 0026 return m_link.href(); 0027 } 0028 0029 QString EnclosureAtomImpl::title() const 0030 { 0031 return m_link.title(); 0032 } 0033 0034 QString EnclosureAtomImpl::type() const 0035 { 0036 return m_link.type(); 0037 } 0038 0039 uint EnclosureAtomImpl::length() const 0040 { 0041 return m_link.length(); 0042 } 0043 0044 uint EnclosureAtomImpl::duration() const 0045 { 0046 return 0; 0047 } 0048 0049 } // namespace Syndication