|
Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <berryAbstractSourceProvider.h>


Public Member Functions | |
| berryObjectMacro (berry::AbstractSourceProvider) | |
| void | AddSourceProviderListener (ISourceProviderListener *listener) override |
| void | RemoveSourceProviderListener (ISourceProviderListener *listener) override |
| virtual void | Initialize (IServiceLocator *locator) |
Public Member Functions inherited from berry::ISourceProvider | |
| berryObjectMacro (berry::ISourceProvider) | |
| ~ISourceProvider () override | |
| virtual StateMapType | GetCurrentState () const =0 |
| virtual QList< QString > | GetProvidedSourceNames () const =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 |
Static Public Attributes | |
| static bool | DEBUG |
Protected Member Functions | |
| void | FireSourceChanged (int sourcePriority, const QString &sourceName, Object::ConstPointer sourceValue) |
| void | FireSourceChanged (int sourcePriority, const QHash< QString, Object::ConstPointer > &sourceValuesByName) |
| void | LogDebuggingInfo (const QString &message) |
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 |
Additional Inherited Members | |
Public Types inherited from berry::ISourceProvider | |
| 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 |
Static Public Member Functions inherited from berry::Object | |
| static const char * | GetStaticClassName () |
| static Reflection::TypeInfo | GetStaticTypeInfo () |
| static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
Protected Attributes inherited from berry::Object | |
| QAtomicInt | m_ReferenceCount |
| QMutex | m_ReferenceCountLock |
An implementation of ISourceProvider that provides listener support. Subclasses need only call fireSourceChanged whenever appropriate.
Definition at line 32 of file berryAbstractSourceProvider.h.
|
overridevirtual |
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. |
Implements berry::ISourceProvider.
Definition at line 45 of file berryAbstractSourceProvider.cpp.
References berry::ISourceProviderListener::Events::AddListener().
| berry::AbstractSourceProvider::berryObjectMacro | ( | berry::AbstractSourceProvider | ) |
|
protected |
Notifies all listeners that a single source has changed.
| sourcePriority | The source priority that has changed. |
| sourceName | The name of the source that has changed; must not be null. |
| sourceValue | The new value for the source; may be null. |
Definition at line 25 of file berryAbstractSourceProvider.cpp.
References berry::ISourceProviderListener::Events::singleSourceChanged.
|
protected |
Notifies all listeners that multiple sources have changed.
| sourcePriority | The source priority that has changed. |
| sourceValuesByName | The map of source names (String) to source values (Object) that have changed; must not be null. The names must not be null, but the values may be null. |
Definition at line 31 of file berryAbstractSourceProvider.cpp.
References berry::ISourceProviderListener::Events::multipleSourcesChanged.
|
virtual |
This method is called when the source provider is instantiated by org.blueberry.ui.services. Clients may override this method to perform initialization.
| locator | The global service locator. It can be used to retrieve services like the IContextService |
Definition at line 67 of file berryAbstractSourceProvider.cpp.
|
protected |
Logs a debugging message in an appropriate manner. If the message is null or the DEBUG is false, then this method does nothing.
| message | The debugging message to log; if null, then nothing is logged. |
Definition at line 37 of file berryAbstractSourceProvider.cpp.
References BERRY_INFO, and DEBUG.
|
overridevirtual |
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. |
Implements berry::ISourceProvider.
Definition at line 56 of file berryAbstractSourceProvider.cpp.
References berry::ISourceProviderListener::Events::RemoveListener().
|
static |
Whether source providers should print out debugging information to the console when events arrive.
Definition at line 88 of file berryAbstractSourceProvider.h.
Referenced by LogDebuggingInfo(), and berry::WorkbenchPlugin::start().