19 #include <QtCore/QString> 20 #include <QtCore/QVariant> 21 #include <QtCore/QList> 22 #include <QtCore/QPair> 23 #include <QtCore/QSet> 24 #include <QtCore/QVector> 25 #include <QtCore/QSharedDataPointer> 26 #include <QtCore/QXmlStreamNamespaceDeclarations> 27 #include "KDSoapGlobal.h" 34 class KDSoapNamespacePrefixes;
36 class QXmlStreamWriter;
86 KDSoapValue(
const QString &name,
const QVariant &valueVariant,
const QString &typeNameSpace = QString(),
const QString &typeName = QString());
96 const QString &typeName = QString());
108 if (
this != &other) {
140 void setNillable(
bool nillable);
145 QString name()
const;
150 QString namespaceUri()
const;
155 void setNamespaceUri(
const QString &ns);
160 QVariant value()
const;
165 void setValue(
const QVariant &value);
172 bool isQualified()
const;
186 void setQualified(
bool qualified);
218 void setType(
const QString &nameSpace,
const QString &type);
223 QString typeNs()
const;
228 QString type()
const;
234 void setNamespaceDeclarations(
const QXmlStreamNamespaceDeclarations &namespaceDeclarations);
240 void addNamespaceDeclaration(
const QXmlStreamNamespaceDeclaration &namespaceDeclaration);
246 QXmlStreamNamespaceDeclarations namespaceDeclarations()
const;
252 void setEnvironmentNamespaceDeclarations(
const QXmlStreamNamespaceDeclarations &environmentNamespaceDeclarations);
258 QXmlStreamNamespaceDeclarations environmentNamespaceDeclarations()
const;
277 QByteArray toXml(Use use = LiteralUse,
const QString &messageNamespace = QString())
const;
280 void setName(
const QString &name);
286 friend class KDSoapMessageWriter;
287 void writeElement(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer,
KDSoapValue::Use use,
const QString &messageNamespace,
288 bool forceQualified)
const;
289 void writeElementContents(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer,
KDSoapValue::Use use,
290 const QString &messageNamespace)
const;
291 void writeChildren(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer,
KDSoapValue::Use use,
const QString &messageNamespace,
292 bool forceQualified)
const;
295 QSharedDataPointer<Private> d;
302 KDSOAP_EXPORT QDebug operator<<(QDebug dbg,
const KDSoapValue &value);
304 KDSOAP_EXPORT uint qHash(
const KDSoapValue &value);
344 void addArgument(
const QString &argumentName,
const QVariant &argumentValue,
const QString &typeNameSpace = QString(),
345 const QString &typeName = QString());
364 void setArrayType(
const QString &nameSpace,
const QString &type);
368 QString arrayTypeNs()
const;
372 QString arrayType()
const;
394 QPair<QString, QString> m_arrayType;
395 QList<KDSoapValue> m_attributes;
400 typedef QListIterator<KDSoapValue> KDSoapValueListIterator;
404 #endif // KDSOAPVALUE_H data is serialized according to a given schema, no xsi:type attributes are written out ...
Definition: KDSoapValue.h:273
KDSoapValue & operator=(const KDSoapValue &other)
Definition: KDSoapValue.h:106
Use
Definition: KDSoapValue.h:271
Definition: KDSoapValue.h:311
Definition: KDSoapValue.h:65
void swap(KDSoapValue &other)
Definition: KDSoapValue.h:118
const QList< KDSoapValue > & attributes() const
Definition: KDSoapValue.h:388
Definition: KDSoapValue.h:39
Definition: KDSoapValue.h:326
QList< KDSoapValue > & attributes()
Definition: KDSoapValue.h:381