Pages
API Documentation
On this page

Syndication::SpecificItemVisitor Class

Visitor interface, following the Visitor design pattern. More...

  • Header: #include <Syndication/SpecificItemVisitor>
  • 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

Use this if you want to process items and the way how to handle the items depends on it's concrete type (e.g. RSS2::Item, RDF::Item...).

TODO: insert code example

Member Function Documentation

[virtual] bool SpecificItemVisitor::visit(Syndication::SpecificItem *item)

call this method to handle an item. Depending on the concrete type of the item, a specialized visit method is called.

item the item to process

Returns whether this visitor handles the type of the item

[virtual] bool SpecificItemVisitor::visitAtomEntry(Syndication::Atom::Entry *item)

reimplement this method to handle Atom entries.

item the Atom entry to visit

Returns whether the visitor handled the entry.

Reimplementations of this method must return true.

[virtual] bool SpecificItemVisitor::visitRDFItem(Syndication::RDF::Item *item)

reimplement this method to handle RDF items.

item the RDF item to visit

Returns whether the visitor handled the item.

Reimplementations of this method must return true.

[virtual] bool SpecificItemVisitor::visitRSS2Item(Syndication::RSS2::Item *item)

reimplement this method to handle RSS2 items.

item the RSS2 item to visit

Returns whether the visitor handled the item.

Reimplementations of this method must return true.

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