KD SOAP 2.0.0
Loading...
Searching...
No Matches
KDSoapMessage.h
1/****************************************************************************
2**
3** This file is part of the KD Soap library.
4**
5** SPDX-FileCopyrightText: 2010-2021 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6**
7** SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDAB-KDSoap OR LicenseRef-KDAB-KDSoap-US
8**
9** Licensees holding valid commercial KD Soap licenses may use this file in
10** accordance with the KD Soap Commercial License Agreement provided with
11** the Software.
12**
13** Contact info@kdab.com if any conditions of this licensing are not clear to you.
14**
15****************************************************************************/
16#ifndef KDSOAPMESSAGE_H
17#define KDSOAPMESSAGE_H
18
19#include <QtCore/QSharedDataPointer>
20#include <QtCore/QVariant>
21
22#include "KDSoapValue.h"
23#include "KDSoapMessageAddressingProperties.h"
24
25QT_BEGIN_NAMESPACE
26class QString;
27QT_END_NAMESPACE
28class KDSoapMessageData;
29class KDSoapHeaders;
30
34class KDSOAP_EXPORT KDSoapMessage : public KDSoapValue
35{
36public:
45
49 KDSoapMessage(const KDSoapMessage &other);
54
58 KDSoapMessage &operator=(const KDSoapValue &other);
59
63 bool operator==(const KDSoapMessage &other) const;
64
68 bool operator!=(const KDSoapMessage &other) const;
69
74 void setUse(Use use);
78 Use use() const;
79
96 void addArgument(const QString &argumentName, const QVariant &argumentValue, const QString &typeNameSpace = QString(),
97 const QString &typeName = QString());
98
114 void addArgument(const QString &argumentName, const KDSoapValueList &argumentValueList, const QString &typeNameSpace = QString(),
115 const QString &typeName = QString());
116
121 KDSoapValueList &arguments();
122
127 const KDSoapValueList &arguments() const;
128
136 bool isFault() const;
137
141 QString faultAsString() const;
142
147 void setFault(bool fault);
148
155 void createFaultMessage(const QString &faultCode, const QString &faultText, KDSoap::SoapVersion soapVersion);
156
163 void setMessageAddressingProperties(const KDSoapMessageAddressingProperties &map);
164
170 bool hasMessageAddressingProperties() const;
171
177 KDSoapMessageAddressingProperties messageAddressingProperties() const;
178
179private:
180 bool isNull() const;
181 friend class KDSoapPendingCall;
182 friend class KDSoapServerSocket;
183 friend class KDSoapMessageWriter;
184 QSharedDataPointer<KDSoapMessageData> d;
185};
186
191class KDSOAP_EXPORT KDSoapHeaders : public QList<KDSoapMessage> // krazy:exclude=dpointer
192{
193public:
197 KDSoapMessage header(const QString &name) const;
198
202 KDSoapMessage header(const QString &name, const QString &namespaceUri) const;
203};
204
208KDSOAP_EXPORT QDebug operator<<(QDebug dbg, const KDSoapMessage &msg);
209
210Q_DECLARE_METATYPE(KDSoapMessage)
211Q_DECLARE_METATYPE(KDSoapHeaders)
212
213#endif // KDSOAPMESSAGE_H
Definition: KDSoapMessage.h:192
Definition: KDSoapMessageAddressingProperties.h:82
Definition: KDSoapMessage.h:35
Definition: KDSoapPendingCall.h:45
Definition: KDSoapValue.h:66
Use
Definition: KDSoapValue.h:272
KDSoapValue & operator=(const KDSoapValue &other)
Definition: KDSoapValue.h:106
bool operator==(const KDSoapValue &other) const
Definition: KDSoapValue.cpp:161
bool isNull() const
Definition: KDSoapValue.cpp:85
bool operator!=(const KDSoapValue &other) const
Definition: KDSoapValue.cpp:166
Definition: KDSoapValue.h:327

© 2010-2021 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 Fri May 1 2026 02:54:14 for KD SOAP by doxygen 1.9.6