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

syndication/rss2

  • syndication
  • rss2
cloud.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 "cloud.h"
24
25#include <QtCore/QString>
26
27namespace Syndication {
28namespace RSS2 {
29
30
31Cloud::Cloud() : ElementWrapper()
32{
33}
34
35Cloud::Cloud(const QDomElement& element) : ElementWrapper(element)
36{
37}
38
39QString Cloud::domain() const
40{
41 return attribute(QLatin1String("domain"));
42}
43
44int Cloud::port() const
45{
46 if (hasAttribute(QLatin1String("port")))
47 {
48 bool ok;
49 int c = attribute(QLatin1String("port")).toInt(&ok);
50 return ok ? c : -1;
51 }
52
53 return -1;
54}
55
56QString Cloud::path() const
57{
58 return attribute(QLatin1String("path"));
59}
60
61QString Cloud::registerProcedure() const
62{
63 return attribute(QLatin1String("registerProcedure"));
64}
65
66QString Cloud::protocol() const
67{
68
69 return attribute(QLatin1String("protocol"));
70}
71
72QString Cloud::debugInfo() const
73{
74 QString info;
75 info += QLatin1String("### Cloud: ###################\n");
76 if (!domain().isNull())
77 info += QLatin1String("domain: #") + domain() + QLatin1String("#\n");
78 if (port() != -1)
79 info += QLatin1String("port: #") + QString::number(port()) + QLatin1String("#\n");
80 if (!path().isNull())
81 info += QLatin1String("path: #") + path() + QLatin1String("#\n");
82 if (!registerProcedure().isNull())
83 info += QLatin1String("registerProcedure: #") + registerProcedure() + QLatin1String("#\n");
84 if (!protocol().isNull())
85 info += QLatin1String("protocol: #") + protocol() + QLatin1String("#\n");
86 info += QLatin1String("### Cloud end ################\n");
87 return info;
88}
89
90
91} // namespace RSS2
92} // namespace Syndication
93
Syndication::RSS2::Cloud::debugInfo
QString debugInfo() const
Returns a description of the object for debugging purposes.
Definition: cloud.cpp:72
Syndication::RSS2::Cloud::path
QString path() const
the remote path to connect to
Definition: cloud.cpp:56
Syndication::RSS2::Cloud::domain
QString domain() const
the remote domain
Definition: cloud.cpp:39
Syndication::RSS2::Cloud::port
int port() const
the remote port to connect to
Definition: cloud.cpp:44
Syndication::RSS2::Cloud::protocol
QString protocol() const
protocol used for publish-subscribe, e.g.
Definition: cloud.cpp:66
Syndication::RSS2::Cloud::Cloud
Cloud()
Default constructor, creates a null object, for which isNull() is true.
Definition: cloud.cpp:31
Syndication::RSS2::Cloud::registerProcedure
QString registerProcedure() const
register procedure, e.g.
Definition: cloud.cpp:61
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 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-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