• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

syndication/rdf

  • syndication
  • rdf
textinput.cpp
1/*
2 * This file is part of the syndication library
3 *
4 * Copyright (C) 2006 Frank Osterfeld <osterfeld@kde.org>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 *
21 */
22
23#include "textinput.h"
24#include "rssvocab.h"
25#include "property.h"
26#include "resource.h"
27#include "statement.h"
28
29#include <QtCore/QString>
30
31namespace Syndication {
32namespace RDF {
33
34TextInput::TextInput() : ResourceWrapper()
35{
36}
37
38TextInput::TextInput(ResourcePtr resource) : ResourceWrapper(resource)
39{
40}
41
42TextInput::~TextInput()
43{
44}
45
46QString TextInput::title() const
47{
48 return resource()->property(RSSVocab::self()->title())->asString();
49}
50
51QString TextInput::description() const
52{
53 return resource()->property(RSSVocab::self()->description())->asString();
54}
55
56QString TextInput::link() const
57{
58 return resource()->property(RSSVocab::self()->link())->asString();
59}
60
61QString TextInput::name() const
62{
63 return resource()->property(RSSVocab::self()->name())->asString();
64}
65
66QString TextInput::debugInfo() const
67{
68 QString info;
69 info += QLatin1String("### TextInput: ###################\n");
70 info += QLatin1String("title: #") + title() + QLatin1String("#\n");
71 info += QLatin1String("link: #") + link() + QLatin1String("#\n");
72 info += QLatin1String("description: #") + description() + QLatin1String("#\n");
73 info += QLatin1String("name: #") + name() + QLatin1String("#\n");
74 info += QLatin1String("### TextInput end ################\n");
75 return info;
76}
77
78
79} // namespace RDF
80} // namespace Syndication
Syndication::RDF::RSSVocab::self
static RSSVocab * self()
returns the singleton instance
Definition rssvocab.cpp:81
Syndication::RDF::ResourceWrapper
A wrapper for RDF resources.
Definition resourcewrapper.h:41
Syndication::RDF::ResourceWrapper::resource
ResourcePtr resource() const
returns the wrapped resource.
Definition resourcewrapper.cpp:75
Syndication::RDF::TextInput::link
QString link() const
The URL to which a textinput submission will be directed (using GET).
Definition textinput.cpp:56
Syndication::RDF::TextInput::title
QString title() const
A descriptive title for the textinput field.
Definition textinput.cpp:46
Syndication::RDF::TextInput::name
QString name() const
The text input field's (variable) name.
Definition textinput.cpp:61
Syndication::RDF::TextInput::~TextInput
virtual ~TextInput()
destructor
Definition textinput.cpp:42
Syndication::RDF::TextInput::description
QString description() const
A brief description of the textinput field's purpose.
Definition textinput.cpp:51
Syndication::RDF::TextInput::TextInput
TextInput()
creates an object wrapping a null resource.
Definition textinput.cpp:34
Syndication::RDF::TextInput::debugInfo
QString debugInfo() const
Returns a description of the text input for debugging purposes.
Definition textinput.cpp:66
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

syndication/rdf

Skip menu "syndication/rdf"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal