| 1 | /* |
|---|---|
| 2 | This file is part of the syndication library |
| 3 | SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org> |
| 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 | |
| 19 | bool EnclosureAtomImpl::isNull() const |
| 20 | { |
| 21 | return m_link.isNull(); |
| 22 | } |
| 23 | |
| 24 | QString EnclosureAtomImpl::url() const |
| 25 | { |
| 26 | return m_link.href(); |
| 27 | } |
| 28 | |
| 29 | QString EnclosureAtomImpl::title() const |
| 30 | { |
| 31 | return m_link.title(); |
| 32 | } |
| 33 | |
| 34 | QString EnclosureAtomImpl::type() const |
| 35 | { |
| 36 | return m_link.type(); |
| 37 | } |
| 38 | |
| 39 | uint EnclosureAtomImpl::length() const |
| 40 | { |
| 41 | return m_link.length(); |
| 42 | } |
| 43 | |
| 44 | uint EnclosureAtomImpl::duration() const |
| 45 | { |
| 46 | return 0; |
| 47 | } |
| 48 | |
| 49 | } // namespace Syndication |
| 50 |
