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

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