![]() |
University of Murcia, Spain ![]() |
QVPropertyContainerChange Class ReferenceBase class for property container object's changes.
More...
|
Public Types | |
enum | ChangeType |
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) | |
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. | |
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 42 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. 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.
Definition at line 61 of file qvpropertycontainerchange.h.
QVPropertyContainerChange::QVPropertyContainerChange | ( | const QVPropertyContainerChange & | other | ) | [inline] |
Copy constructor.
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).
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 | |||
) | [inline] |
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 103 of file qvpropertycontainerchange.h.
const QString QVPropertyContainerChange::getSourceName | ( | ) | const [inline] |
Retrieves the name of the object changed.
Definition at line 118 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 123 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 128 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 133 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 138 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 143 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 148 of file qvpropertycontainerchange.h.
const QVariant QVPropertyContainerChange::getValue | ( | ) | const [inline] |
Retrieves the value of the property changed if it is of PropertyValue type.
Definition at line 153 of file qvpropertycontainerchange.h.
const bool QVPropertyContainerChange::isSinc | ( | ) | const [inline] |
Retrieves if the link is sinchronous.
Definition at line 158 of file qvpropertycontainerchange.h.
QString QVPropertyContainerChange::toString | ( | ) | const |
Retrieves a QVPropertyContainerChange's description.
Definition at line 28 of file qvpropertycontainerchange.cpp.