Public Member Functions

HStateVariableEvent Class Reference
[Device Model]

A class used to transfer state variable event information. More...

List of all members.

Public Member Functions

 HStateVariableEvent ()
 HStateVariableEvent (const QVariant &previousValue, const QVariant &newValue)
 HStateVariableEvent (const HStateVariableEvent &)
 ~HStateVariableEvent ()
HStateVariableEventoperator= (const HStateVariableEvent &)
bool isEmpty () const
QVariant previousValue () const
QVariant newValue () const

Detailed Description

See also:
HClientStateVariable, HServerStateVariable
Remarks:
This class is not thread-safe.

Constructor & Destructor Documentation

Creates a new, invalid instance.

See also:
isValid()
HStateVariableEvent ( const QVariant &  previousValue,
const QVariant &  newValue 
)

Creates a new instance based on the provided values.

Parameters:
previousValuespecifies the value before the change.
newValuespecifies the value of the state variable at the time the event was generated.
See also:
isEmpty()

Copy constructor.

Copies the contents of the other to this.

Destroys the instance.


Member Function Documentation

HStateVariableEvent & operator= ( const HStateVariableEvent other )

Assigns the contents of the other object to this.

Returns:
reference to this object.
bool isEmpty (  ) const

Indicates if the instance is empty.

Returns:
true if the instance is empty, which means that none of its attributes contain a valid non-empty value.
QVariant previousValue (  ) const

Returns the previous value of the state variable.

Returns:
the previous value of the state variable.
QVariant newValue (  ) const

Returns the new, changed value of the state variable.

Returns:
the new, changed value of the state variable.