diff options
Diffstat (limited to 'src/scxml/qscxmlevent.h')
-rw-r--r-- | src/scxml/qscxmlevent.h | 92 |
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 |