Rename method to avoid conflict with Qt's one 41/14941/1
authorLoïc Collignon <loic.collignon@iot.bzh>
Mon, 2 Jul 2018 15:07:51 +0000 (17:07 +0200)
committerLoïc Collignon <loic.collignon@iot.bzh>
Mon, 2 Jul 2018 15:07:51 +0000 (17:07 +0200)
Each QtObject define an 'event' method, which can conflict with the
'event' method to handle events in an Application Framework meaning.

Change-Id: I0fad844bfaa8fbfc2d14cc15b1f346b6f739a643
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
qafbwebsocketclient.cpp
qafbwebsocketclient.h

index c4eb8ae..f0f3dce 100644 (file)
@@ -167,7 +167,7 @@ void QAfbWebsocketClient::onSocketTextReceived(QString msg)
         break;
     }
     case 5: // Events
-        emit event(arr[1].toString(), arr[2].toObject()["data"]);
+        emit eventReceived(arr[1].toString(), arr[2].toObject()["data"]);
         break;
     }
 }
index 71e719d..9e97dcc 100644 (file)
@@ -58,7 +58,7 @@ signals:
     void error(QAbstractSocket::SocketError);
     void textReceived(QString msg);
     void textSent(QString msg);
-    void event(QString eventName, const QJsonValue& data);
+    void eventReceived(QString eventName, const QJsonValue& data);
 
 private:
     int m_nextCallId;