KD SOAP API Documentation: KDSoapClientInterface_p.h Source File

| KD SOAP API Documentation 2.2

Loading...
Searching...
No Matches
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"
21QT_BEGIN_NAMESPACE
22class QBuffer;
23 QT_END_NAMESPACE
24class KDSoapMessage;
25class KDSoapNamespacePrefixes;
26
27// clazy:excludeall=ctor-missing-parent-argument
28 class KDSoapClientInterfacePrivate : public QObject
29{
30 Q_OBJECT
31public:
32 KDSoapClientInterfacePrivate(); // clazy:exclude=ctor-missing-parent-argument
33 ~KDSoapClientInterfacePrivate();
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;
39 QString m_messageNamespace;
40 KDSoapClientThread m_thread;
41 KDSoapAuthentication m_authentication;
42 QMap<QString, KDSoapMessage> m_persistentHeaders;
43 QMap<QByteArray, QByteArray> m_httpHeaders;
44 KDSoap::SoapVersion m_version;
45 KDSoapClientInterface::Style m_style;
46 KDSoapMessageAddressingProperties m_messageAddressingProperties;
47 KDSoapHeaders m_lastResponseHeaders;
48#ifndef QT_NO_SSL
49 QList<QSslError> m_ignoreErrorsList;
50 QSslConfiguration m_sslConfiguration;
51 KDSoapSslHandler *m_sslHandler;
52#endif
53 int m_timeout = 30 * 60 * 1000; // 30 minutes, as documented
54 bool m_ignoreSslErrors = false;
55 bool m_sendSoapActionInHttpHeader = true;
56 bool m_sendSoapActionInWsAddressingHeader = false;
57 bool m_hasMessageAddressingProperties = 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
67private Q_SLOTS:
68 void _kd_slotAuthenticationRequired(QNetworkReply *reply, QAuthenticator *authenticator);
69};
70
71#endif // KDSOAPCLIENTINTERFACE_P_H
KDSoapAuthentication.h
KDSoapClientInterface.h
KDSoapClientThread_p.h
KDSoapAuthentication
Definition KDSoapAuthentication.h:31
KDSoapClientInterfacePrivate
Definition KDSoapClientInterface_p.h:29
KDSoapClientInterfacePrivate::writeElementContents
void writeElementContents(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer, const KDSoapValue &element, KDSoapMessage::Use use)
KDSoapClientInterfacePrivate::m_endPoint
QString m_endPoint
Definition KDSoapClientInterface_p.h:38
KDSoapClientInterfacePrivate::m_version
KDSoap::SoapVersion m_version
Definition KDSoapClientInterface_p.h:44
KDSoapClientInterfacePrivate::m_accessManager
QNetworkAccessManager * m_accessManager
Definition KDSoapClientInterface_p.h:37
KDSoapClientInterfacePrivate::writeAttributes
void writeAttributes(QXmlStreamWriter &writer, const QList< KDSoapValue > &attributes)
KDSoapClientInterfacePrivate::m_style
KDSoapClientInterface::Style m_style
Definition KDSoapClientInterface_p.h:45
KDSoapClientInterfacePrivate::m_sslHandler
KDSoapSslHandler * m_sslHandler
Definition KDSoapClientInterface_p.h:51
KDSoapClientInterfacePrivate::m_persistentHeaders
QMap< QString, KDSoapMessage > m_persistentHeaders
Definition KDSoapClientInterface_p.h:42
KDSoapClientInterfacePrivate::KDSoapClientInterfacePrivate
KDSoapClientInterfacePrivate()
Definition KDSoapClientInterface.cpp:53
KDSoapClientInterfacePrivate::setupReply
void setupReply(QNetworkReply *reply)
Definition KDSoapClientInterface.cpp:281
KDSoapClientInterfacePrivate::prepareRequest
QNetworkRequest prepareRequest(const QString &method, const QString &action)
Definition KDSoapClientInterface.cpp:80
KDSoapClientInterfacePrivate::m_lastResponseHeaders
KDSoapHeaders m_lastResponseHeaders
Definition KDSoapClientInterface_p.h:47
KDSoapClientInterfacePrivate::m_ignoreSslErrors
bool m_ignoreSslErrors
Definition KDSoapClientInterface_p.h:54
KDSoapClientInterfacePrivate::accessManager
QNetworkAccessManager * accessManager()
Definition KDSoapClientInterface.cpp:71
KDSoapClientInterfacePrivate::m_timeout
int m_timeout
Definition KDSoapClientInterface_p.h:53
KDSoapClientInterfacePrivate::writeChildren
void writeChildren(KDSoapNamespacePrefixes &namespacePrefixes, QXmlStreamWriter &writer, const KDSoapValueList &args, KDSoapMessage::Use use)
KDSoapClientInterfacePrivate::m_sslConfiguration
QSslConfiguration m_sslConfiguration
Definition KDSoapClientInterface_p.h:50
KDSoapClientInterfacePrivate::m_authentication
KDSoapAuthentication m_authentication
Definition KDSoapClientInterface_p.h:41
KDSoapClientInterfacePrivate::m_hasMessageAddressingProperties
bool m_hasMessageAddressingProperties
Definition KDSoapClientInterface_p.h:57
KDSoapClientInterfacePrivate::m_httpHeaders
QMap< QByteArray, QByteArray > m_httpHeaders
Definition KDSoapClientInterface_p.h:43
KDSoapClientInterfacePrivate::m_messageAddressingProperties
KDSoapMessageAddressingProperties m_messageAddressingProperties
Definition KDSoapClientInterface_p.h:46
KDSoapClientInterfacePrivate::m_messageNamespace
QString m_messageNamespace
Definition KDSoapClientInterface_p.h:39
KDSoapClientInterfacePrivate::prepareRequestBuffer
QBuffer * prepareRequestBuffer(const QString &method, const KDSoapMessage &message, const QString &soapAction, const KDSoapHeaders &headers)
Definition KDSoapClientInterface.cpp:136
KDSoapClientInterfacePrivate::~KDSoapClientInterfacePrivate
~KDSoapClientInterfacePrivate()
Definition KDSoapClientInterface.cpp:64
KDSoapClientInterfacePrivate::m_sendSoapActionInHttpHeader
bool m_sendSoapActionInHttpHeader
Definition KDSoapClientInterface_p.h:55
KDSoapClientInterfacePrivate::m_sendSoapActionInWsAddressingHeader
bool m_sendSoapActionInWsAddressingHeader
Definition KDSoapClientInterface_p.h:56
KDSoapClientInterfacePrivate::m_ignoreErrorsList
QList< QSslError > m_ignoreErrorsList
Definition KDSoapClientInterface_p.h:49
KDSoapClientInterfacePrivate::m_thread
KDSoapClientThread m_thread
Definition KDSoapClientInterface_p.h:40
KDSoapClientInterface::Style
Style
Definition KDSoapClientInterface.h:255
KDSoapClientThread
Definition KDSoapClientThread_p.h:90
KDSoapHeaders
Definition KDSoapMessage.h:185
KDSoapMessageAddressingProperties
Definition KDSoapMessageAddressingProperties.h:76
KDSoapMessage
Definition KDSoapMessage.h:29
KDSoapNamespacePrefixes
Definition KDSoapNamespacePrefixes_p.h:20
KDSoapSslHandler
A class for handling SSL errors during SOAP calls.
Definition KDSoapSslHandler.h:31
KDSoapValueList
Definition KDSoapValue.h:321
KDSoapValue
Definition KDSoapValue.h:60
KDSoapValue::Use
Use
Definition KDSoapValue.h:266
KDSoap::SoapVersion
SoapVersion
Definition KDSoapValue.h:40
QAuthenticator
QBuffer
QList
QMap
QNetworkAccessManager
QNetworkReply
QNetworkRequest
QObject
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::Q_SLOTS
Q_SLOTSQ_SLOTS
QObject::qobject_cast
T qobject_cast(QObject *object)
QSslConfiguration
QString
QXmlStreamWriter

© 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 on Sun Jan 7 2024 11:47:36 for KD SOAP API Documentation by doxygen 1.9.8