Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
#include <berryIServiceWithSources.h>
Public Member Functions | |
berryObjectMacro (berry::IServiceWithSources) | |
~IServiceWithSources () override | |
virtual void | AddSourceProvider (const SmartPointer< ISourceProvider > &provider)=0 |
virtual void | RemoveSourceProvider (const SmartPointer< ISourceProvider > &provider)=0 |
Public Member Functions inherited from berry::IDisposable | |
berryObjectMacro (berry::IDisposable) | |
~IDisposable () override | |
virtual void | Dispose ()=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 | |
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 service that responds to changes in one or more sources. These sources can be plugged into the service. Sources represent a common event framework for services.
Clients must not extend or implement.
Definition at line 34 of file berryIServiceWithSources.h.
|
override |
|
pure virtual |
Adds a source provider to this service. A source provider will notify the service when the source it provides changes. An example of a source might be an active editor or the current selection. This amounts to a pluggable state tracker for the service.
provider | The provider to add; must not be null . |
berry::IServiceWithSources::berryObjectMacro | ( | berry::IServiceWithSources | ) |
|
pure virtual |
Removes a source provider from this service. Most of the time, this method call is not required as source providers typically share the same life span as the workbench itself.
provider | The provider to remove; must not be null . |