1/*
2 This file is part of the syndication library
3 SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#include "textinput.h"
9#include "property.h"
10#include "resource.h"
11#include "rssvocab.h"
12#include "statement.h"
13
14namespace Syndication
15{
16namespace RDF
17{
18TextInput::TextInput()
19 : ResourceWrapper()
20{
21}
22
23TextInput::TextInput(ResourcePtr resource)
24 : ResourceWrapper(resource)
25{
26}
27
28TextInput::~TextInput()
29{
30}
31
32QString TextInput::title() const
33{
34 return resource()->property(property: RSSVocab::self()->title())->asString();
35}
36
37QString TextInput::description() const
38{
39 return resource()->property(property: RSSVocab::self()->description())->asString();
40}
41
42QString TextInput::link() const
43{
44 return resource()->property(property: RSSVocab::self()->link())->asString();
45}
46
47QString TextInput::name() const
48{
49 return resource()->property(property: RSSVocab::self()->name())->asString();
50}
51
52QString TextInput::debugInfo() const
53{
54 QString info = QLatin1String("### TextInput: ###################\n");
55 info += QLatin1String("title: #") + title() + QLatin1String("#\n");
56 info += QLatin1String("link: #") + link() + QLatin1String("#\n");
57 info += QLatin1String("description: #") + description() + QLatin1String("#\n");
58 info += QLatin1String("name: #") + name() + QLatin1String("#\n");
59 info += QLatin1String("### TextInput end ################\n");
60 return info;
61}
62
63} // namespace RDF
64} // namespace Syndication
65

source code of syndication/src/rdf/textinput.cpp