KD SOAP  2.0.0
KDSoapPendingCall_p.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 KDSOAPPENDINGCALL_P_H
17 #define KDSOAPPENDINGCALL_P_H
18 
19 #include <QSharedData>
20 #include <QBuffer>
21 #include <QXmlStreamReader>
22 #include "KDSoapMessage.h"
23 #include <QPointer>
24 #include "KDSoapClientInterface.h"
25 #include <QNetworkReply>
26 
27 class KDSoapValue;
28 
29 void maybeDebugRequest(const QByteArray &data, const QNetworkRequest &request, QNetworkReply *reply);
30 
31 class KDSoapPendingCall::Private : public QSharedData
32 {
33 public:
34  Private(QNetworkReply *r, QBuffer *b)
35  : reply(r)
36  , buffer(b)
37  , soapVersion(KDSoap::SOAP1_1)
38  , parsed(false)
39  {
40  }
41  ~Private();
42 
43  void parseReply();
44  KDSoapValue parseReplyElement(QXmlStreamReader &reader);
45 
46  // Can be deleted under us if the KDSoapClientInterface (and its QNetworkAccessManager)
47  // are deleted before the KDSoapPendingCall.
49  QBuffer *buffer;
50  KDSoapMessage replyMessage;
51  KDSoapHeaders replyHeaders;
52  KDSoap::SoapVersion soapVersion;
53  bool parsed;
54 };
55 
56 #endif // KDSOAPPENDINGCALL_P_H
QPointer< QNetworkReply >
QSharedData
KDSoapHeaders
Definition: KDSoapMessage.h:192
KDSoapValue
Definition: KDSoapValue.h:66
QBuffer
KDSoapMessage
Definition: KDSoapMessage.h:35
QXmlStreamReader
QByteArray

© 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