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());
102 if (
this != &other ) {
113 #if QT_VERSION < 0x040600
114 qSwap( reinterpret_cast<Private*&>(d), reinterpret_cast<Private*&>(other.d) );
137 void setNillable(
bool nillable);
142 QString name()
const;
147 QString namespaceUri()
const;
152 void setNamespaceUri(
const QString& ns);
157 QVariant value()
const;
162 void setValue(
const QVariant& value);
169 bool isQualified()
const;
183 void setQualified(
bool qualified);
215 void setType(
const QString& nameSpace,
const QString& type);
220 QString typeNs()
const;
225 QString type()
const;
237 QByteArray toXml(Use use = LiteralUse,
const QString& messageNamespace = QString())
const;
243 friend class KDSoapMessageWriter;
244 void writeElement(KDSoapNamespacePrefixes& namespacePrefixes, QXmlStreamWriter& writer,
KDSoapValue::Use use,
const QString& messageNamespace,
bool forceQualified)
const;
245 void writeElementContents(KDSoapNamespacePrefixes& namespacePrefixes, QXmlStreamWriter& writer,
KDSoapValue::Use use,
const QString& messageNamespace)
const;
246 void writeChildren(KDSoapNamespacePrefixes& namespacePrefixes, QXmlStreamWriter& writer,
KDSoapValue::Use use,
const QString& messageNamespace,
bool forceQualified)
const;
249 QSharedDataPointer<Private> d;
254 KDSOAP_EXPORT QDebug operator <<(QDebug dbg,
const KDSoapValue &value);
256 KDSOAP_EXPORT uint qHash(
const KDSoapValue& value );
291 void addArgument(
const QString& argumentName,
const QVariant& argumentValue,
const QString& typeNameSpace = QString(),
const QString& typeName = QString());
310 void setArrayType(
const QString& nameSpace,
const QString& type);
314 QString arrayTypeNs()
const;
318 QString arrayType()
const;
331 const QList<KDSoapValue>&
attributes()
const {
return m_attributes; }
334 QPair<QString, QString> m_arrayType;
335 QList<KDSoapValue> m_attributes;
340 typedef QListIterator<KDSoapValue> KDSoapValueListIterator;
344 #endif // KDSOAPVALUE_H