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

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 "textinput.h"
0009 #include "property.h"
0010 #include "resource.h"
0011 #include "rssvocab.h"
0012 #include "statement.h"
0013 
0014 namespace Syndication
0015 {
0016 namespace RDF
0017 {
0018 TextInput::TextInput()
0019     : ResourceWrapper()
0020 {
0021 }
0022 
0023 TextInput::TextInput(ResourcePtr resource)
0024     : ResourceWrapper(resource)
0025 {
0026 }
0027 
0028 TextInput::~TextInput()
0029 {
0030 }
0031 
0032 QString TextInput::title() const
0033 {
0034     return resource()->property(RSSVocab::self()->title())->asString();
0035 }
0036 
0037 QString TextInput::description() const
0038 {
0039     return resource()->property(RSSVocab::self()->description())->asString();
0040 }
0041 
0042 QString TextInput::link() const
0043 {
0044     return resource()->property(RSSVocab::self()->link())->asString();
0045 }
0046 
0047 QString TextInput::name() const
0048 {
0049     return resource()->property(RSSVocab::self()->name())->asString();
0050 }
0051 
0052 QString TextInput::debugInfo() const
0053 {
0054     QString info = QLatin1String("### TextInput: ###################\n");
0055     info += QLatin1String("title: #") + title() + QLatin1String("#\n");
0056     info += QLatin1String("link: #") + link() + QLatin1String("#\n");
0057     info += QLatin1String("description: #") + description() + QLatin1String("#\n");
0058     info += QLatin1String("name: #") + name() + QLatin1String("#\n");
0059     info += QLatin1String("### TextInput end ################\n");
0060     return info;
0061 }
0062 
0063 } // namespace RDF
0064 } // namespace Syndication