KD SOAP 2.0.0
Loading...
Searching...
No Matches
KDSoapUdpClient.h
1/****************************************************************************
2**
3** This file is part of the KD Soap library.
4**
5** SPDX-FileCopyrightText: 2020-2021 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6**
7** SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDAB-KDSoap OR LicenseRef-KDAB-KDSoap-US
8**
9** Licensees holding valid commercial KD Soap licenses may use this file in
10** accordance with the KD Soap Commercial License Agreement provided with
11** the Software.
12**
13** Contact info@kdab.com if any conditions of this licensing are not clear to you.
14**
15****************************************************************************/
16
17#ifndef KDSOAPUDPCLIENT_H
18#define KDSOAPUDPCLIENT_H
19
20#include "KDSoapGlobal.h"
21#include "KDSoapClientInterface.h"
22
23#include <QAbstractSocket>
24#include <QObject>
25
26class KDSoapHeaders;
27class KDSoapMessage;
28class KDSoapUdpClientPrivate;
29QT_BEGIN_NAMESPACE
30class QHostAddress;
31QT_END_NAMESPACE
32
76class KDSOAP_EXPORT KDSoapUdpClient : public QObject
77{
78 Q_OBJECT
79
80public:
81 explicit KDSoapUdpClient(QObject *parent = nullptr);
82
84
93 bool bind(quint16 port = 0, QAbstractSocket::BindMode mode = QAbstractSocket::DefaultForPlatform);
99 void setSoapVersion(KDSoap::SoapVersion version);
100
101public Q_SLOTS:
113 bool sendMessage(const KDSoapMessage &message, const KDSoapHeaders &headers, const QHostAddress &address, quint16 port);
114
115Q_SIGNALS:
131 void receivedMessage(const KDSoapMessage &message, const KDSoapHeaders &headers, const QHostAddress &address, quint16 port);
132
133private:
134 KDSoapUdpClientPrivate *const d_ptr;
135 Q_DECLARE_PRIVATE(KDSoapUdpClient)
136};
137
138#endif // KDSOAPUDPCLIENT_H
Definition: KDSoapMessage.h:192
Definition: KDSoapMessage.h:35
KDSoapUdpClient provides an interface for implementing a SOAP-over-UDP client.
Definition: KDSoapUdpClient.h:77
void receivedMessage(const KDSoapMessage &message, const KDSoapHeaders &headers, const QHostAddress &address, quint16 port)

© 2010-2021 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 Fri May 1 2026 02:54:14 for KD SOAP by doxygen 1.9.6