KD SOAP API Documentation: KDSoapMessage.h Source File

| 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
16#include "KDSoapMessageAddressingProperties.h"
17#include "KDSoapValue.h"
18
19QT_BEGIN_NAMESPACE
20class QString;
21QT_END_NAMESPACE
22class KDSoapMessageData;
23class KDSoapHeaders;
24
28 class KDSOAP_EXPORT KDSoapMessage : public KDSoapValue
29{
30public:
34 KDSoapMessage();
38 ~KDSoapMessage();
39
43 KDSoapMessage(const KDSoapMessage &other);
47 KDSoapMessage &operator=(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;
176 friend class KDSoapMessageWriter;
177 QSharedDataPointer<KDSoapMessageData> d;
178};
179
184 class 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
201 KDSOAP_EXPORT QDebug operator<<(QDebug dbg, const KDSoapMessage &msg);
202
203Q_DECLARE_METATYPE(KDSoapMessage)
204Q_DECLARE_METATYPE(KDSoapHeaders)
205
206#endif // KDSOAPMESSAGE_H
KDSOAP_EXPORT
#define KDSOAP_EXPORT
Definition KDSoapGlobal.h:22
KDSoapMessageAddressingProperties.h
operator<<
KDSOAP_EXPORT QDebug operator<<(QDebug dbg, const KDSoapMessage &msg)
Definition KDSoapMessage.cpp:105
KDSoapValue.h
KDSoapHeaders
Definition KDSoapMessage.h:185
KDSoapMessageAddressingProperties
Definition KDSoapMessageAddressingProperties.h:76
KDSoapMessageWriter
Definition KDSoapMessageWriter_p.h:31
KDSoapMessage
Definition KDSoapMessage.h:29
KDSoapPendingCall
Definition KDSoapPendingCall.h:39
KDSoapServerSocket
Definition KDSoapServerSocket_p.h:35
KDSoapValueList
Definition KDSoapValue.h:321
KDSoapValue
Definition KDSoapValue.h:60
KDSoapValue::Use
Use
Definition KDSoapValue.h:266
KDSoapValue::operator=
KDSoapValue & operator=(const KDSoapValue &other)
Definition KDSoapValue.h:100
KDSoapValue::operator==
bool operator==(const KDSoapValue &other) const
Definition KDSoapValue.cpp:155
KDSoapValue::operator!=
bool operator!=(const KDSoapValue &other) const
Definition KDSoapValue.cpp:160
KDSoap::SoapVersion
SoapVersion
Definition KDSoapValue.h:40
QDebug
QList
QSharedDataPointer
QString
QVariant

© 2010-2024 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 Sun Jan 7 2024 11:47:36 for KD SOAP API Documentation by doxygen 1.9.8