Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryISourceProviderListener.h>
Classes | |
struct | Events |
Public Member Functions | |
virtual | ~ISourceProviderListener () |
virtual void | SourceChanged (int sourcePriority, const QHash< QString, Object::ConstPointer > &sourceValuesByName)=0 |
virtual void | SourceChanged (int sourcePriority, const QString &sourceName, Object::ConstPointer sourceValue)=0 |
A listener to changes in a particular source of information. This listener is notified as the source changes. Typically, workbench services will implement this interface, and register themselves as listeners to the ISourceProvider
instances that are registered with them.
Definition at line 42 of file berryISourceProviderListener.h.
|
virtual |
Definition at line 37 of file berryISourceProviderListener.cpp.
|
pure virtual |
Handles a change to multiple sources. The source priority should be a bit mask indicating the sources. The map will be used to construct the variables on an IEvaluationContext
sourcePriority | A bit mask of all the source priorities that have changed. |
sourceValuesByName | A mapping of the source names (String ) to the source values (Object ). The names should never be null , but the values may be. The map must not be null , and should contain at least two elements (one for each source). |
Referenced by berry::ISourceProviderListener::Events::AddListener(), and berry::ISourceProviderListener::Events::RemoveListener().
|
pure virtual |
Handles a change to one source. The source priority should indicate the source, and the name-value pair will be used to create an IEvaluationContext
with a single variable.
sourcePriority | A bit mask of all the source priorities that have changed. |
sourceName | The name of the source that changed; must not be null . |
sourceValue | The new value for that source; may be null . |