Pages
API Documentation
On this page

Syndication::Person Class

Person objects hold information about a person, such as the author of the content syndicated in the feed. More...

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

List of all members, including inherited members

Public Functions

Detailed Description

Depending on the feed format, different information is available.

While according to the RSS2 spec, RSS2 author elements must contain only an e-mail address, Atom requires the person's name and the e-mail address is optional. Also, in reality, feeds often contain other information than what is specified in the specs. Syndication tries to find out what author information is contained and maps it to this representation.

Member Function Documentation

[virtual] QString Person::debugInfo() const

description of the person for debugging purposes.

[pure virtual] QString Person::email() const

e-mail address of the person (optional)

[pure virtual] bool Person::isNull() const

returns whether this object is a null person

[pure virtual] QString Person::name() const

Returns the name of the person as plain text, or a null string if not specified

[pure virtual] QString Person::uri() const

a URI associated with the person. (optional) This is usually the URL of the person's homepage.

[virtual] bool Person::operator==(const Syndication::Person &other) const

compares two person instances. Persons are equal if and only if their respective name(), uri() and email() values are equal.

other another person instance

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.