Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::PropertyChangeEvent Class Reference

Property change event's are used whenever a propertys value changes. More...

#include <vcf/FoundationKit/PropertyChangeEvent.h>

Inheritance diagram for VCF::PropertyChangeEvent:

VCF::Event VCF::Object List of all members.

Public Member Functions

 PropertyChangeEvent (Object *source, VariantData *changeValue, VariantData *originalValue)
 PropertyChangeEvent (const PropertyChangeEvent &rhs)
virtual ~PropertyChangeEvent ()
PropertyChangeEventoperator= (const PropertyChangeEvent &rhs)
VariantDatagetChangeValue ()
 returns the VariantData that represents the new value
VariantDatagetOriginalValue ()
 returns a VariantData that represents the original value before the change
virtual Objectclone (bool deep=false) const
 Makes a complete clone of this object.

Detailed Description

Property change event's are used whenever a propertys value changes.


Constructor & Destructor Documentation

VCF::PropertyChangeEvent::PropertyChangeEvent Object source,
VariantData changeValue,
VariantData originalValue
[inline]
 

VCF::PropertyChangeEvent::PropertyChangeEvent const PropertyChangeEvent rhs  )  [inline]
 

VCF::PropertyChangeEvent::~PropertyChangeEvent  )  [inline, virtual]
 


Member Function Documentation

virtual Object* VCF::PropertyChangeEvent::clone bool  deep = false  )  const [inline, virtual]
 

Makes a complete clone of this object.

A typical implementation might be:

    virtual Object* clone( bool deep ) {
        return new MyObject( this );
    }
In which the implementer simply creates a new instance on the heap and calls the copy constructor. Objects which support cloning should also have a copy constructor defined as well.

Parameters:
bool deep if deep is true then any object instances that this object owns should probably be cloned as well, with full new copies made. Otherwise it would be acceptable to simply copy the pointer values. The default value is for deep cloning to be false.
Returns:
Object a new instance that should be an copy of this. If the object doesn't support cloning the return will value will be NULL.

Reimplemented from VCF::Event.

VariantData * VCF::PropertyChangeEvent::getChangeValue  )  [inline]
 

returns the VariantData that represents the new value

VariantData * VCF::PropertyChangeEvent::getOriginalValue  )  [inline]
 

returns a VariantData that represents the original value before the change

PropertyChangeEvent& VCF::PropertyChangeEvent::operator= const PropertyChangeEvent rhs  )  [inline]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information