KD SOAP: /home/allen/projects/kdsoap/src/KDSoapClient/KDSoapUdpClient.h Source File

| KD SOAP 2.0.0

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
26 class KDSoapHeaders;
27 class KDSoapMessage;
28 class KDSoapUdpClientPrivate;
29 QT_BEGIN_NAMESPACE
30 class QHostAddress;
31 QT_END_NAMESPACE
32
76 class KDSOAP_EXPORT KDSoapUdpClient : public QObject
77 {
78 Q_OBJECT
79
80 public:
81 explicit KDSoapUdpClient(QObject *parent = nullptr);
82
83 ~KDSoapUdpClient();
84
93 bool bind(quint16 port = 0, QAbstractSocket::BindMode mode = QAbstractSocket::DefaultForPlatform);
99 void setSoapVersion(KDSoap::SoapVersion version);
100
101 public Q_SLOTS:
113 bool sendMessage(const KDSoapMessage &message, const KDSoapHeaders &headers, const QHostAddress &address, quint16 port);
114
115 Q_SIGNALS:
131 void receivedMessage(const KDSoapMessage &message, const KDSoapHeaders &headers, const QHostAddress &address, quint16 port);
132
133 private:
134 KDSoapUdpClientPrivate *const d_ptr;
135 Q_DECLARE_PRIVATE(KDSoapUdpClient)
136 };
137
138 #endif // KDSOAPUDPCLIENT_H
KDSoapHeaders
Definition: KDSoapMessage.h:192
QObject::Q_SLOTS
Q_SLOTSQ_SLOTS
KDSoapMessage
Definition: KDSoapMessage.h:35
QObject
KDSoapUdpClient
KDSoapUdpClient provides an interface for implementing a SOAP-over-UDP client.
Definition: KDSoapUdpClient.h:77
KDSoapUdpClient::receivedMessage
void receivedMessage(const KDSoapMessage &message, const KDSoapHeaders &headers, const QHostAddress &address, quint16 port)
QObject::Q_SIGNALS
Q_SIGNALSQ_SIGNALS

© 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 Wed Jun 30 2021 18:19:27 for KD SOAP by doxygen 1.8.20