summaryrefslogtreecommitdiffstats
path: root/src/mqtt/qmqttclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mqtt/qmqttclient.h')
-rw-r--r--src/mqtt/qmqttclient.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mqtt/qmqttclient.h b/src/mqtt/qmqttclient.h
index 92e114b..478c7e8 100644
--- a/src/mqtt/qmqttclient.h
+++ b/src/mqtt/qmqttclient.h
@@ -42,6 +42,9 @@
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#include <QtNetwork/QTcpSocket>
+#ifndef QT_NO_SSL
+#include <QtNetwork/QSslConfiguration>
+#endif
QT_BEGIN_NAMESPACE
@@ -127,7 +130,10 @@ public:
Q_INVOKABLE void connectToHost();
#ifndef QT_NO_SSL
- Q_INVOKABLE void connectToHostEncrypted(const QString &sslPeerName = QString());
+#if QT_DEPRECATED_SINCE(5, 14)
+ QT_DEPRECATED Q_INVOKABLE void connectToHostEncrypted(const QString &sslPeerName = QString()); /// ### Qt 6: remove
+#endif
+ void connectToHostEncrypted(const QSslConfiguration &conf);
#endif
Q_INVOKABLE void disconnectFromHost();