KD SOAP API Documentation  2.2
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 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 // clazy:excludeall=ctor-missing-parent-argument
28 class KDSoapClientInterfacePrivate : public QObject
29 {
30  Q_OBJECT
31 public:
32  KDSoapClientInterfacePrivate(); // clazy:exclude=ctor-missing-parent-argument
34 
35  // Warning: this accessManager is only used by asyncCall and callNoReply.
36  // For blocking calls, the thread has its own accessManager.
37  QNetworkAccessManager *m_accessManager;
38  QString m_endPoint;
42  QMap<QString, KDSoapMessage> m_persistentHeaders;
43  QMap<QByteArray, QByteArray> m_httpHeaders;
48 #ifndef QT_NO_SSL
49  QList<QSslError> m_ignoreErrorsList;
50  QSslConfiguration m_sslConfiguration;
52 #endif
53  int m_timeout = 30 * 60 * 1000; // 30 minutes, as documented
54  bool m_ignoreSslErrors = false;
58 
59  QNetworkAccessManager *accessManager();
60  QNetworkRequest prepareRequest(const QString &method, const QString &action);
61  QBuffer *prepareRequestBuffer(const QString &method, const KDSoapMessage &message, const QString &soapAction, const KDSoapHeaders &headers);
62  void writeElementContents(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer, const KDSoapValue &element, KDSoapMessage::Use use);
63  void writeChildren(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer, const KDSoapValueList &args, KDSoapMessage::Use use);
64  void writeAttributes(QXmlStreamWriter &writer, const QList<KDSoapValue> &attributes);
65  void setupReply(QNetworkReply *reply);
66 
67 private Q_SLOTS:
68  void _kd_slotAuthenticationRequired(QNetworkReply *reply, QAuthenticator *authenticator);
69 };
70 
71 #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
KDSoapMessageAddressingProperties m_messageAddressingProperties
QBuffer * prepareRequestBuffer(const QString &method, const KDSoapMessage &message, const QString &soapAction, const KDSoapHeaders &headers)
A class for handling SSL errors during SOAP calls.

© 2010-2024 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 by doxygen 1.9.1