QVisu
Qt-based visualization for smart homes
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
QVWebsocket Class Reference

#include <qvwebsocket.h>

Inheritance diagram for QVWebsocket:

Public Slots

void open (QUrl)
 
void close ()
 
void shutdown ()
 
void sendTextMessage (QString)
 
void startLogging (QString)
 
void stopLogging ()
 

Signals

void connected ()
 
void disconnected ()
 
void textMessageReceived (QString)
 

Public Member Functions

 QVWebsocket (QObject *parent=0)
 

Detailed Description

Provides websocket functionality. The Qt5 websocket module seems to be incompatible with sh.py. This class is used by QVDriver and should not be accessed directly. Only text messages are supported.

Member Function Documentation

void QVWebsocket::close ( )
slot

Hard close of the websocket connection. shutdown() should be used instead.

void QVWebsocket::connected ( )
signal

Emitted when the websocket connection is established.

void QVWebsocket::disconnected ( )
signal

Emitted when the websocket connection is terminated.

void QVWebsocket::open ( QUrl  url)
slot

Open a websocket URL. The URL must start with ws://

void QVWebsocket::sendTextMessage ( QString  message)
slot

Send a text message to the other party

void QVWebsocket::shutdown ( )
slot

Send a termination message to the other party, requesting it to shut down the connection

void QVWebsocket::textMessageReceived ( QString  )
signal

Emitted when a text message was received.


The documentation for this class was generated from the following files: