KD SOAP API Documentation  2.1
KDSoapClientInterface_p.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** This file is part of the KD Soap project.
4 **
5 ** SPDX-FileCopyrightText: 2010-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: MIT
8 **
9 ****************************************************************************/
10 #ifndef KDSOAPCLIENTINTERFACE_P_H
11 #define KDSOAPCLIENTINTERFACE_P_H
12 
13 #include <QtCore/QXmlStreamWriter>
14 #include <QtNetwork/QNetworkAccessManager>
15 #include <QtNetwork/QNetworkCookieJar>
16 #include <QtNetwork/QSslConfiguration>
17 
18 #include "KDSoapAuthentication.h"
19 #include "KDSoapClientInterface.h"
20 #include "KDSoapClientThread_p.h"
21 QT_BEGIN_NAMESPACE
22 class QBuffer;
23 QT_END_NAMESPACE
24 class KDSoapMessage;
26 
27 class KDSoapClientInterfacePrivate : public QObject
28 {
29  Q_OBJECT
30 public:
33 
34  // Warning: this accessManager is only used by asyncCall and callNoReply.
35  // For blocking calls, the thread has its own accessManager.
36  QNetworkAccessManager *m_accessManager;
37  QString m_endPoint;
41  QMap<QString, KDSoapMessage> m_persistentHeaders;
42  QMap<QByteArray, QByteArray> m_httpHeaders;
47 #ifndef QT_NO_SSL
48  QList<QSslError> m_ignoreErrorsList;
49  QSslConfiguration m_sslConfiguration;
51 #endif
52  int m_timeout;
55 
56  QNetworkAccessManager *accessManager();
57  QNetworkRequest prepareRequest(const QString &method, const QString &action);
58  QBuffer *prepareRequestBuffer(const QString &method, const KDSoapMessage &message, const QString &soapAction, const KDSoapHeaders &headers);
59  void writeElementContents(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer, const KDSoapValue &element, KDSoapMessage::Use use);
60  void writeChildren(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer, const KDSoapValueList &args, KDSoapMessage::Use use);
61  void writeAttributes(QXmlStreamWriter &writer, const QList<KDSoapValue> &attributes);
62  void setupReply(QNetworkReply *reply);
63 
64 private Q_SLOTS:
65  void _kd_slotAuthenticationRequired(QNetworkReply *reply, QAuthenticator *authenticator);
66 };
67 
68 #endif // KDSOAPCLIENTINTERFACE_P_H
void writeElementContents(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer, const KDSoapValue &element, KDSoapMessage::Use use)
QNetworkAccessManager * m_accessManager
void writeAttributes(QXmlStreamWriter &writer, const QList< KDSoapValue > &attributes)
KDSoapClientInterface::Style m_style
QMap< QString, KDSoapMessage > m_persistentHeaders
void setupReply(QNetworkReply *reply)
QNetworkRequest prepareRequest(const QString &method, const QString &action)
QNetworkAccessManager * accessManager()
void writeChildren(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer, const KDSoapValueList &args, KDSoapMessage::Use use)
QMap< QByteArray, QByteArray > m_httpHeaders
QBuffer * prepareRequestBuffer(const QString &method, const KDSoapMessage &message, const QString &soapAction, const KDSoapHeaders &headers)
A class for handling SSL errors during SOAP calls.

© 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 Tue Jun 13 2023 12:18:34 for KD SOAP API Documentation by doxygen 1.9.1