Syndication

enclosurerss2impl.h
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 #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 
15 namespace Syndication
16 {
17 class EnclosureRSS2Impl;
18 typedef QSharedPointer<EnclosureRSS2Impl> EnclosureRSS2ImplPtr;
19 
20 /**
21  *
22  * @internal
23  * @author Frank Osterfeld
24  */
26 {
27 public:
28  explicit EnclosureRSS2Impl(const Syndication::RSS2::Item &item, const Syndication::RSS2::Enclosure &enc);
29 
30  Q_REQUIRED_RESULT bool isNull() const override;
31 
32  Q_REQUIRED_RESULT QString url() const override;
33 
34  Q_REQUIRED_RESULT QString title() const override;
35 
36  Q_REQUIRED_RESULT QString type() const override;
37 
38  Q_REQUIRED_RESULT uint length() const override;
39 
40  Q_REQUIRED_RESULT uint duration() const override;
41 
42 private:
43  Syndication::RSS2::Item m_item;
44  Syndication::RSS2::Enclosure m_enclosure;
45 };
46 
47 } // namespace Syndication
48 
49 #endif // SYNDICATION_MAPPER_ENCLOSURERSS2IMPL_H
QString type() const override
mimetype of the enclosure.
uint length() const override
returns the length of the linked file in bytes
bool isNull() const override
returns whether this enclosure is a null object.
QString title() const override
title of the enclosure.
QString url() const override
The URL of the linked resource (required).
uint duration() const override
for audio/video files, the duration of the file in seconds
An enclosure describes a (media) file available on the net.
Definition: enclosure.h:31
Describes a media object that is "attached" to the item.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Jun 6 2023 03:56:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.