Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
berry::ISourceProviderListener Struct Referenceabstract

#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
 

Detailed Description

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.

See also
ISources
ISourceProvider

Definition at line 38 of file berryISourceProviderListener.h.

Constructor & Destructor Documentation

◆ ~ISourceProviderListener()

virtual berry::ISourceProviderListener::~ISourceProviderListener ( )
virtual

Member Function Documentation

◆ SourceChanged() [1/2]

virtual void berry::ISourceProviderListener::SourceChanged ( int  sourcePriority,
const QHash< QString, Object::ConstPointer > &  sourceValuesByName 
)
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

Parameters
sourcePriorityA bit mask of all the source priorities that have changed.
sourceValuesByNameA 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).
See also
org.blueberry.core.expressions.IEvaluationContext
ISources

◆ SourceChanged() [2/2]

virtual void berry::ISourceProviderListener::SourceChanged ( int  sourcePriority,
const QString &  sourceName,
Object::ConstPointer  sourceValue 
)
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.

Parameters
sourcePriorityA bit mask of all the source priorities that have changed.
sourceNameThe name of the source that changed; must not be null.
sourceValueThe new value for that source; may be null.
See also
org.blueberry.core.expressions.IEvaluationContext
ISources

The documentation for this struct was generated from the following file: