• 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
source.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 "source.h"
24 #include "tools.h"
25 
26 #include <QtCore/QString>
27 
28 namespace Syndication {
29 namespace RSS2 {
30 
31 Source::Source() : ElementWrapper()
32 {
33 }
34 
35 Source::Source(const QDomElement& element) : ElementWrapper(element)
36 {
37 }
38 
39 QString Source::source() const
40 {
41  return text();
42 }
43 
44 QString Source::url() const
45 {
46  return attribute(QLatin1String("url"));
47 }
48 
49 QString Source::debugInfo() const
50 {
51  QString info;
52  info += QLatin1String("### Source: ###################\n");
53  if (!source().isNull())
54  info += QLatin1String("source: #") + source() + QLatin1String("#\n");
55  if (!url().isNull())
56  info += QLatin1String("url: #") + url() + QLatin1String("#\n");
57  info += QLatin1String("### Source end ################\n");
58  return info;
59 }
60 
61 
62 } // namespace RSS2
63 } // namespace Syndication
64 
Syndication::RSS2::Source::debugInfo
QString debugInfo() const
Returns a description of the object for debugging purposes.
Definition: source.cpp:49
QString
Syndication::RSS2::Source::url
QString url() const
Required attribute, links to the XMLization of the source.
Definition: source.cpp:44
QLatin1String
Syndication::RSS2::Source::Source
Source()
Default constructor, creates a null object, for which isNull() is true.
Definition: source.cpp:31
QDomElement
Syndication::RSS2::Source::source
QString source() const
The name of the RSS channel that the item came from, derived from its . </div><div class="ttdef"><b>Definition:</b> <a href="source_8cpp_source.html#l00039">source.cpp:39</a></div></div> </div><!-- fragment --></div><!-- contents --> <div class="copyrights"> This file is part of the KDE documentation.<br/> Documentation copyright © 1996-2020 The KDE developers.<br/> Generated on Mon Jun 22 2020 13:37:41 by <a href="https://www.doxygen.org/">doxygen</a> 1.8.7 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2006 <p> KDE's <a href="https://community.kde.org/Policies/Library_Documentation_Policy">Doxygen guidelines</a> are available online. </p> </div> </div> </div> </div> <div id="left"> <div class="menu_box"> <a name="cp-menu" /><div class="menutitle"><div> <h2 id="cp-menu-project">syndication/rss2</h2> <a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "syndication/rss2"</a> </div></div> <ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="functions.html">Class Members</a></li><li><a href="files.html">File List</a></li></ul> <!-- <h2>Class Picker</h2> <div style="text-align: center;"> <form name="guideform"> <select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value"> <option value="annotated.html">-- Choose --</option> <option value="classSyndication_1_1RSS2_1_1Category.html">syndication::rss2::category</option>, <option value="classSyndication_1_1RSS2_1_1Cloud.html">syndication::rss2::cloud</option>, <option value="classSyndication_1_1RSS2_1_1Document.html">syndication::rss2::document</option>, <option value="classSyndication_1_1RSS2_1_1Enclosure.html">syndication::rss2::enclosure</option>, <option value="classSyndication_1_1RSS2_1_1Image.html">syndication::rss2::image</option>, <option value="classSyndication_1_1RSS2_1_1Parser.html">syndication::rss2::parser</option>, <option value="classSyndication_1_1RSS2_1_1Source.html">syndication::rss2::source</option>, <option value="classSyndication_1_1RSS2_1_1TextInput.html">syndication::rss2::textinput</option>, </select> </form> </div> --> <div class="menu_box"> <a name="cp-menu" /><div class="menutitle"><div> <h2 id="cp-menu-project">kdepimlibs API Reference</h2> <a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "kdepimlibs API Reference"</a> </div></div> <div class="nav_list"> <ul> <li><a href="../../../akonadi/html/index.html">akonadi</a></li><li>  <a href="../../../akonadi/contact/html/index.html">contact</a></li><li>  <a href="../../../akonadi/kmime/html/index.html">kmime</a></li><li>  <a href="../../../akonadi/socialutils/html/index.html">socialutils</a></li><li><a href="../../../kabc/html/index.html">kabc</a></li><li><a href="../../../kalarmcal/html/index.html">kalarmcal</a></li><li><a href="../../../kblog/html/index.html">kblog</a></li><li><a href="../../../kcal/html/index.html">kcal</a></li><li><a href="../../../kcalcore/html/index.html">kcalcore</a></li><li><a href="../../../kcalutils/html/index.html">kcalutils</a></li><li><a href="../../../kholidays/html/index.html">kholidays</a></li><li><a href="../../../kimap/html/index.html">kimap</a></li><li><a href="../../../kioslave/html/index.html">kioslave</a></li><li>  <a href="../../../kioslave/imap4/html/index.html">imap4</a></li><li>  <a href="../../../kioslave/mbox/html/index.html">mbox</a></li><li>  <a href="../../../kioslave/nntp/html/index.html">nntp</a></li><li><a href="../../../kldap/html/index.html">kldap</a></li><li><a href="../../../kmbox/html/index.html">kmbox</a></li><li><a href="../../../kmime/html/index.html">kmime</a></li><li><a href="../../../kontactinterface/html/index.html">kontactinterface</a></li><li><a href="../../../kpimidentities/html/index.html">kpimidentities</a></li><li><a href="../../../kpimtextedit/html/index.html">kpimtextedit</a></li><li><a href="../../../kpimutils/html/index.html">kpimutils</a></li><li><a href="../../../kresources/html/index.html">kresources</a></li><li><a href="../../../ktnef/html/index.html">ktnef</a></li><li><a href="../../../kxmlrpcclient/html/index.html">kxmlrpcclient</a></li><li><a href="../../../mailtransport/html/index.html">mailtransport</a></li><li><a href="../../../microblog/html/index.html">microblog</a></li><li><a href="../../../qgpgme/html/index.html">qgpgme</a></li><li><a href="../../../syndication/html/index.html">syndication</a></li><li>  <a href="../../../syndication/atom/html/index.html">atom</a></li><li>  <a href="../../../syndication/rdf/html/index.html">rdf</a></li><li>  <a href="../../../syndication/rss2/html/index.html">rss2</a></li> </ul></div></div> <!-- api_searchbox --> <div class="menu_box"> <div class="menutitle"><div><h2>Search</h2></div></div> <div style="text-align: left;"> <form action="/mapsearcher.php" method="get"> <input type="text" name="class" value="search term" style="width:100%;" onclick="this.value='';"/> <br /> <select name="module"> <option>ALL</option> <option>kdelibs</option> <option>kdepimlibs</option> <option>kdebase-apps</option> <option>kdebase-runtime</option> <option>kdebase-workspace</option> <option>kdeedu</option> <option>kdegames</option> <option>kdegraphics</option> <option>kdemultimedia</option> <option>kdenetwork</option> <option>kdepim</option> <option>kdepim-runtime</option> <option>kdeplasma-addons</option> <option>kdesdk</option> <option>kdevelop</option> <option>kdeutils</option> <option>kdewebdev</option> <option>kdesupport</option> </select> <select name="version"> <option>ALL</option> <option>4.x</option> <option>4.8</option> <option>3.5</option> <option>extragear</option> <option>kdesupport</option> </select><br/> <input type="submit" name="go" value="Go" /> </form> </div> </div> </div> </div> <div class="clearer"></div> </div> <div class="clearer"></div> </div> <div id="end_body"></div> <div id="footer"><div id="footer_text"> Report problems with this website to <a href="https://go.kde.org/systickets/">our bug tracking system</a>.<br> Contact the specific authors with questions and comments about the page contents.<p> KDE<sup>®</sup> and <a href="/media/images/kde_gear_black.png">the K Desktop Environment<sup>®</sup> logo</a> are registered trademarks of <a href="https://ev.kde.org/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> | <a href="https://kde.org/community/whatiskde/impressum">Legal</a></p> </div></div> </div> <!-- WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL BE BLOCKED INSTANTLY AND PERMANENTLY! <a href="mailto:aaaatrap-45abe0e0c3bebc77@kde.org">Block me</a> WARNING END --> </body> </html>