Attica
9#include "publisherparser.h"
22 while (!xml.
atEnd()) {
27 if (xml.
name() == QLatin1String(
"id")) {
29 }
else if (xml.
name() == QLatin1String(
"name")) {
31 }
else if (xml.
name() == QLatin1String(
"registrationurl")) {
33 }
else if (xml.
name() == QLatin1String(
"fields")) {
34 while (!xml.
atEnd()) {
37 if (xml.
name() == QLatin1String(
"field")) {
39 while (!xml.
atEnd()) {
42 if (xml.
name() == QLatin1String(
"fieldtype")) {
44 }
else if (xml.
name() == QLatin1String(
"name")) {
46 }
else if (xml.
name() == QLatin1String(
"fieldsize")) {
48 }
else if (xml.
name() == QLatin1String(
"required")) {
50 }
else if (xml.
name() == QLatin1String(
"options")) {
51 while (!xml.
atEnd()) {
54 if (xml.
name() == QLatin1String(
"option")) {
68 publisher.addField(t);
75 }
else if (xml.
name() == QLatin1String(
"supportedtargets")) {
76 while (!xml.
atEnd()) {
79 if (xml.
name() == QLatin1String(
"target")) {
82 publisher.addTarget(t);
84 }
else if (xml.
isEndElement() && (xml.
name() == QLatin1String(
"supportedtargets"))) {
91 && (xml.
name() == QLatin1String(
"publisher") || xml.
name() == QLatin1String(
"user"))) {
98QStringList Publisher::Parser::xmlElement()
const
100 return QStringList(QStringLiteral(
"publisher")) << QStringLiteral(
"user");
int toInt(bool *ok, int base) const const
bool isEndElement() const const
bool isStartElement() const const
QStringView name() const const
QString readElementText(ReadElementTextBehaviour behaviour)
bool readNextStartElement()
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:04 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.