Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryISourceProvider.h>
Public Member Functions | |
berryObjectMacro (berry::ISourceProvider) typedef QHash< QString | |
~ISourceProvider () | |
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 |
Public Attributes | |
Object::ConstPointer | StateMapType |
Additional Inherited Members | |
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 |
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 47 of file berryISourceProvider.h.
berry::ISourceProvider::~ISourceProvider | ( | ) |
Definition at line 22 of file berryISourceProvider.cpp.
|
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 . |
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.
Object::ConstPointer berry::ISourceProvider::StateMapType |
Definition at line 52 of file berryISourceProvider.h.