PARP Research Group University of Murcia, Spain


QVPropertyContainerChange Class Reference
[Core classes]

Base class for property container object's changes. More...

#include <qvcore/qvpropertycontainerchange.h>

List of all members.

Public Types

enum  ChangeType {
  None, Name, ContainerDel, PropertyAdd,
  PropertyDel, PropertyValue, PropertiesValues, LinkAdd,
  LinkDel, All
}
 Semantics for a change type of a QVPropertyContainer. More...

Public Member Functions

 QVPropertyContainerChange ()
 Constructs a None type QVPropertyContainerChange.
 QVPropertyContainerChange (const QVPropertyContainerChange &other)
 Copy constructor.
 QVPropertyContainerChange (const QString source, const ChangeType type, const QString prop=QString(), const QVariant variant=QVariant())
 Constructs a simple QVPropertyContainerChange.
 QVPropertyContainerChange (const QString source, const ChangeType type, const QString contOrig, const QString propOrig, const QString contDest, const QString propDest, const bool sinc=FALSE, const bool sequ=FALSE)
 Constructs a Link QVPropertyContainerChange.
const QString getSourceName () const
 Retrieves the name of the object changed.
const QString getOrigName () const
 Retrieves the name of the link's origin object if it is of Link type.
const QString getDestName () const
 Retrieves the name of the link's destiny object if it is of Link type.
const ChangeType getChangeType () const
 Retrieves the type of the change: None, Name, Property, Link or All.
const QString getPropName () const
 Retrieves the name of the property changed if it is of Property type.
const QString getOrigProp () const
 Retrieves the name of the origin property if it is of Link type.
const QString getDestProp () const
 Retrieves the name of the destiny property if it is of Link type.
const QVariant getValue () const
 Retrieves the value of the property changed if it is of PropertyValue type.
const bool isSinc () const
 Retrieves if the link is sinchronous.
const bool isSequ () const
 Retrieves if the link is sequential.
QString toString () const
 Retrieves a QVPropertyContainerChange's description.


Detailed Description

Base class for property container object's changes.

This class represents a property container change, indicating the type and some parameters to locate it (depending of the type).

For futher information about them, see section QVPropertyContainer.

Definition at line 42 of file qvpropertycontainerchange.h.


Member Enumeration Documentation

Semantics for a change type of a QVPropertyContainer.

None: there are no change, for default constructor. Name: has changed only the name of the property container. ContainerAdd: a container has been add. ContainerDel: a container has been delete. PropertyAdd: a property has been add. PropertyDel: a property has been delete. PropertyValue: has changed a property value. PropertiesValues: has changed all properties values (in a readInputProperties). LinkAdd: a Link has been add, the link can be a input or a output link. LinkDel: a Link has been delete, the link can be a input or a output link. All: it should been changed all the property container, when a property container has been copied from other.

Enumerator:
None 
Name 
ContainerDel 
PropertyAdd 
PropertyDel 
PropertyValue 
PropertiesValues 
LinkAdd 
LinkDel 
All 

Definition at line 61 of file qvpropertycontainerchange.h.


Constructor & Destructor Documentation

QVPropertyContainerChange::QVPropertyContainerChange ( const QVPropertyContainerChange other  )  [inline]

Copy constructor.

Parameters:
other property container's change to be copied.

Definition at line 73 of file qvpropertycontainerchange.h.

QVPropertyContainerChange::QVPropertyContainerChange ( const QString  source,
const ChangeType  type,
const QString  prop = QString(),
const QVariant  variant = QVariant() 
) [inline]

Constructs a simple QVPropertyContainerChange.

Constructs a simple QVPropertyContainerChange, with a property name value (for PropertyAdd, PropertyDel or PropertyValue changes) or without values (for None, Name or All changes).

Parameters:
container Reference to the object changed.
type Type of the new QVPropertyContainerChange.
prop Name of the property changed, added or removed.

Definition at line 87 of file qvpropertycontainerchange.h.

QVPropertyContainerChange::QVPropertyContainerChange ( const QString  source,
const ChangeType  type,
const QString  contOrig,
const QString  propOrig,
const QString  contDest,
const QString  propDest,
const bool  sinc = FALSE,
const bool  sequ = FALSE 
) [inline]

Constructs a Link QVPropertyContainerChange.

Constructs a Link QVPropertyContainerChange, used to set the linkAdd or LinkDel change values.

Parameters:
container Reference to the object changed.
type Type of the new QVPropertyContainerChange.
contOrig Reference to the origin property container of the link added or removed.
propOrig Name of the origin property changed.
contDest Reference to the destiny property container of the link added or removed.
propDest Name of the destiny property.
sinc Indicates if the link is Synchronous (if not is Asynchronous).

Definition at line 104 of file qvpropertycontainerchange.h.


Member Function Documentation

const QString QVPropertyContainerChange::getSourceName (  )  const [inline]

Retrieves the name of the object changed.

Returns:
QString name of the object changed.

Definition at line 120 of file qvpropertycontainerchange.h.

const QString QVPropertyContainerChange::getOrigName (  )  const [inline]

Retrieves the name of the link's origin object if it is of Link type.

Returns:
QString name of the link's origin object.

Definition at line 125 of file qvpropertycontainerchange.h.

const QString QVPropertyContainerChange::getDestName (  )  const [inline]

Retrieves the name of the link's destiny object if it is of Link type.

Returns:
QString name of the link's destiny object.

Definition at line 130 of file qvpropertycontainerchange.h.

const ChangeType QVPropertyContainerChange::getChangeType (  )  const [inline]

Retrieves the type of the change: None, Name, Property, Link or All.

Returns:
ChangeType the type of the change.

Definition at line 135 of file qvpropertycontainerchange.h.

const QString QVPropertyContainerChange::getPropName (  )  const [inline]

Retrieves the name of the property changed if it is of Property type.

Returns:
QString the name of the property changed.

Definition at line 140 of file qvpropertycontainerchange.h.

const QString QVPropertyContainerChange::getOrigProp (  )  const [inline]

Retrieves the name of the origin property if it is of Link type.

Returns:
QString the name of the origin property.

Definition at line 145 of file qvpropertycontainerchange.h.

const QString QVPropertyContainerChange::getDestProp (  )  const [inline]

Retrieves the name of the destiny property if it is of Link type.

Returns:
QString the name of the destiny property.

Definition at line 150 of file qvpropertycontainerchange.h.

const QVariant QVPropertyContainerChange::getValue (  )  const [inline]

Retrieves the value of the property changed if it is of PropertyValue type.

Returns:
QVariant the value of the property changed.

Definition at line 155 of file qvpropertycontainerchange.h.

const bool QVPropertyContainerChange::isSinc (  )  const [inline]

Retrieves if the link is sinchronous.

Returns:
bool if the link is sinchronous (if not is Asynchronous).

Definition at line 160 of file qvpropertycontainerchange.h.

const bool QVPropertyContainerChange::isSequ (  )  const [inline]

Retrieves if the link is sequential.

Returns:
bool if the link is sequential.

Definition at line 165 of file qvpropertycontainerchange.h.

QString QVPropertyContainerChange::toString (  )  const

Retrieves a QVPropertyContainerChange's description.

Returns:
QString the QVPropertyContainerChange's description.

Definition at line 28 of file qvpropertycontainerchange.cpp.


The documentation for this class was generated from the following files:



QVision framework. PARP research group, copyright 2007, 2008.