diff options
author | André Pönitz <andre.poenitz@theqtcompany.com> | 2015-08-18 13:34:11 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2015-08-25 12:55:16 +0300 |
commit | ce4962ee05a131b76f31a8b7600c19e438e7417e (patch) | |
tree | b71eea80322a2ad64611be44045b64baf2260f0e /tests | |
parent | 39ea04908cc0eeaaa474ba1320cc6b7109ad6434 (diff) |
Pimple Scxml::ScxmlEvent, and rename to QScxmlEvent
Change-Id: Ia352c421ae2190d0797ba7b67732a13c6251407e
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/scion/tst_scion.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/auto/scion/tst_scion.cpp b/tests/auto/scion/tst_scion.cpp index 6326335..53b68cb 100644 --- a/tests/auto/scion/tst_scion.cpp +++ b/tests/auto/scion/tst_scion.cpp @@ -310,13 +310,13 @@ static bool playEvent(StateMachine *stateMachine, const QJsonObject &eventDescri auto event = eventDescription.value(QLatin1String("event")).toObject(); auto eventName = event.value(QLatin1String("name")).toString().toUtf8(); Q_ASSERT(!eventName.isEmpty()); - ScxmlEvent::EventType type = ScxmlEvent::External; + QScxmlEvent::EventType type = QScxmlEvent::ExternalEvent; if (event.contains(QLatin1String("type"))) { QString typeStr = event.value(QLatin1String("type")).toString(); if (typeStr.compare(QLatin1String("external"), Qt::CaseInsensitive) == 0) - type = ScxmlEvent::Internal; + type = QScxmlEvent::InternalEvent; else if (typeStr.compare(QLatin1String("platform"), Qt::CaseInsensitive) == 0) - type = ScxmlEvent::Platform; + type = QScxmlEvent::PlatformEvent; else { qWarning() << "unexpected event type in " << eventDescription; return false; @@ -349,7 +349,15 @@ static bool playEvent(StateMachine *stateMachine, const QJsonObject &eventDescri QByteArray invokeid; if (event.contains(QLatin1String("invokeid"))) invokeid = event.value(QLatin1String("invokeid")).toString().toUtf8(); - ScxmlEvent *e = new ScxmlEvent(eventName, type, dataValues, dataNames, sendid, origin, origintype, invokeid); + QScxmlEvent *e = new QScxmlEvent; + e->setName(eventName); + e->setEventType(type); + e->setDataValues(dataValues); + e->setDataNames(dataNames); + e->setSendId(sendid); + e->setOrigin(origin); + e->setOriginType(origintype); + e->setInvokeId(invokeid); // qDebug() << "submitting event" << eventName << "...."; if (eventDescription.contains(QLatin1String("after"))) { int delay = eventDescription.value(QLatin1String("after")).toInt(); |