Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Small test program to connect to the wls websocket
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Christian Ehrlicher, SLSE, 2017-01-10
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <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;
|
||||
};
|
||||
Reference in new issue
Block a user