File indexing completed on 2024-11-10 12:29:10
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_CATEGORYRSS2IMPL_H 0009 #define SYNDICATION_MAPPER_CATEGORYRSS2IMPL_H 0010 0011 #include <category.h> 0012 #include <rss2/category.h> 0013 0014 namespace Syndication 0015 { 0016 class CategoryRSS2Impl; 0017 typedef QSharedPointer<CategoryRSS2Impl> CategoryRSS2ImplPtr; 0018 0019 /** 0020 * 0021 * @internal 0022 * @author Frank Osterfeld 0023 */ 0024 class CategoryRSS2Impl : public Syndication::Category 0025 { 0026 public: 0027 explicit CategoryRSS2Impl(const Syndication::RSS2::Category &category); 0028 0029 Q_REQUIRED_RESULT bool isNull() const override; 0030 0031 Q_REQUIRED_RESULT QString term() const override; 0032 0033 Q_REQUIRED_RESULT QString label() const override; 0034 0035 Q_REQUIRED_RESULT QString scheme() const override; 0036 0037 private: 0038 Syndication::RSS2::Category m_category; 0039 }; 0040 0041 } // namespace Syndication 0042 0043 #endif // SYNDICATION_MAPPER_CATEGORYRSS2IMPL_H