From d00327c971abe4c44c3c3395840be179f24c6839 Mon Sep 17 00:00:00 2001 From: Kurt Pattyn Date: Sun, 19 Jan 2014 14:04:07 +0100 Subject: Rename processMessage to processTextMessage Renamed processMessage to be more inline with processBinaryMessage. Change-Id: Ib0c8b9a4999756105f894d7ca5df88452495a66b Reviewed-by: Kurt Pattyn --- examples/sslechoserver/sslechoserver.cpp | 8 ++++---- examples/sslechoserver/sslechoserver.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/sslechoserver') diff --git a/examples/sslechoserver/sslechoserver.cpp b/examples/sslechoserver/sslechoserver.cpp index b360a08..d24c934 100644 --- a/examples/sslechoserver/sslechoserver.cpp +++ b/examples/sslechoserver/sslechoserver.cpp @@ -89,7 +89,7 @@ void SslEchoServer::onNewConnection() qDebug() << "Client connected:" << pSocket->peerName() << pSocket->origin(); - connect(pSocket, &QWebSocket::textMessageReceived, this, &SslEchoServer::processMessage); + connect(pSocket, &QWebSocket::textMessageReceived, this, &SslEchoServer::processTextMessage); connect(pSocket, &QWebSocket::binaryMessageReceived, this, &SslEchoServer::processBinaryMessage); connect(pSocket, &QWebSocket::disconnected, this, &SslEchoServer::socketDisconnected); @@ -99,8 +99,8 @@ void SslEchoServer::onNewConnection() } //! [onNewConnection] -//! [processMessage] -void SslEchoServer::processMessage(QString message) +//! [processTextMessage] +void SslEchoServer::processTextMessage(QString message) { QWebSocket *pClient = qobject_cast(sender()); if (pClient) @@ -109,7 +109,7 @@ void SslEchoServer::processMessage(QString message) Q_UNUSED(bytesWritten); } } -//! [processMessage] +//! [processTextMessage] //! [processBinaryMessage] void SslEchoServer::processBinaryMessage(QByteArray message) diff --git a/examples/sslechoserver/sslechoserver.h b/examples/sslechoserver/sslechoserver.h index bbd0a87..3420a27 100644 --- a/examples/sslechoserver/sslechoserver.h +++ b/examples/sslechoserver/sslechoserver.h @@ -58,7 +58,7 @@ Q_SIGNALS: private Q_SLOTS: void onNewConnection(); - void processMessage(QString message); + void processTextMessage(QString message); void processBinaryMessage(QByteArray message); void socketDisconnected(); -- cgit v1.2.1