![]() |
University of Murcia, Spain ![]() |
QVPropertyContainerChange Class ReferenceBase class for property container object's changes.
More...
|
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 uint id, const ChangeType type, const QString prop=QString(), const QVariant variant=QVariant()) | |
Constructs a simple QVPropertyContainerChange. | |
QVPropertyContainerChange (const QString source, const uint id, const ChangeType type, const QString contOrig, const uint contOrigId, const QString propOrig, const QString contDest, const uint contDestId, 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 uint | getSourceId () const |
Retrieves the identification number of the object changed. | |
const uint | getOrigId () const |
Retrieves the identification number of the link's origin object if it is of Link type. | |
const uint | getDestId () const |
Retrieves the identification number 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. |
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. 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.
None | |
Name | |
ContainerDel | |
PropertyAdd | |
PropertyDel | |
PropertyValue | |
PropertiesValues | |
LinkAdd | |
LinkDel | |
All |
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 74 of file qvpropertycontainerchange.h.
QVPropertyContainerChange::QVPropertyContainerChange | ( | const QString | source, | |
const uint | id, | |||
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).
source | The QVPropertyContainer changed's name. | |
id | The QVPropertyContainer changed's id. | |
type | Type of the new QVPropertyContainerChange. | |
prop | Name of the property changed, added or removed. | |
prop | The new value of the property changed. |
Definition at line 91 of file qvpropertycontainerchange.h.
QVPropertyContainerChange::QVPropertyContainerChange | ( | const QString | source, | |
const uint | id, | |||
const ChangeType | type, | |||
const QString | contOrig, | |||
const uint | contOrigId, | |||
const QString | propOrig, | |||
const QString | contDest, | |||
const uint | contDestId, | |||
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.
source | The QVPropertyContainer changed's name. | |
id | The QVPropertyContainer changed's id. | |
type | Type of the new QVPropertyContainerChange. | |
contOrig | The source QVPropertyContainer's name. | |
contOrigId | The source QVPropertyContainer's id. | |
propOrig | Name of the origin property changed. | |
contDest | The destiny QVPropertyContainer's name. | |
contDestId | The destiny QVPropertyContainer's id. | |
propDest | Name of the destiny property. | |
sinc | Indicates if the link is Synchronous (if not is Asynchronous). | |
sequ | Indicates if the link is Sequential (if is sequential the "sinc" value must be ignorate). |
Definition at line 116 of file qvpropertycontainerchange.h.
const QString QVPropertyContainerChange::getSourceName | ( | ) | const [inline] |
Retrieves the name of the object changed.
Definition at line 135 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 140 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 145 of file qvpropertycontainerchange.h.
const uint QVPropertyContainerChange::getSourceId | ( | ) | const [inline] |
Retrieves the identification number of the object changed.
Definition at line 150 of file qvpropertycontainerchange.h.
const uint QVPropertyContainerChange::getOrigId | ( | ) | const [inline] |
Retrieves the identification number of the link's origin object if it is of Link type.
Definition at line 155 of file qvpropertycontainerchange.h.
const uint QVPropertyContainerChange::getDestId | ( | ) | const [inline] |
Retrieves the identification number of the link's destiny object if it is of Link type.
Definition at line 160 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 165 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 170 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 175 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 180 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 185 of file qvpropertycontainerchange.h.
const bool QVPropertyContainerChange::isSinc | ( | ) | const [inline] |
Retrieves if the link is sinchronous.
Definition at line 190 of file qvpropertycontainerchange.h.
const bool QVPropertyContainerChange::isSequ | ( | ) | const [inline] |
Retrieves if the link is sequential.
Definition at line 195 of file qvpropertycontainerchange.h.
QString QVPropertyContainerChange::toString | ( | ) | const |
Retrieves a QVPropertyContainerChange's description.
Definition at line 28 of file qvpropertycontainerchange.cpp.