KD SOAP  2.0.0
KDSoapMessage.h
1 /****************************************************************************
2 **
3 ** This file is part of the KD Soap library.
4 **
5 ** SPDX-FileCopyrightText: 2010-2022 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 
25 QT_BEGIN_NAMESPACE
26 class QString;
27 QT_END_NAMESPACE
28 class KDSoapMessageData;
29 class KDSoapHeaders;
30 
34 class KDSOAP_EXPORT KDSoapMessage : public KDSoapValue
35 {
36 public:
40  KDSoapMessage();
44  ~KDSoapMessage();
45 
49  KDSoapMessage(const KDSoapMessage &other);
53  KDSoapMessage &operator=(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 
179 private:
180  bool isNull() const;
181  friend class KDSoapPendingCall;
182  friend class KDSoapServerSocket;
183  friend class KDSoapMessageWriter;
185 };
186 
191 class KDSOAP_EXPORT KDSoapHeaders : public QList<KDSoapMessage> // krazy:exclude=dpointer
192 {
193 public:
197  KDSoapMessage header(const QString &name) const;
198 
202  KDSoapMessage header(const QString &name, const QString &namespaceUri) const;
203 };
204 
208 KDSOAP_EXPORT QDebug operator<<(QDebug dbg, const KDSoapMessage &msg);
209 
210 Q_DECLARE_METATYPE(KDSoapMessage)
211 Q_DECLARE_METATYPE(KDSoapHeaders)
212 
213 #endif // KDSOAPMESSAGE_H
KDSoapHeaders
Definition: KDSoapMessage.h:192
KDSoapValue
Definition: KDSoapValue.h:66
QSharedDataPointer< KDSoapMessageData >
QDebug
KDSoapValue::operator=
KDSoapValue & operator=(const KDSoapValue &other)
Definition: KDSoapValue.h:106
QList
KDSoapMessage
Definition: KDSoapMessage.h:35
KDSoapMessageAddressingProperties
Definition: KDSoapMessageAddressingProperties.h:82
KDSoapValue::Use
Use
Definition: KDSoapValue.h:272
KDSoapValue::isNull
bool isNull() const
Definition: KDSoapValue.cpp:85
QString
KDSoapValue::operator==
bool operator==(const KDSoapValue &other) const
Definition: KDSoapValue.cpp:161
KDSoapValueList
Definition: KDSoapValue.h:327
KDSoapValue::operator!=
bool operator!=(const KDSoapValue &other) const
Definition: KDSoapValue.cpp:166
KDSoapPendingCall
Definition: KDSoapPendingCall.h:45
QVariant

© 2010-2022 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 Jul 22 2022 15:57:43 for KD SOAP by doxygen 1.8.20