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

syndication/rdf

  • sources
  • kde-4.14
  • kdepimlibs
  • 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 
31 namespace Syndication {
32 namespace RDF {
33 
34 TextInput::TextInput() : ResourceWrapper()
35 {
36 }
37 
38 TextInput::TextInput(ResourcePtr resource) : ResourceWrapper(resource)
39 {
40 }
41 
42 TextInput::~TextInput()
43 {
44 }
45 
46 QString TextInput::title() const
47 {
48  return resource()->property(RSSVocab::self()->title())->asString();
49 }
50 
51 QString TextInput::description() const
52 {
53  return resource()->property(RSSVocab::self()->description())->asString();
54 }
55 
56 QString TextInput::link() const
57 {
58  return resource()->property(RSSVocab::self()->link())->asString();
59 }
60 
61 QString TextInput::name() const
62 {
63  return resource()->property(RSSVocab::self()->name())->asString();
64 }
65 
66 QString 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::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::name
QString name() const
The text input field's (variable) name.
Definition: textinput.cpp:61
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::RSSVocab::self
static RSSVocab * self()
returns the singleton instance
Definition: rssvocab.cpp:81
Syndication::RDF::TextInput::~TextInput
virtual ~TextInput()
destructor
Definition: textinput.cpp:42
QString
QLatin1String
Syndication::RDF::ResourceWrapper::resource
ResourcePtr resource() const
returns the wrapped resource.
Definition: resourcewrapper.cpp:75
Syndication::RDF::TextInput::title
QString title() const
A descriptive title for the textinput field.
Definition: textinput.cpp:46
Syndication::RDF::TextInput::debugInfo
QString debugInfo() const
Returns a description of the text input for debugging purposes.
Definition: textinput.cpp:66
Syndication::RDF::ResourceWrapper
A wrapper for RDF resources.
Definition: resourcewrapper.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:38 by doxygen 1.8.7 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 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