Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
#include <berryISourceProvider.h>
Public Types | |
typedef QHash< QString, Object::ConstPointer > | StateMapType |
Public Types inherited from berry::Object | |
typedef Object | Self |
typedef berry::SmartPointer< Self > | Pointer |
typedef berry::SmartPointer< const Self > | ConstPointer |
typedef berry::WeakPointer< Self > | WeakPtr |
typedef berry::WeakPointer< const Self > | ConstWeakPtr |
Public Member Functions | |
berryObjectMacro (berry::ISourceProvider) | |
~ISourceProvider () override | |
virtual void | AddSourceProviderListener (ISourceProviderListener *listener)=0 |
virtual StateMapType | GetCurrentState () const =0 |
virtual QList< QString > | GetProvidedSourceNames () const =0 |
virtual void | RemoveSourceProviderListener (ISourceProviderListener *listener)=0 |
Public Member Functions inherited from berry::Object | |
virtual QString | GetClassName () const |
virtual Reflection::TypeInfo | GetTypeInfo () const |
virtual QList< Reflection::TypeInfo > | GetSuperclasses () const |
virtual void | Delete () |
QDebug | Print (QDebug os, Indent Indent=0) const |
virtual QString | ToString () const |
virtual uint | HashCode () const |
virtual bool | operator< (const Object *) const |
void | Register () const |
void | UnRegister (bool del=true) const |
int | GetReferenceCount () const |
void | SetReferenceCount (int) |
void | AddDestroyListener (const MessageAbstractDelegate<> &delegate) const |
void | RemoveDestroyListener (const MessageAbstractDelegate<> &delegate) const |
virtual bool | operator== (const Object *) const |
Additional Inherited Members | |
Static Public Member Functions inherited from berry::Object | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
Protected Member Functions inherited from berry::Object | |
Object () | |
virtual | ~Object () |
virtual QDebug | PrintSelf (QDebug os, Indent indent) const |
virtual QDebug | PrintHeader (QDebug os, Indent indent) const |
virtual QDebug | PrintTrailer (QDebug os, Indent indent) const |
Protected Attributes inherited from berry::Object | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
A provider of notifications for when a change has occurred to a particular type of source. These providers can be given to the appropriate service, and this service will then re-evaluate the appropriate pieces of its internal state in response to these changes.
It is recommended that clients subclass AbstractSourceProvider
instead, as this provides some common support for listeners.
Definition at line 43 of file berryISourceProvider.h.
typedef QHash<QString, Object::ConstPointer> berry::ISourceProvider::StateMapType |
Definition at line 48 of file berryISourceProvider.h.
|
override |
|
pure virtual |
Adds a listener to this source provider. This listener will be notified whenever the corresponding source changes.
listener | The listener to add; must not be null . |
Implemented in berry::AbstractSourceProvider.
berry::ISourceProvider::berryObjectMacro | ( | berry::ISourceProvider | ) |
|
pure virtual |
Returns the current state of the sources tracked by this provider. This is used to provide a view of the world if the event loop is busy and things are some state has already changed.
For use with core expressions, this map should contain IEvaluationContext::UNDEFINED_VARIABLE for properties which are only sometimes available.
String
) to variable values (Object
). This may be empty, and may be null
.
|
pure virtual |
Returns the names of those sources provided by this class. This is used by clients of source providers to determine which source providers they actually need.
null
or empty.
|
pure virtual |
Removes a listener from this source provider. This listener will be notified whenever the corresponding source changes.
listener | The listener to remove; must not be null . |
Implemented in berry::AbstractSourceProvider.