File indexing completed on 2024-12-08 09:46:40
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 "image.h" 0009 0010 namespace Syndication 0011 { 0012 Image::~Image() 0013 { 0014 } 0015 0016 QString Image::debugInfo() const 0017 { 0018 QString info = QLatin1String("# Image begin #####################\n"); 0019 0020 QString durl = url(); 0021 0022 if (!durl.isNull()) { 0023 info += QLatin1String("url: #") + durl + QLatin1String("#\n"); 0024 } 0025 0026 QString dtitle = title(); 0027 0028 if (!dtitle.isNull()) { 0029 info += QLatin1String("title: #") + dtitle + QLatin1String("#\n"); 0030 } 0031 0032 QString dlink = link(); 0033 0034 if (!dlink.isNull()) { 0035 info += QLatin1String("link: #") + dlink + QLatin1String("#\n"); 0036 } 0037 0038 QString ddescription = description(); 0039 0040 if (!ddescription.isNull()) { 0041 info += QLatin1String("description: #") + ddescription + QLatin1String("#\n"); 0042 } 0043 0044 int dheight = height(); 0045 if (dheight > 0) { 0046 info += QLatin1String("height: #") + QString::number(height()) + QLatin1String("#\n"); 0047 } 0048 0049 int dwidth = width(); 0050 if (dwidth > 0) { 0051 info += QLatin1String("width: #") + QString::number(width()) + QLatin1String("#\n"); 0052 } 0053 info += QLatin1String("# Image end #######################\n"); 0054 0055 return info; 0056 } 0057 0058 } // namespace Syndication