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 <QtCore/QXmlStreamNamespaceDeclarations> 34 #include "KDSoapGlobal.h" 41 #if QT_VERSION < 0x040800 42 Q_DECLARE_METATYPE(
signed char)
46 class KDSoapNamespacePrefixes;
48 class QXmlStreamWriter;
97 KDSoapValue(
const QString &name,
const QVariant &valueVariant,
const QString &typeNameSpace = QString(),
const QString &typeName = QString());
106 KDSoapValue(
const QString &name,
const KDSoapValueList &childValues,
const QString &typeNameSpace = QString(),
const QString &typeName = QString());
118 if (
this != &other) {
130 #if QT_VERSION < 0x040600 131 qSwap(reinterpret_cast<Private *&>(d), reinterpret_cast<Private *&>(other.d));
154 void setNillable(
bool nillable);
159 QString name()
const;
164 QString namespaceUri()
const;
169 void setNamespaceUri(
const QString &ns);
174 QVariant value()
const;
179 void setValue(
const QVariant &value);
186 bool isQualified()
const;
200 void setQualified(
bool qualified);
232 void setType(
const QString &nameSpace,
const QString &type);
237 QString typeNs()
const;
242 QString type()
const;
248 void setNamespaceDeclarations(
const QXmlStreamNamespaceDeclarations& namespaceDeclarations);
254 void addNamespaceDeclaration(
const QXmlStreamNamespaceDeclaration& namespaceDeclaration);
260 QXmlStreamNamespaceDeclarations namespaceDeclarations()
const;
266 void setEnvironmentNamespaceDeclarations(
const QXmlStreamNamespaceDeclarations& environmentNamespaceDeclarations);
272 QXmlStreamNamespaceDeclarations environmentNamespaceDeclarations()
const;
290 QByteArray toXml(
Use use = LiteralUse,
const QString &messageNamespace = QString())
const;
294 void setName(
const QString &name);
300 friend class KDSoapMessageWriter;
301 void writeElement(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer,
KDSoapValue::Use use,
const QString &messageNamespace,
bool forceQualified)
const;
302 void writeElementContents(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer,
KDSoapValue::Use use,
const QString &messageNamespace)
const;
303 void writeChildren(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer,
KDSoapValue::Use use,
const QString &messageNamespace,
bool forceQualified)
const;
306 QSharedDataPointer<Private> d;
313 KDSOAP_EXPORT QDebug operator <<(QDebug dbg,
const KDSoapValue &value);
315 KDSOAP_EXPORT uint qHash(
const KDSoapValue &value);
355 void addArgument(
const QString &argumentName,
const QVariant &argumentValue,
const QString &typeNameSpace = QString(),
const QString &typeName = QString());
374 void setArrayType(
const QString &nameSpace,
const QString &type);
378 QString arrayTypeNs()
const;
382 QString arrayType()
const;
404 QPair<QString, QString> m_arrayType;
405 QList<KDSoapValue> m_attributes;
410 typedef QListIterator<KDSoapValue> KDSoapValueListIterator;
414 #endif // KDSOAPVALUE_H data is serialized according to a given schema, no xsi:type attributes are written out ...
Definition: KDSoapValue.h:286
KDSoapValue & operator=(const KDSoapValue &other)
Definition: KDSoapValue.h:116
Use
Definition: KDSoapValue.h:285
Definition: KDSoapValue.h:322
Definition: KDSoapValue.h:76
void swap(KDSoapValue &other)
Definition: KDSoapValue.h:128
Definition: KDSoapValue.h:51
Definition: KDSoapValue.h:337
const QList< KDSoapValue > & attributes() const
Definition: KDSoapValue.h:398
QList< KDSoapValue > & attributes()
Definition: KDSoapValue.h:391