Attica
9#include "forumparser.h"
10#include "atticautils.h"
18 while (!xml.
atEnd()) {
22 if (xml.
name() == QLatin1String(
"id")) {
24 }
else if (xml.
name() == QLatin1String(
"name")) {
26 }
else if (xml.
name() == QLatin1String(
"description")) {
28 }
else if (xml.
name() == QLatin1String(
"date")) {
30 }
else if (xml.
name() == QLatin1String(
"icon")) {
32 }
else if (xml.
name() == QLatin1String(
"childcount")) {
34 }
else if (xml.
name() == QLatin1String(
"children")) {
35 QList<Forum> children = parseXmlChildren(xml);
36 forum.setChildren(children);
37 }
else if (xml.
name() == QLatin1String(
"topics")) {
48QList<Forum> Forum::Parser::parseXmlChildren(QXmlStreamReader &xml)
50 QList<Forum> children;
52 while (!xml.
atEnd()) {
56 if (xml.
name() == QLatin1String(
"forum")) {
57 Forum forum = parseXml(xml);
58 children.append(forum);
68QStringList Forum::Parser::xmlElement()
const
70 return QStringList(QStringLiteral(
"forum"));
int toInt(bool *ok, int base) const const
bool isEndElement() const const
bool isStartElement() const const
QStringView name() const const
QString readElementText(ReadElementTextBehaviour behaviour)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 7 2025 11:52:09 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.