Medical Imaging Interaction Toolkit  2018.4.99-ae21cdc4
Medical Imaging Interaction Toolkit
berry::IServiceWithSources Struct Referenceabstract

#include <berryIServiceWithSources.h>

Inheritance diagram for berry::IServiceWithSources:
Collaboration diagram for berry::IServiceWithSources:

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::TypeInfoGetSuperclasses () 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< SelfPointer
typedef berry::SmartPointer< const SelfConstPointer
typedef berry::WeakPointer< SelfWeakPtr
typedef berry::WeakPointer< const SelfConstWeakPtr
- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
static Reflection::TypeInfo GetStaticTypeInfo ()
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
- 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

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~IServiceWithSources()

berry::IServiceWithSources::~IServiceWithSources ( )

Member Function Documentation

◆ AddSourceProvider()

virtual void berry::IServiceWithSources::AddSourceProvider ( const SmartPointer< ISourceProvider > &  provider)
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.

providerThe provider to add; must not be null.

◆ berryObjectMacro()

berry::IServiceWithSources::berryObjectMacro ( berry::IServiceWithSources  )

◆ RemoveSourceProvider()

virtual void berry::IServiceWithSources::RemoveSourceProvider ( const SmartPointer< ISourceProvider > &  provider)
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.

providerThe provider to remove; must not be null.

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