Syndication

rdf/textinput.cpp
1 /*
2  This file is part of the syndication library
3  SPDX-FileCopyrightText: 2006 Frank Osterfeld <[email protected]>
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 
14 namespace Syndication
15 {
16 namespace RDF
17 {
19  : ResourceWrapper()
20 {
21 }
22 
24  : ResourceWrapper(resource)
25 {
26 }
27 
29 {
30 }
31 
33 {
34  return resource()->property(RSSVocab::self()->title())->asString();
35 }
36 
38 {
39  return resource()->property(RSSVocab::self()->description())->asString();
40 }
41 
43 {
44  return resource()->property(RSSVocab::self()->link())->asString();
45 }
46 
48 {
49  return resource()->property(RSSVocab::self()->name())->asString();
50 }
51 
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
TextInput()
creates an object wrapping a null resource.
~TextInput() override
destructor
QString link() const
The URL to which a textinput submission will be directed (using GET).
QString name() const
The text input field's (variable) name.
QString description() const
A brief description of the textinput field's purpose.
QString debugInfo() const
Returns a description of the text input for debugging purposes.
QString title() const
A descriptive title for the textinput field.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:57:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.