- connect(&m_client, SIGNAL(connected()), this, SLOT(onClientConnected()));
- connect(&m_client, SIGNAL(disconnected()), this, SLOT(onClientDisconnected()));
- connect(&m_client, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(onClientError(QAbstractSocket::SocketError)));
- connect(&m_client, SIGNAL(eventReceived(QString, const QJsonValue&)), this, SLOT(onClientEventReceived(QString, const QJsonValue&)));
+ VehicleSignalsConfig vsConfig("homescreen");
+ m_vs = new VehicleSignals(vsConfig);
+
+ if (m_vs) {
+ QObject::connect(m_vs, &VehicleSignals::connected, this, &MasterVolume::onConnected);
+
+ m_vs->connect();
+ }