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_ENCLOSURERSS2IMPL_H
9#define SYNDICATION_MAPPER_ENCLOSURERSS2IMPL_H
10
11#include <enclosure.h>
12#include <rss2/enclosure.h>
13#include <rss2/item.h>
14
15namespace Syndication
16{
17class EnclosureRSS2Impl;
18typedef QSharedPointer<EnclosureRSS2Impl> EnclosureRSS2ImplPtr;
19
20class EnclosureRSS2Impl : public Syndication::Enclosure
21{
22public:
23 explicit EnclosureRSS2Impl(const Syndication::RSS2::Item &item, const Syndication::RSS2::Enclosure &enc);
24
25 Q_REQUIRED_RESULT bool isNull() const override;
26
27 Q_REQUIRED_RESULT QString url() const override;
28
29 Q_REQUIRED_RESULT QString title() const override;
30
31 Q_REQUIRED_RESULT QString type() const override;
32
33 Q_REQUIRED_RESULT uint length() const override;
34
35 Q_REQUIRED_RESULT uint duration() const override;
36
37private:
38 Syndication::RSS2::Item m_item;
39 Syndication::RSS2::Enclosure m_enclosure;
40};
41
42} // namespace Syndication
43
44#endif // SYNDICATION_MAPPER_ENCLOSURERSS2IMPL_H
45

source code of syndication/src/mapper/enclosurerss2impl.h