22 #ifndef USSERVICELISTENERHOOK_H
23 #define USSERVICELISTENERHOOK_H
34 class ServiceListenerEntry;
47 struct US_Core_EXPORT ServiceListenerHook
50 class ListenerInfoData;
58 struct US_Core_EXPORT ListenerInfo
62 ListenerInfo(
const ListenerInfo& other);
66 ListenerInfo& operator=(
const ListenerInfo& other);
90 std::string GetFilter()
const;
111 bool IsRemoved()
const;
125 bool operator==(
const ListenerInfo& other)
const;
129 friend class ServiceListenerEntry;
131 US_HASH_FUNCTION_FRIEND(ServiceListenerHook::ListenerInfo);
133 ListenerInfo(ListenerInfoData* data);
135 ExplicitlySharedDataPointer<ListenerInfoData> d;
138 virtual ~ServiceListenerHook();
151 virtual void Added(
const std::vector<ListenerInfo>& listeners) = 0;
162 virtual void Removed(
const std::vector<ListenerInfo>& listeners) = 0;
168 US_HASH_FUNCTION_NAMESPACE_BEGIN
169 US_HASH_FUNCTION_BEGIN(US_PREPEND_NAMESPACE(ServiceListenerHook::ListenerInfo))
170 return
US_HASH_FUNCTION(const US_PREPEND_NAMESPACE(ServiceListenerHook::ListenerInfoData)*, arg.d.Data());
172 US_HASH_FUNCTION_NAMESPACE_END
174 #endif // USSERVICELISTENERHOOK_H
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
US_MSVC_POP_WARNING US_HASH_FUNCTION_NAMESPACE_BEGIN return US_HASH_FUNCTION(us::ServiceRegistrationBasePrivate *, arg.d)