File indexing completed on 2024-09-15 12:05:37
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 #include "category.h" 0009 0010 namespace Syndication 0011 { 0012 Category::~Category() 0013 { 0014 } 0015 0016 QString Category::debugInfo() const 0017 { 0018 QString info = QLatin1String("# Category begin ##################\n"); 0019 0020 QString dterm = term(); 0021 0022 if (!dterm.isNull()) { 0023 info += QLatin1String("term: #") + dterm + QLatin1String("#\n"); 0024 } 0025 0026 QString dscheme = scheme(); 0027 0028 if (!dscheme.isNull()) { 0029 info += QLatin1String("scheme: #") + dscheme + QLatin1String("#\n"); 0030 } 0031 0032 QString dlabel = label(); 0033 0034 if (!dlabel.isNull()) { 0035 info += QLatin1String("label: #") + dlabel + QLatin1String("#\n"); 0036 } 0037 0038 info += QLatin1String("# Category end ####################\n"); 0039 0040 return info; 0041 } 0042 0043 } // namespace Syndication