From d3c3cac3d3edab1b5bdc44aeb24ad0f1d35f17f4 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Thu, 17 Sep 2015 15:19:07 +0200 Subject: Renamed files to (hopefully) match Qt naming. Change-Id: Iaaebe835a6bdcfe934af10090b51973c10f38a90 Reviewed-by: Erik Verbruggen --- src/scxml/qscxmlevent.h | 92 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 src/scxml/qscxmlevent.h (limited to 'src/scxml/qscxmlevent.h') diff --git a/src/scxml/qscxmlevent.h b/src/scxml/qscxmlevent.h new file mode 100644 index 0000000..dc8df01 --- /dev/null +++ b/src/scxml/qscxmlevent.h @@ -0,0 +1,92 @@ +/**************************************************************************** + ** + ** Copyright (c) 2015 Digia Plc + ** For any questions to Digia, please use contact form at http://qt.digia.com/ + ** + ** All Rights Reserved. + ** + ** NOTICE: All information contained herein is, and remains + ** the property of Digia Plc and its suppliers, + ** if any. The intellectual and technical concepts contained + ** herein are proprietary to Digia Plc + ** and its suppliers and may be covered by Finnish and Foreign Patents, + ** patents in process, and are protected by trade secret or copyright law. + ** Dissemination of this information or reproduction of this material + ** is strictly forbidden unless prior written permission is obtained + ** from Digia Plc. + ****************************************************************************/ + +#ifndef SCXMLEVENT_H +#define SCXMLEVENT_H + +#include + +#include +#include +#include + +QT_BEGIN_NAMESPACE + +namespace QScxmlInternal { +class WrappedQStateMachine; +} + +class QScxmlEventPrivate; + +class Q_SCXML_EXPORT QScxmlEvent: public QEvent +{ +public: + QScxmlEvent(); + ~QScxmlEvent(); + + QScxmlEvent &operator=(const QScxmlEvent &other); + QScxmlEvent(const QScxmlEvent &other); + + enum EventType { + PlatformEvent, + InternalEvent, + ExternalEvent + }; + + QByteArray name() const; + void setName(const QByteArray &name); + + EventType eventType() const; + void setEventType(const EventType &type); + + QString scxmlType() const; + + QByteArray sendId() const; + void setSendId(const QByteArray &sendId); + + QString origin() const; + void setOrigin(const QString &origin); + + QString originType() const; + void setOriginType(const QString &originType); + + QString invokeId() const; + void setInvokeId(const QString &invokeId); + + int delay() const; + void setDelay(int delayInMiliSecs); + + void clear(); + + QVariant data() const; + void setData(const QVariant &data); + +protected: + friend QScxmlInternal::WrappedQStateMachine; + static QEvent::Type scxmlEventType; + static QEvent::Type ignoreEventType; + void makeIgnorable(); + +private: + QScxmlEventPrivate *d; + +}; + +QT_END_NAMESPACE + +#endif // SCXMLEVENT_H -- cgit v1.2.3