Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Proxies/WirelessLocationSystem/wls_json_client_test.h
T

25 lines
409 B
C++
Executable File

#pragma once
#include <QObject>
#include <QtWebSockets/QWebSocket>
class WlsJsonclientTest : public QObject
{
Q_OBJECT
public:
WlsJsonclientTest(const QString &hostname, unsigned short port);
protected Q_SLOTS:
void run();
void onConnected();
void onClosed();
void onTextMessageReceived(const QString &msg);
private:
QWebSocket *m_socket;
QString m_hostname;
unsigned short m_port;
};