QtScriptedEvent Class Reference
The QtScriptedEvent class stands for a general named event with a list of parameter names and parameter values. More...
#include <QtScriptedEvent>
Inherits QEvent.
Public Types
Public Functions
- QtScriptedEvent ( const QString & name, const QStringList & paramNames = QStringList(), const QVariantList & paramValues = QVariantList(), const QScriptValue & content = QScriptValue() )
- QScriptValue content () const
- QString eventName () const
- QVariant param ( const QString & name ) const
- QStringList paramNames () const
- QVariantList paramValues () const
- 6 public functions inherited from QEvent
Static Public Members
- 1 static public member inherited from QEvent
Additional Inherited Members
- 1 property inherited from QEvent
- 2 protected variables inherited from QEvent
Detailed Description
The QtScriptedEvent class stands for a general named event with a list of parameter names and parameter values.
Encapsulates an event that conforms to the SCXML definition of events.
Member Function Documentation
QtScriptedEvent::QtScriptedEvent ( const QString & name, const QStringList & paramNames = QStringList(), const QVariantList & paramValues = QVariantList(), const QScriptValue & content = QScriptValue() )
Creates a QtScriptedEvent named name, with parameter names paramNames, parameter values paramValues, and a QtScript object content as an additional parameter.
QScriptValue QtScriptedEvent::content () const
Return a QtScript object that can be passed as an additional parameter.
QString QtScriptedEvent::eventName () const
Returns the name of the event.
QEvent::Type QtScriptedEvent::eventType () [static]
Returns a statically-generated event type to be used by SCXML events.
QVariant QtScriptedEvent::param ( const QString & name ) const
Returns the parameter value equivalent to parameter name.
QStringList QtScriptedEvent::paramNames () const
Return a list containing the parameter names.
QVariantList QtScriptedEvent::paramValues () const
Return a list containing the parameter values.