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 #if QT_VERSION < 0x040800
35 Q_DECLARE_METATYPE(
signed char)
39 class KDSoapNamespacePrefixes;
41 class QXmlStreamWriter;
90 KDSoapValue(
const QString &name,
const QVariant &valueVariant,
const QString &typeNameSpace = QString(),
const QString &typeName = QString());
99 KDSoapValue(
const QString &name,
const KDSoapValueList &childValues,
const QString &typeNameSpace = QString(),
const QString &typeName = QString());
111 if (
this != &other) {
123 #if QT_VERSION < 0x040600
124 qSwap(
reinterpret_cast<Private *&
>(d),
reinterpret_cast<Private *&
>(other.d));
147 void setNillable(
bool nillable);
152 QString name()
const;
157 QString namespaceUri()
const;
162 void setNamespaceUri(
const QString &ns);
167 QVariant value()
const;
172 void setValue(
const QVariant &value);
179 bool isQualified()
const;
193 void setQualified(
bool qualified);
225 void setType(
const QString &nameSpace,
const QString &type);
230 QString typeNs()
const;
235 QString type()
const;
241 void setNamespaceDeclarations(
const QXmlStreamNamespaceDeclarations& namespaceDeclarations);
247 void addNamespaceDeclaration(
const QXmlStreamNamespaceDeclaration& namespaceDeclaration);
253 QXmlStreamNamespaceDeclarations namespaceDeclarations()
const;
259 void setEnvironmentNamespaceDeclarations(
const QXmlStreamNamespaceDeclarations& environmentNamespaceDeclarations);
265 QXmlStreamNamespaceDeclarations environmentNamespaceDeclarations()
const;
283 QByteArray toXml(Use use = LiteralUse,
const QString &messageNamespace = QString())
const;
287 void setName(
const QString &name);
293 friend class KDSoapMessageWriter;
294 void writeElement(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer,
KDSoapValue::Use use,
const QString &messageNamespace,
bool forceQualified)
const;
295 void writeElementContents(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer,
KDSoapValue::Use use,
const QString &messageNamespace)
const;
296 void writeChildren(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer,
KDSoapValue::Use use,
const QString &messageNamespace,
bool forceQualified)
const;
299 QSharedDataPointer<Private> d;
306 KDSOAP_EXPORT QDebug operator <<(QDebug dbg,
const KDSoapValue &value);
308 KDSOAP_EXPORT uint qHash(
const KDSoapValue &value);
348 void addArgument(
const QString &argumentName,
const QVariant &argumentValue,
const QString &typeNameSpace = QString(),
const QString &typeName = QString());
367 void setArrayType(
const QString &nameSpace,
const QString &type);
371 QString arrayTypeNs()
const;
375 QString arrayType()
const;
397 QPair<QString, QString> m_arrayType;
398 QList<KDSoapValue> m_attributes;
403 typedef QListIterator<KDSoapValue> KDSoapValueListIterator;
407 #endif // KDSOAPVALUE_H