diff options
author | mk5004.lee <mk5004.lee@samsung.com> | 2019-01-28 19:25:41 +0900 |
---|---|---|
committer | mk5004.lee <mk5004.lee@samsung.com> | 2019-02-11 13:04:45 +0900 |
commit | 298daf1d13a5b913c25a8d3b3550c7d16f5cbdda (patch) | |
tree | dda6c36f65d77672ee28249e77c135c2e7c4c135 /notification-ex/event_listener_interface.h | |
parent | 3130e5707c05c97701c8e7cb37a0fd03b62798f6 (diff) | |
download | notification-298daf1d13a5b913c25a8d3b3550c7d16f5cbdda.tar.gz notification-298daf1d13a5b913c25a8d3b3550c7d16f5cbdda.tar.bz2 notification-298daf1d13a5b913c25a8d3b3550c7d16f5cbdda.zip |
Initialize Noti-ex
Change-Id: I96813e041aee48027806f97fef8a28bdc5d49c27
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
Diffstat (limited to 'notification-ex/event_listener_interface.h')
-rw-r--r-- | notification-ex/event_listener_interface.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/notification-ex/event_listener_interface.h b/notification-ex/event_listener_interface.h new file mode 100644 index 0000000..3990271 --- /dev/null +++ b/notification-ex/event_listener_interface.h @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef NOTIFICATION_EX_EVENT_LISTENER_INTERFACE_H_ +#define NOTIFICATION_EX_EVENT_LISTENER_INTERFACE_H_ + +#include "notification-ex/observer_interface.h" + +#ifndef EXPORT_API +#define EXPORT_API __attribute__((visibility("default"))) +#endif + +namespace notification { + +class EXPORT_API IEventsListener { + public: + virtual ~IEventsListener() = 0; + + virtual void RegisterObserver(IEventObserver observer) = 0; + virtual void UnRegisterObserver(IEventObserver observer) = 0; + virtual void NotifyAll() = 0; +}; + +} // namespace notification + +#endif // NOTIFICATION_EX_EVENT_LISTENER_INTERFACE_H_ |