File indexing completed on 2024-11-10 03:43:45

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_ITEMRSS2IMPL_H
0009 #define SYNDICATION_MAPPER_ITEMRSS2IMPL_H
0010 
0011 #include <item.h>
0012 #include <rss2/item.h>
0013 
0014 namespace Syndication
0015 {
0016 class ItemRSS2Impl;
0017 typedef QSharedPointer<ItemRSS2Impl> ItemRSS2ImplPtr;
0018 
0019 /**
0020  * @internal
0021  */
0022 class ItemRSS2Impl : public Syndication::Item
0023 {
0024 public:
0025     explicit ItemRSS2Impl(const Syndication::RSS2::Item &item);
0026 
0027     QString title() const override;
0028 
0029     QString link() const override;
0030 
0031     QString description() const override;
0032 
0033     QString content() const override;
0034 
0035     QList<PersonPtr> authors() const override;
0036 
0037     QString language() const override;
0038 
0039     QString id() const override;
0040 
0041     time_t datePublished() const override;
0042 
0043     time_t dateUpdated() const override;
0044 
0045     QList<EnclosurePtr> enclosures() const override;
0046 
0047     QList<CategoryPtr> categories() const override;
0048 
0049     SpecificItemPtr specificItem() const override;
0050 
0051     int commentsCount() const override;
0052 
0053     QString commentsLink() const override;
0054 
0055     QString commentsFeed() const override;
0056 
0057     QString commentPostUri() const override;
0058 
0059     QMultiMap<QString, QDomElement> additionalProperties() const override;
0060 
0061 private:
0062     Syndication::RSS2::Item m_item;
0063 };
0064 
0065 } // namespace Syndication
0066 
0067 #endif // SYNDICATION_MAPPER_ITEMRSS2IMPL_H