| KD SOAP 1.9.1

KDSoapPendingCall_p.h
1 /****************************************************************************
2 ** Copyright (C) 2010-2020 Klaralvdalens Datakonsult AB, a KDAB Group company, info@kdab.com.
3 ** All rights reserved.
4 **
5 ** This file is part of the KD Soap library.
6 **
7 ** Licensees holding valid commercial KD Soap licenses may use this file in
8 ** accordance with the KD Soap Commercial License Agreement provided with
9 ** the Software.
10 **
11 **
12 ** This file may be distributed and/or modified under the terms of the
13 ** GNU Lesser General Public License version 2.1 and version 3 as published by the
14 ** Free Software Foundation and appearing in the file LICENSE.LGPL.txt included.
15 **
16 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
17 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 **
19 ** Contact info@kdab.com if any conditions of this licensing are not
20 ** clear to you.
21 **
22 **********************************************************************/
23 #ifndef KDSOAPPENDINGCALL_P_H
24 #define KDSOAPPENDINGCALL_P_H
25
26 #include <QSharedData>
27 #include <QBuffer>
28 #include <QXmlStreamReader>
29 #include "KDSoapMessage.h"
30 #include <QPointer>
31 #include "KDSoapClientInterface.h"
32 #include <QNetworkReply>
33
34 class KDSoapValue;
35
36 void maybeDebugRequest(const QByteArray &data, const QNetworkRequest &request, QNetworkReply *reply);
37
38 class KDSoapPendingCall::Private : public QSharedData
39 {
40 public:
41 Private(QNetworkReply *r, QBuffer *b)
42 : reply(r), buffer(b), soapVersion(KDSoap::SOAP1_1), parsed(false)
43 {
44 }
45 ~Private();
46
47 void parseReply();
48 KDSoapValue parseReplyElement(QXmlStreamReader &reader);
49
50 // Can be deleted under us if the KDSoapClientInterface (and its QNetworkAccessManager)
51 // are deleted before the KDSoapPendingCall.
52 QPointer<QNetworkReply> reply;
53 QBuffer *buffer;
54 KDSoapMessage replyMessage;
55 KDSoapHeaders replyHeaders;
56 KDSoap::SoapVersion soapVersion;
57 bool parsed;
58 };
59
60 #endif // KDSOAPPENDINGCALL_P_H
KDSoapHeaders
Definition: KDSoapMessage.h:196
KDSoapValue
Definition: KDSoapValue.h:77
KDSoapMessage
Definition: KDSoapMessage.h:42

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/