![]() |
University of Murcia, Spain ![]() |
QVSynchronizer Class Reference |
Public Member Functions | |
QVSynchronizer (QString name=QString()) | |
void | iterate () |
Function to be defined in subclasses with processing code. | |
virtual bool | linkProperty (QString sourcePropName, QVPropertyContainer *destinyContainer, QString destinyPropName, LinkType linkType=AsynchronousLink) |
Links properties among QVPropertyContainer's. | |
virtual bool | linkProperty (QString sourcePropName, QVPropertyContainer &destinyContainer, QString destinyPropName, LinkType linkType=AsynchronousLink) |
virtual bool | linkProperty (QVPropertyContainer *destinyContainer, QString destinyPropName, LinkType linkType=AsynchronousLink) |
virtual bool | linkProperty (QVPropertyContainer &destinyContainer, QString destinyPropName, LinkType linkType=AsynchronousLink) |
virtual bool | linkProperty (QString sourcePropName, QVPropertyContainer *destinyContainer, LinkType linkType=AsynchronousLink) |
virtual bool | linkProperty (QString sourcePropName, QVPropertyContainer &destinyContainer, LinkType linkType=AsynchronousLink) |
virtual void | linkProperty (QVPropertyContainer *container, LinkType linkType=AsynchronousLink) |
Links properties among QVPropertyContainer's. | |
virtual void | linkProperty (QVPropertyContainer &container, LinkType linkType=AsynchronousLink) |
virtual bool | unlinkProperty (QString origName, QVPropertyContainer *destCont, QString destName) |
Unlinks properties among QVPropertyContainer's. | |
virtual bool | unlinkProperty (QString origName, QVPropertyContainer &destCont, QString destName) |
Protected Member Functions | |
virtual bool | linkUnspecifiedInputProperty (QVPropertyContainer *sourceContainer, QString sourcePropName, LinkType linkType=AsynchronousLink) |
virtual bool | treatUnlinkInputProperty (QString destPropName, QVPropertyContainer *sourceCont, QString sourcePropName) |
Definition at line 34 of file qvsynchronizerworker.h.
void QVSynchronizer::iterate | ( | ) | [inline, virtual] |
Function to be defined in subclasses with processing code.
This function should contain the code to process data, that will be executed continuously until worker is finished.
Reimplemented from QVWorker.
Definition at line 40 of file qvsynchronizerworker.h.
bool QVSynchronizer::linkProperty | ( | QString | sourcePropName, | |
QVPropertyContainer * | destinyContainer, | |||
QString | destinyPropName, | |||
LinkType | linkType = AsynchronousLink | |||
) | [virtual] |
Links properties among QVPropertyContainer's.
This method safely links properties among property holders in a thread safe manner. It is mainly used when programming multithreaded applications -with multiple QVWorkers-, but also, for example, when linking workers (running in an independent thread) with GUI widgets (running in the main thread).
The pointer this corresponds to the source QVPropertyContainer.
See also QVPropertyContainer::LinkType.
sourcePropName | Identifying QString for the source property. | |
destinyContainer | Pointer to the destination QVPropertyContainer. | |
destinyPropName | Identifying QString for the destination property. | |
linkType | Synchronous or asynchronous. |
Reimplemented from QVPropertyContainer.
Definition at line 27 of file qvsynchronizerworker.cpp.
Referenced by linkProperty().
void QVSynchronizer::linkProperty | ( | QVPropertyContainer * | container, | |
LinkType | linkType = AsynchronousLink | |||
) | [virtual] |
Links properties among QVPropertyContainer's.
This method safely links all input properties from a container with the same name and type output current container's properties, holders in a thread safe manner. It is mainly used when programming multithreaded applications -with multiple QVWorkers-, but also, for example, when linking workers (running in an independent thread) with GUI widgets (running in the main thread).
container | Pointer to the destination QVPropertyContainer. | |
linkType | Synchronous or asynchronous. |
Reimplemented from QVPropertyContainer.
Definition at line 64 of file qvsynchronizerworker.cpp.
bool QVSynchronizer::unlinkProperty | ( | QString | origName, | |
QVPropertyContainer * | destCont, | |||
QString | destName | |||
) | [virtual] |
Unlinks properties among QVPropertyContainer's.
This method safely ulinks properties among property holders in a thread safe manner.
The pointer this corresponds to the source QVPropertyContainer.
See also QVPropertyContainer::LinkType.
origName | Identifying QString for the source property. | |
destCont | Pointer to the destination QVPropertyContainer. | |
destName | Identifying QString for the destination property. |
Reimplemented from QVPropertyContainer.
Definition at line 74 of file qvsynchronizerworker.cpp.
Referenced by unlinkProperty().