25 #include <QtCore/QString>
26 #include <QtCore/QVariant>
27 #include <QtCore/QList>
28 #include <QtCore/QPair>
29 #include <QtCore/QSet>
30 #include <QtCore/QVector>
31 #include <QtCore/QSharedDataPointer>
32 #include "KDSoapGlobal.h"
39 #if QT_VERSION < 0x040800
40 Q_DECLARE_METATYPE(
signed char)
44 class KDSoapNamespacePrefixes;
46 class QXmlStreamWriter;
81 KDSoapValue(
const QString& name,
const QVariant& valueVariant,
const QString& typeNameSpace = QString(),
const QString& typeName = QString());
90 KDSoapValue(
const QString& name,
const KDSoapValueList& childValues,
const QString& typeNameSpace = QString(),
const QString& typeName = QString());
101 if (
this != &other ) {
112 #if QT_VERSION < 0x040600
113 qSwap( reinterpret_cast<Private*&>(d), reinterpret_cast<Private*&>(other.d) );
127 QString name()
const;
132 QString namespaceUri()
const;
137 void setNamespaceUri(
const QString& ns);
142 QVariant value()
const;
147 void setValue(
const QVariant& value);
154 bool isQualified()
const;
168 void setQualified(
bool qualified);
200 void setType(
const QString& nameSpace,
const QString& type);
205 QString typeNs()
const;
210 QString type()
const;
222 QByteArray toXml(Use use = LiteralUse,
const QString& messageNamespace = QString())
const;
228 friend class KDSoapMessageWriter;
229 void writeElement(KDSoapNamespacePrefixes& namespacePrefixes, QXmlStreamWriter& writer,
KDSoapValue::Use use,
const QString& messageNamespace,
bool forceQualified)
const;
230 void writeElementContents(KDSoapNamespacePrefixes& namespacePrefixes, QXmlStreamWriter& writer,
KDSoapValue::Use use,
const QString& messageNamespace)
const;
231 void writeChildren(KDSoapNamespacePrefixes& namespacePrefixes, QXmlStreamWriter& writer,
KDSoapValue::Use use,
const QString& messageNamespace,
bool forceQualified)
const;
234 QSharedDataPointer<Private> d;
239 KDSOAP_EXPORT QDebug operator <<(QDebug dbg,
const KDSoapValue &value);
241 KDSOAP_EXPORT uint qHash(
const KDSoapValue& value );
276 void addArgument(
const QString& argumentName,
const QVariant& argumentValue,
const QString& typeNameSpace = QString(),
const QString& typeName = QString());
295 void setArrayType(
const QString& nameSpace,
const QString& type);
299 QString arrayTypeNs()
const;
303 QString arrayType()
const;
316 const QList<KDSoapValue>&
attributes()
const {
return m_attributes; }
319 QPair<QString, QString> m_arrayType;
320 QList<KDSoapValue> m_attributes;
325 typedef QListIterator<KDSoapValue> KDSoapValueListIterator;
329 #endif // KDSOAPVALUE_H