26 #include <QtCore/QString>
27 #include <QtCore/QVariant>
28 #include <QtCore/QList>
29 #include <QtCore/QPair>
30 #include <QtCore/QSet>
31 #include <QtCore/QVector>
32 #include <QtCore/QSharedDataPointer>
33 #include "KDSoapGlobal.h"
40 #if QT_VERSION < 0x040800
41 Q_DECLARE_METATYPE(
signed char)
45 class KDSoapNamespacePrefixes;
47 class QXmlStreamWriter;
82 KDSoapValue(
const QString &name,
const QVariant &valueVariant,
const QString &typeNameSpace = QString(),
const QString &typeName = QString());
91 KDSoapValue(
const QString &name,
const KDSoapValueList &childValues,
const QString &typeNameSpace = QString(),
const QString &typeName = QString());
103 if (
this != &other) {
115 #if QT_VERSION < 0x040600
116 qSwap(reinterpret_cast<Private *&>(d), reinterpret_cast<Private *&>(other.d));
139 void setNillable(
bool nillable);
144 QString name()
const;
149 QString namespaceUri()
const;
154 void setNamespaceUri(
const QString &ns);
159 QVariant value()
const;
164 void setValue(
const QVariant &value);
171 bool isQualified()
const;
185 void setQualified(
bool qualified);
217 void setType(
const QString &nameSpace,
const QString &type);
222 QString typeNs()
const;
227 QString type()
const;
238 QByteArray toXml(Use use = LiteralUse,
const QString &messageNamespace = QString())
const;
244 friend class KDSoapMessageWriter;
245 void writeElement(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer,
KDSoapValue::Use use,
const QString &messageNamespace,
bool forceQualified)
const;
246 void writeElementContents(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer,
KDSoapValue::Use use,
const QString &messageNamespace)
const;
247 void writeChildren(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer,
KDSoapValue::Use use,
const QString &messageNamespace,
bool forceQualified)
const;
250 QSharedDataPointer<Private> d;
255 KDSOAP_EXPORT QDebug operator <<(QDebug dbg,
const KDSoapValue &value);
257 KDSOAP_EXPORT uint qHash(
const KDSoapValue &value);
297 void addArgument(
const QString &argumentName,
const QVariant &argumentValue,
const QString &typeNameSpace = QString(),
const QString &typeName = QString());
316 void setArrayType(
const QString &nameSpace,
const QString &type);
320 QString arrayTypeNs()
const;
324 QString arrayType()
const;
346 QPair<QString, QString> m_arrayType;
347 QList<KDSoapValue> m_attributes;
352 typedef QListIterator<KDSoapValue> KDSoapValueListIterator;
356 #endif // KDSOAPVALUE_H
data is serialized according to a given schema, no xsi:type attributes are written out ...
Definition: KDSoapValue.h:234
KDSoapValue & operator=(const KDSoapValue &other)
Definition: KDSoapValue.h:101
Use
Definition: KDSoapValue.h:233
Definition: KDSoapValue.h:264
Definition: KDSoapValue.h:61
void swap(KDSoapValue &other)
Definition: KDSoapValue.h:113
Definition: KDSoapValue.h:279
const QList< KDSoapValue > & attributes() const
Definition: KDSoapValue.h:340
QList< KDSoapValue > & attributes()
Definition: KDSoapValue.h:333