Syndication

enclosureatomimpl.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_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 /**
20  *
21  * @internal
22  * @author Frank Osterfeld
23  */
25 {
26 public:
27  explicit EnclosureAtomImpl(const Syndication::Atom::Link &link);
28 
29  Q_REQUIRED_RESULT bool isNull() const override;
30 
31  Q_REQUIRED_RESULT QString url() const override;
32 
33  Q_REQUIRED_RESULT QString title() const override;
34 
35  Q_REQUIRED_RESULT QString type() const override;
36 
37  Q_REQUIRED_RESULT uint length() const override;
38 
39  Q_REQUIRED_RESULT uint duration() const override;
40 
41 private:
43 };
44 
45 } // namespace Syndication
46 
47 #endif // SYNDICATION_MAPPER_ENCLOSUREATOMIMPL_H
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
bool isNull() const override
returns whether this enclosure is a null object.
An enclosure describes a (media) file available on the net.
Definition: enclosure.h:31
QString title() const override
title of the enclosure.
uint length() const override
returns the length of the linked file in bytes
QString type() const override
mimetype of the enclosure.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 9 2023 03:49:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.