WebpagePrinterTool 2.0
Print a web page skip the browser's print preview
载入中...
搜索中...
未找到
WebsocketClient类 参考

#include <WebsocketClient.h>

类 WebsocketClient 继承关系图:
WebsocketClient 的协作图:

信号

void closed ()
 

Public 成员函数

 WebsocketClient (const QUrl &url, std::function< void(const QString &, const QString &, const QString &, std::move_only_function< void(QJsonObject)>)> message_handler)
 

Private 槽

void onConnected ()
 
void onTextMessageReceived (QString message)
 

Private 属性

std::function< void(const QString &, const QString &, const QString &, std::move_only_function< void(QJsonObject)>)> message_handler
 
QWebSocket websocket
 

构造及析构函数说明

◆ WebsocketClient()

WebsocketClient::WebsocketClient ( const QUrl & url,
std::function< void(const QString &, const QString &, const QString &, std::move_only_function< void(QJsonObject)>)> message_handler )
explicit

成员函数说明

◆ closed

void WebsocketClient::closed ( )
signal

◆ onConnected

void WebsocketClient::onConnected ( )
privateslot

◆ onTextMessageReceived

void WebsocketClient::onTextMessageReceived ( QString message)
privateslot

类成员变量说明

◆ message_handler

std::function<void(const QString&, const QString&, const QString&, std::move_only_function<void(QJsonObject)>)> WebsocketClient::message_handler
private

◆ websocket

QWebSocket WebsocketClient::websocket
private

该类的文档由以下文件生成: