Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
berryIRegistryEventListener.cpp
Go to the documentation of this file.
1
/*===================================================================
2
3
BlueBerry Platform
4
5
Copyright (c) German Cancer Research Center,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
17
#include "
berryIRegistryEventListener.h
"
18
19
namespace
berry
{
20
21
void
IRegistryEventListener::Events::AddListener
(
IRegistryEventListener
* l)
22
{
23
if
(l ==
nullptr
)
return
;
24
25
extensionsAdded
+=
ExtensionsAddedDelegate
(l, &
IRegistryEventListener::Added
);
26
extensionsRemoved
+=
ExtensionsRemovedDelegate
(l, &
IRegistryEventListener::Removed
);
27
extensionPointsAdded
+=
ExtensionPointsAddedDelegate
(l, &
IRegistryEventListener::Added
);
28
extensionPointsRemoved
+=
ExtensionPointsRemovedDelegate
(l, &
IRegistryEventListener::Removed
);
29
}
30
31
void
IRegistryEventListener::Events::RemoveListener
(
IRegistryEventListener
* l)
32
{
33
if
(l ==
nullptr
)
return
;
34
35
extensionsAdded -=
ExtensionsAddedDelegate
(l, &
IRegistryEventListener::Added
);
36
extensionsRemoved -=
ExtensionsRemovedDelegate
(l, &
IRegistryEventListener::Removed
);
37
extensionPointsAdded -=
ExtensionPointsAddedDelegate
(l, &
IRegistryEventListener::Added
);
38
extensionPointsRemoved -=
ExtensionPointsRemovedDelegate
(l, &
IRegistryEventListener::Removed
);
39
}
40
41
IRegistryEventListener::~IRegistryEventListener
()
42
{
43
}
44
45
}
berry
Definition:
QmitkPropertyItemModel.h:27
berry::IRegistryEventListener::Events::extensionsRemoved
Message1< const QList< SmartPointer< IExtension > > & > extensionsRemoved
Definition:
berryIRegistryEventListener.h:46
berry::IRegistryEventListener::Events::extensionPointsRemoved
Message1< const QList< SmartPointer< IExtensionPoint > > & > extensionPointsRemoved
Definition:
berryIRegistryEventListener.h:48
berry::IRegistryEventListener::Removed
virtual void Removed(const QList< SmartPointer< IExtension > > &extensions)=0
berry::IRegistryEventListener::Added
virtual void Added(const QList< SmartPointer< IExtension > > &extensions)=0
berry::IRegistryEventListener::Events::RemoveListener
void RemoveListener(IRegistryEventListener *listener)
Definition:
berryIRegistryEventListener.cpp:31
berry::IRegistryEventListener::Events::extensionPointsAdded
Message1< const QList< SmartPointer< IExtensionPoint > > & > extensionPointsAdded
Definition:
berryIRegistryEventListener.h:47
berry::IRegistryEventListener
Definition:
berryIRegistryEventListener.h:40
berry::IRegistryEventListener::Events::AddListener
void AddListener(IRegistryEventListener *listener)
Definition:
berryIRegistryEventListener.cpp:21
berry::IRegistryEventListener::Events::extensionsAdded
Message1< const QList< SmartPointer< IExtension > > & > extensionsAdded
Definition:
berryIRegistryEventListener.h:45
berry::IRegistryEventListener::~IRegistryEventListener
virtual ~IRegistryEventListener()
Definition:
berryIRegistryEventListener.cpp:41
berry::MessageDelegate1
Definition:
berryMessage.h:174
berryIRegistryEventListener.h
git
MITK
Plugins
org.blueberry.core.runtime
src
registry
berryIRegistryEventListener.cpp
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1