ADTF
Loading...
Searching...
No Matches
event_source_intf.h
Go to the documentation of this file.
1
7
8#ifndef _ADTF_UCOM_ANT_EVENT_SINK_EVENT_SOURCE_INTERFACE_INCLUDES_HEADER_
9#define _ADTF_UCOM_ANT_EVENT_SINK_EVENT_SOURCE_INTERFACE_INCLUDES_HEADER_
10
11namespace adtf
12{
13namespace ucom
14{
15namespace ant
16{
17
18class IEventSource;
19
26class DOEXPORT IEventSink
27{
28public:
33 ADTF_IID(IEventSink, "event_sink.ant.ucom.adtf.iid");
34
35public:
55 virtual tResult HandleEvent(const IEventSource& oSource, const void* pvEventData) = 0;
56
57protected:
59 ~IEventSink() = default;
60};
61
71class DOEXPORT IEventSource : public IObject
72{
73public:
78 ADTF_IID(IEventSource, "event_source.ant.ucom.adtf.iid");
79
80public:
90 virtual tResult RegisterEventSink(IEventSink& oEventSink) = 0;
91
101 virtual tResult UnregisterEventSink(IEventSink& oEventSink) = 0;
102
103protected:
105 ~IEventSource() = default;
106};
107
108}//namespace ant
109
111using ant::IEventSink;
112
115
116}//namespace ucom
117}//namespace adtf
118
119#endif //_ADTF_UCOM_ANT_EVENT_SINK_EVENT_SOURCE_INTERFACE_INCLUDES_HEADER_
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
Definition event_source_intf.h:27
~IEventSink()=default
Protected destructor --> Only the final implementation can be destroyed!
virtual tResult HandleEvent(const IEventSource &oSource, const void *pvEventData)=0
ADTF_IID(IEventSink, "event_sink.ant.ucom.adtf.iid")
Definition event_source_intf.h:72
virtual tResult UnregisterEventSink(IEventSink &oEventSink)=0
~IEventSource()=default
Protected destructor --> Only the final implementation can be destroyed!
ADTF_IID(IEventSource, "event_source.ant.ucom.adtf.iid")
virtual tResult RegisterEventSink(IEventSink &oEventSink)=0
Definition object_intf.h:33
Namespace for all functionality of the ADTF UCOM SDK provided since v3.0.
Definition test_runtime.h:14
Namespace for the ADTF uCOM SDK.
Definition adtf_system.h:324
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14