Attica
9#include "cloudparser.h"
10#include "atticautils.h"
18 while (!xml.
atEnd()) {
22 if (xml.
name() == QLatin1String(
"name")) {
24 }
else if (xml.
name() == QLatin1String(
"url")) {
27 }
else if (xml.
name() == QLatin1String(
"icon")) {
29 }
else if (xml.
name() == QLatin1String(
"quota")) {
31 }
else if (xml.
name() == QLatin1String(
"free")) {
33 }
else if (xml.
name() == QLatin1String(
"used")) {
35 }
else if (xml.
name() == QLatin1String(
"relative")) {
37 }
else if (xml.
name() == QLatin1String(
"key")) {
48QStringList Cloud::Parser::xmlElement()
const
50 return QStringList(QLatin1String(
"cloud"));
Represents a cloud service.
void setUrl(const QString &url)
Sets the url of the Cloud service.
void setQuota(qulonglong quota)
Sets the quota of the Cloud service.
void setRelative(float relative)
Sets the relative of the Cloud service.
void setUsed(qulonglong used)
Sets the used amount of the Cloud service.
void setKey(const QString &privateKey)
Sets the private key of the Cloud service.
void setName(const QString &name)
Sets the name of the Cloud service.
void setFree(qulonglong free)
Sets the free amount of the Cloud service.
void setIcon(const QUrl &icon)
Sets the icon of the Cloud service.
Cloud()
Creates an empty Cloud.
float toFloat(bool *ok) const const
qulonglong toULongLong(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 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.