Merge PR #573: Fix event params in eventTriggered signal
This commit is contained in:
commit
1edbb11ecd
@ -201,8 +201,8 @@ void ThingManager::notificationReceived(const QVariantMap &data)
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// qDebug() << "Event received" << thingId.toString() << eventTypeId.toString() << qUtf8Printable(QJsonDocument::fromVariant(event).toJson());
|
qCDebug(dcThingManager) << "Event received" << thingId.toString() << eventTypeId.toString() << qUtf8Printable(QJsonDocument::fromVariant(event).toJson());
|
||||||
thing->eventTriggered(eventTypeId.toString(), event.value("params").toMap());
|
thing->eventTriggered(eventTypeId.toString(), event.value("params").toList());
|
||||||
} else if (notification == "Integrations.IOConnectionAdded") {
|
} else if (notification == "Integrations.IOConnectionAdded") {
|
||||||
QVariantMap connectionMap = data.value("params").toMap().value("ioConnection").toMap();
|
QVariantMap connectionMap = data.value("params").toMap().value("ioConnection").toMap();
|
||||||
QUuid id = connectionMap.value("id").toUuid();
|
QUuid id = connectionMap.value("id").toUuid();
|
||||||
|
|||||||
@ -140,7 +140,7 @@ signals:
|
|||||||
void paramsChanged();
|
void paramsChanged();
|
||||||
void settingsChanged();
|
void settingsChanged();
|
||||||
void statesChanged();
|
void statesChanged();
|
||||||
void eventTriggered(const QUuid &eventTypeId, const QVariantMap ¶ms);
|
void eventTriggered(const QUuid &eventTypeId, const QVariantList ¶ms);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void executeActionReply(int commandId, Thing::ThingError thingError, const QString &displayMessage);
|
void executeActionReply(int commandId, Thing::ThingError thingError, const QString &displayMessage);
|
||||||
|
|||||||
Reference in New Issue
Block a user