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 | #ifndef SYNDICATION_MAPPER_ENCLOSUREATOMIMPL_H |
9 | #define SYNDICATION_MAPPER_ENCLOSUREATOMIMPL_H |
10 | |
11 | #include <atom/link.h> |
12 | #include <enclosure.h> |
13 | |
14 | namespace Syndication |
15 | { |
16 | class EnclosureAtomImpl; |
17 | typedef QSharedPointer<EnclosureAtomImpl> EnclosureAtomImplPtr; |
18 | |
19 | class EnclosureAtomImpl : public Syndication::Enclosure |
20 | { |
21 | public: |
22 | explicit EnclosureAtomImpl(const Syndication::Atom::Link &link); |
23 | |
24 | Q_REQUIRED_RESULT bool isNull() const override; |
25 | |
26 | Q_REQUIRED_RESULT QString url() const override; |
27 | |
28 | Q_REQUIRED_RESULT QString title() const override; |
29 | |
30 | Q_REQUIRED_RESULT QString type() const override; |
31 | |
32 | Q_REQUIRED_RESULT uint length() const override; |
33 | |
34 | Q_REQUIRED_RESULT uint duration() const override; |
35 | |
36 | private: |
37 | Syndication::Atom::Link m_link; |
38 | }; |
39 | |
40 | } // namespace Syndication |
41 | |
42 | #endif // SYNDICATION_MAPPER_ENCLOSUREATOMIMPL_H |
43 | |