KD SOAP  1.10.0
KDSoapPendingCall_p.h
1 /****************************************************************************
2 **
3 ** This file is part of the KD Soap library.
4 **
5 ** SPDX-FileCopyrightText: 2010-2020 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), buffer(b), soapVersion(KDSoap::SOAP1_1), parsed(false)
36  {
37  }
38  ~Private();
39 
40  void parseReply();
41  KDSoapValue parseReplyElement(QXmlStreamReader &reader);
42 
43  // Can be deleted under us if the KDSoapClientInterface (and its QNetworkAccessManager)
44  // are deleted before the KDSoapPendingCall.
45  QPointer<QNetworkReply> reply;
46  QBuffer *buffer;
47  KDSoapMessage replyMessage;
48  KDSoapHeaders replyHeaders;
49  KDSoap::SoapVersion soapVersion;
50  bool parsed;
51 };
52 
53 #endif // KDSOAPPENDINGCALL_P_H
Definition: KDSoapValue.h:69
Definition: KDSoapMessage.h:188
Definition: KDSoapMessage.h:34
Definition: KDSoapValue.h:44

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/