Syndication

atom/person.cpp
1 /*
2  This file is part of the syndication library
3  SPDX-FileCopyrightText: 2006 Frank Osterfeld <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #include "person.h"
9 #include "constants.h"
10 
11 #include <QString>
12 
13 namespace Syndication
14 {
15 namespace Atom
16 {
17 
19 {
20 }
21 
23 {
24 }
25 
27 {
29  QStringLiteral("name"));
30 }
31 
33 {
34 
36  QStringLiteral("uri")));
37 }
38 
40 {
42  QStringLiteral("email"));
43 }
44 
46 {
47  QString info = QLatin1String("### Person: ###################\n");
48  info += QLatin1String("name: #") + name() + QLatin1String("#\n");
49  info += QLatin1String("email: #") + email() + QLatin1String("#\n");
50  info += QLatin1String("uri: #") + uri() + QLatin1String("#\n");
51  info += QLatin1String("### Person end ################\n");
52 
53  return info;
54 }
55 
56 } // namespace Atom
57 } //namespace Syndication
A wrapper for XML elements.
QString atom1Namespace()
namespace used by Atom 1.0 elements
QString email() const
returns an e-mail address associated with the person.
Definition: atom/person.cpp:39
QString completeURI(const QString &uri) const
completes relative URIs with a prefix specified via xml:base.
QString debugInfo() const
description for debugging purposes
Definition: atom/person.cpp:45
QString name() const
a human-readable name for the person.
Definition: atom/person.cpp:26
const QDomElement & element() const
returns the wrapped resource.
QString extractElementTextNS(const QString &namespaceURI, const QString &localName) const
extracts the text from a child element, respecting namespaces.
Person()
creates a null person object
Definition: atom/person.cpp:18
QString uri() const
A URI associated with the person (optional).
Definition: atom/person.cpp:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 23:01:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.