Syndication::Atom::Person Class

class Syndication::Atom::Person

describes a person, with name and optional URI and e-mail address. Used to describe authors and contributors of feeds/entries. More...

Header: #include <Syndication/Atom/Person>
CMake: find_package(KF6 REQUIRED COMPONENTS Syndication)
target_link_libraries(mytarget PRIVATE KF6::Syndication)
Inherits: Syndication::ElementWrapper

Public Functions

Person()
Person(const QDomElement &element)
QString debugInfo() const
QString email() const
QString name() const
QString uri() const

Detailed Description

Member Function Documentation

Person::Person()

creates a null person object

[explicit] Person::Person(const QDomElement &element)

creates a Person object wrapping an Atom Person Construct (atom:author, atom:contributor tags)

element a DOM element, should be a Atom Person Construct (although not enforced), otherwise this object will not parse anything useful

QString Person::debugInfo() const

description for debugging purposes

Returns debug string

QString Person::email() const

returns an e-mail address associated with the person. (optional)

Returns an e-mail address, or a null string if not specified

QString Person::name() const

a human-readable name for the person. (required) The name is a required attribute of person constructs.

Returns a human-readable name of the person

QString Person::uri() const

A URI associated with the person (optional). Usually the homepage.

Returns the URI of the person, or a null string if not specified