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

syndication/rss2

  • sources
  • kde-4.14
  • kdepimlibs
  • syndication
  • rss2
textinput.cpp
1 /*
2  * This file is part of the syndication library
3  *
4  * Copyright (C) 2005 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 "tools.h"
25 
26 #include <QtCore/QString>
27 
28 namespace Syndication {
29 namespace RSS2 {
30 
31 
32 TextInput::TextInput() : ElementWrapper()
33 {
34 }
35 
36 TextInput::TextInput(const QDomElement& element) : ElementWrapper(element)
37 {
38 }
39 
40 QString TextInput::title() const
41 {
42  return extractElementTextNS(QString(), QLatin1String("title") );
43 }
44 
45 QString TextInput::name() const
46 {
47  return extractElementTextNS(QString(), QLatin1String("name") );
48 }
49 
50 QString TextInput::description() const
51 {
52  return extractElementTextNS(QString(), QLatin1String("description") );
53 }
54 
55 QString TextInput::link() const
56 {
57  return extractElementTextNS(QString(), QLatin1String("link") );
58 
59 }
60 
61 QString TextInput::debugInfo() const
62 {
63  QString info;
64  info += QLatin1String("### TextInput: ###################\n");
65  if (!title().isNull())
66  info += QLatin1String("title: #") + title() + QLatin1String("#\n");
67  if (!link().isNull())
68  info += QLatin1String("link: #") + link() + QLatin1String("#\n");
69  if (!description().isNull())
70  info += QLatin1String("description: #") + description() + QLatin1String("#\n");
71  if (!name().isNull())
72  info += QLatin1String("name: #") + name() + QLatin1String("#\n");
73  info += QLatin1String("### TextInput end ################\n");
74  return info;
75 }
76 
77 } // namespace RSS2
78 } // namespace Syndication
Syndication::RSS2::TextInput::link
QString link() const
The URL of the CGI script that processes text input requests.
Definition: textinput.cpp:55
Syndication::RSS2::TextInput::TextInput
TextInput()
Default constructor, creates a null object, for which isNull() is true.
Definition: textinput.cpp:32
Syndication::RSS2::TextInput::title
QString title() const
The label of the Submit button in the text input area.
Definition: textinput.cpp:40
Syndication::RSS2::TextInput::name
QString name() const
The name of the text object in the text input area.
Definition: textinput.cpp:45
QString
Syndication::RSS2::TextInput::description
QString description() const
Explains the text input area.
Definition: textinput.cpp:50
QLatin1String
QDomElement
Syndication::RSS2::TextInput::debugInfo
QString debugInfo() const
Returns a description of the object for debugging purposes.
Definition: textinput.cpp:61
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

syndication/rss2

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

kdepimlibs API Reference

Skip menu "kdepimlibs 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

Search



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