KD SOAP API Documentation  2.2
KDSoapUdpClient.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** This file is part of the KD Soap project.
4 **
5 ** SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: MIT
8 **
9 ****************************************************************************/
10 
11 #ifndef KDSOAPUDPCLIENT_H
12 #define KDSOAPUDPCLIENT_H
13 
14 #include "KDSoapClientInterface.h"
15 #include "KDSoapGlobal.h"
16 
17 #include <QAbstractSocket>
18 #include <QObject>
19 
20 class KDSoapHeaders;
21 class KDSoapMessage;
23 QT_BEGIN_NAMESPACE
24 class QHostAddress;
25 QT_END_NAMESPACE
26 
70 class KDSOAP_EXPORT KDSoapUdpClient : public QObject
71 {
72  Q_OBJECT
73 
74 public:
75  explicit KDSoapUdpClient(QObject *parent = nullptr);
76 
77  ~KDSoapUdpClient();
78 
87  bool bind(quint16 port = 0, QAbstractSocket::BindMode mode = QAbstractSocket::DefaultForPlatform);
93  void setSoapVersion(KDSoap::SoapVersion version);
94 
95 public Q_SLOTS:
107  bool sendMessage(const KDSoapMessage &message, const KDSoapHeaders &headers, const QHostAddress &address, quint16 port);
108 
109 Q_SIGNALS:
125  void receivedMessage(const KDSoapMessage &message, const KDSoapHeaders &headers, const QHostAddress &address, quint16 port);
126 
127 private:
128  KDSoapUdpClientPrivate *const d_ptr;
129  Q_DECLARE_PRIVATE(KDSoapUdpClient)
130 };
131 
132 #endif // KDSOAPUDPCLIENT_H
#define KDSOAP_EXPORT
Definition: KDSoapGlobal.h:22
KDSoapUdpClient provides an interface for implementing a SOAP-over-UDP client.
void receivedMessage(const KDSoapMessage &message, const KDSoapHeaders &headers, const QHostAddress &address, quint16 port)

© 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