#include <qvcore/qvpropertycontainerchange.h>
Public Types | |
enum | ChangeType { None, Name, ContainerDel, PropertyAdd, PropertyDel, PropertyValue, 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 QVPropertyContainer *container, const ChangeType type, const QString prop=QString()) | |
Constructs a simple QVPropertyContainerChange. | |
QVPropertyContainerChange (const QVPropertyContainer *container, const ChangeType type, const QString contOrig, const QString propOrig, const QString contDest, const QString propDest, const bool sinc=FALSE) | |
Constructs a Link QVPropertyContainerChange. | |
const QVPropertyContainer * | getSource () const |
Retrieves a reference to the object changed. | |
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 bool | isSinc () const |
Retrieves if the link is sinchronous. | |
QString | toString () const |
Retrieves a QVPropertyContainerChange's description. |
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 41 of file qvpropertycontainerchange.h.
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. 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.
Definition at line 59 of file qvpropertycontainerchange.h.
QVPropertyContainerChange::QVPropertyContainerChange | ( | const QVPropertyContainerChange & | other | ) | [inline] |
Copy constructor.
other | property container's change to be copied. |
Definition at line 70 of file qvpropertycontainerchange.h.
QVPropertyContainerChange::QVPropertyContainerChange | ( | const QVPropertyContainer * | container, | |
const ChangeType | type, | |||
const QString | prop = QString() | |||
) |
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).
container | Reference to the object changed. | |
type | Type of the new QVPropertyContainerChange. | |
prop | Name of the property changed, added or removed. |
Definition at line 29 of file qvpropertycontainerchange.cpp.
QVPropertyContainerChange::QVPropertyContainerChange | ( | const QVPropertyContainer * | container, | |
const ChangeType | type, | |||
const QString | contOrig, | |||
const QString | propOrig, | |||
const QString | contDest, | |||
const QString | propDest, | |||
const bool | sinc = FALSE | |||
) |
Constructs a Link QVPropertyContainerChange.
Constructs a Link QVPropertyContainerChange, used to set the linkAdd or LinkDel change values.
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 36 of file qvpropertycontainerchange.cpp.
const QVPropertyContainer* QVPropertyContainerChange::getSource | ( | ) | const [inline] |
Retrieves a reference to the object changed.
Definition at line 107 of file qvpropertycontainerchange.h.
const QString QVPropertyContainerChange::getSourceName | ( | ) | const [inline] |
Retrieves the name of the object changed.
Definition at line 111 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.
Definition at line 115 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.
Definition at line 119 of file qvpropertycontainerchange.h.
const ChangeType QVPropertyContainerChange::getChangeType | ( | ) | const [inline] |
Retrieves the type of the change: None, Name, Property, Link or All.
Definition at line 123 of file qvpropertycontainerchange.h.
const QString QVPropertyContainerChange::getPropName | ( | ) | const [inline] |
Retrieves the name of the property changed if it is of Property type.
Definition at line 127 of file qvpropertycontainerchange.h.
const QString QVPropertyContainerChange::getOrigProp | ( | ) | const [inline] |
Retrieves the name of the origin property if it is of Link type.
Definition at line 131 of file qvpropertycontainerchange.h.
const QString QVPropertyContainerChange::getDestProp | ( | ) | const [inline] |
Retrieves the name of the destiny property if it is of Link type.
Definition at line 135 of file qvpropertycontainerchange.h.
const bool QVPropertyContainerChange::isSinc | ( | ) | const [inline] |
Retrieves if the link is sinchronous.
Definition at line 139 of file qvpropertycontainerchange.h.
QString QVPropertyContainerChange::toString | ( | ) | const |
Retrieves a QVPropertyContainerChange's description.
Definition at line 51 of file qvpropertycontainerchange.cpp.