A class used to transfer HStateVariable event information. More...
#include <HStateVariableEvent>
Public Member Functions | |
HStateVariableEvent () | |
HStateVariableEvent (HStateVariable *eventSource, const QVariant &previousValue, const QVariant &newValue) | |
HStateVariableEvent (const HStateVariableEvent &) | |
virtual | ~HStateVariableEvent () |
HStateVariableEvent & | operator= (const HStateVariableEvent &) |
bool | isValid () const |
HStateVariable * | eventSource () const |
QVariant | previousValue () const |
QVariant | newValue () const |
Creates a new, invalid instance.
HStateVariableEvent | ( | HStateVariable * | eventSource, | |
const QVariant & | previousValue, | |||
const QVariant & | newValue | |||
) |
Creates a new instance based on the provided values.
eventSource | specifies the state variable that generated the event. | |
previousValue | specifies the value before the value changed. | |
newValue | specifies the newly set value. |
HStateVariableEvent | ( | const HStateVariableEvent & | other | ) |
Copy constructor.
Copies the contents of the other
to this.
~HStateVariableEvent | ( | ) | [virtual] |
Destroys the instance.
HStateVariableEvent & operator= | ( | const HStateVariableEvent & | other | ) |
Assigns the contents of the other object to this.
bool isValid | ( | ) | const |
Indicates whether the object is valid.
QVariant
and eventSource() is defined. HStateVariable * eventSource | ( | ) | const |
Returns the source state variable that generated the event.
QVariant previousValue | ( | ) | const |
Returns the previous value of the state variable.
QVariant newValue | ( | ) | const |
Returns the new, changed value of the state variable.