Syndication

rdf/textinput.cpp
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{
22
24 : ResourceWrapper(resource)
25{
26}
27
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
static RSSVocab * self()
returns the singleton instance
Definition rssvocab.cpp:63
A wrapper for RDF resources.
ResourcePtr resource() const
returns the wrapped resource.
QString link() const
The URL to which a textinput submission will be directed (using GET).
QString title() const
A descriptive title for the textinput field.
~TextInput() override
destructor
QString name() const
The text input field's (variable) name.
QString description() const
A brief description of the textinput field's purpose.
TextInput()
creates an object wrapping a null resource.
QString debugInfo() const
Returns a description of the text input for debugging purposes.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.