summaryrefslogtreecommitdiffstats
path: root/src/scxml/qscxmlevent.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@theqtcompany.com>2015-09-17 15:19:07 +0200
committerErik Verbruggen <erik.verbruggen@theqtcompany.com>2015-09-17 16:21:31 +0300
commitd3c3cac3d3edab1b5bdc44aeb24ad0f1d35f17f4 (patch)
treea205edc4c2a03e952e18aa552cd01c7e239c9cea /src/scxml/qscxmlevent.h
parentffc2fa7af23336924e1b094dee8c57f7e53f6041 (diff)
Renamed files to (hopefully) match Qt naming.
Change-Id: Iaaebe835a6bdcfe934af10090b51973c10f38a90 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'src/scxml/qscxmlevent.h')
-rw-r--r--src/scxml/qscxmlevent.h92
1 files changed, 92 insertions, 0 deletions
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 <QtScxml/qscxmlglobals.h>
+
+#include <QEvent>
+#include <QStringList>
+#include <QVariantList>
+
+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