File indexing completed on 2024-04-28 11:49:06

0001 /*
0002     This file is part of the syndication library
0003     SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef SYNDICATION_MAPPER_ITEMRDFIMPL_H
0009 #define SYNDICATION_MAPPER_ITEMRDFIMPL_H
0010 
0011 #include <item.h>
0012 #include <rdf/item.h>
0013 
0014 #include <QString>
0015 
0016 namespace Syndication
0017 {
0018 class ItemRDFImpl;
0019 typedef QSharedPointer<ItemRDFImpl> ItemRDFImplPtr;
0020 
0021 /**
0022  * @internal
0023  */
0024 class ItemRDFImpl : public Syndication::Item
0025 {
0026 public:
0027     explicit ItemRDFImpl(const Syndication::RDF::Item &item);
0028 
0029     QString title() const override;
0030 
0031     QString link() const override;
0032 
0033     QString description() const override;
0034 
0035     QString content() const override;
0036 
0037     QList<PersonPtr> authors() const override;
0038 
0039     QString language() const override;
0040 
0041     QString id() const override;
0042 
0043     time_t datePublished() const override;
0044 
0045     time_t dateUpdated() const override;
0046 
0047     QList<EnclosurePtr> enclosures() const override;
0048 
0049     QList<CategoryPtr> categories() const override;
0050 
0051     SpecificItemPtr specificItem() const override;
0052 
0053     int commentsCount() const override;
0054 
0055     QString commentsLink() const override;
0056 
0057     QString commentsFeed() const override;
0058 
0059     QString commentPostUri() const override;
0060 
0061     QMultiMap<QString, QDomElement> additionalProperties() const override;
0062 
0063 private:
0064     Syndication::RDF::Item m_item;
0065 };
0066 
0067 } // namespace Syndication
0068 
0069 #endif // SYNDICATION_MAPPER_ITEMRDFIMPL_H