KD SOAP API Documentation 2.2
Loading...
Searching...
No Matches
KDSoapMessage.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** This file is part of the KD Soap project.
4**
5** SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6**
7** SPDX-License-Identifier: MIT
8**
9****************************************************************************/
10#ifndef KDSOAPMESSAGE_H
11#define KDSOAPMESSAGE_H
12
13#include <QtCore/QSharedDataPointer>
14#include <QtCore/QVariant>
15
17#include "KDSoapValue.h"
18
19QT_BEGIN_NAMESPACE
20class QString;
21QT_END_NAMESPACE
22class KDSoapMessageData;
23class KDSoapHeaders;
24
29{
30public:
39
43 KDSoapMessage(const KDSoapMessage &other);
48
52 KDSoapMessage &operator=(const KDSoapValue &other); // cppcheck-suppress duplInheritedMember
53
57 bool operator==(const KDSoapMessage &other) const;
58
62 bool operator!=(const KDSoapMessage &other) const;
63
68 void setUse(Use use);
72 Use use() const;
73
90 void addArgument(const QString &argumentName, const QVariant &argumentValue, const QString &typeNameSpace = QString(),
91 const QString &typeName = QString());
92
108 void addArgument(const QString &argumentName, const KDSoapValueList &argumentValueList, const QString &typeNameSpace = QString(),
109 const QString &typeName = QString());
110
115 KDSoapValueList &arguments();
116
121 const KDSoapValueList &arguments() const;
122
130 bool isFault() const;
131
135 QString faultAsString() const;
136
141 void setFault(bool fault);
142
149 void createFaultMessage(const QString &faultCode, const QString &faultText, KDSoap::SoapVersion soapVersion);
150
157 void setMessageAddressingProperties(const KDSoapMessageAddressingProperties &map);
158
164 bool hasMessageAddressingProperties() const;
165
171 KDSoapMessageAddressingProperties messageAddressingProperties() const;
172
173private:
174 friend class KDSoapPendingCall;
175 friend class KDSoapServerSocket;
178};
179
184class KDSOAP_EXPORT KDSoapHeaders : public QList<KDSoapMessage> // krazy:exclude=dpointer
185{
186public:
190 KDSoapMessage header(const QString &name) const;
191
195 KDSoapMessage header(const QString &name, const QString &namespaceUri) const;
196};
197
202
203Q_DECLARE_METATYPE(KDSoapMessage)
204Q_DECLARE_METATYPE(KDSoapHeaders)
205
206#endif // KDSOAPMESSAGE_H
#define KDSOAP_EXPORT
KDSOAP_EXPORT QDebug operator<<(QDebug dbg, const KDSoapMessage &msg)
KDSoapValue & operator=(const KDSoapValue &other)
bool operator==(const KDSoapValue &other) const
bool operator!=(const KDSoapValue &other) const

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-soap/
Generated on Sat Apr 20 2024 00:04:25 for KD SOAP API Documentation by doxygen 1.9.8