KD SOAP  1.7.0
KDSoapPendingCall_p.h
1 /****************************************************************************
2 ** Copyright (C) 2010-2018 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 
32 QT_BEGIN_NAMESPACE
33 class QNetworkReply;
34 QT_END_NAMESPACE
35 class KDSoapValue;
36 
37 class KDSoapPendingCall::Private : public QSharedData
38 {
39 public:
40  Private(QNetworkReply *r, QBuffer *b)
41  : reply(r), buffer(b), parsed(false)
42  {
43  }
44  ~Private();
45 
46  void parseReply();
47  KDSoapValue parseReplyElement(QXmlStreamReader &reader);
48 
49  // Can be deleted under us if the KDSoapClientInterface (and its QNetworkAccessManager)
50  // are deleted before the KDSoapPendingCall.
51  QPointer<QNetworkReply> reply;
52  QBuffer *buffer;
53  KDSoapMessage replyMessage;
54  KDSoapHeaders replyHeaders;
55  bool parsed;
56 };
57 
58 #endif // KDSOAPPENDINGCALL_P_H
Definition: KDSoapValue.h:61
Definition: KDSoapMessage.h:187
Definition: KDSoapMessage.h:41

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-soap/